Summary: ncurses-examples - example/test programs from ncurses %define AppProgram ncurses-examples %define AppVersion MAJOR.MINOR %define AppRelease YYYYMMDD # $Id: ncurses-examples.spec,v 1.11 2018/01/15 16:14:16 tom Exp $ Name: %{AppProgram} Version: %{AppVersion} Release: %{AppRelease} License: MIT Group: Applications/Development URL: ftp://ftp.invisible-island.net/%{AppProgram} Source0: %{AppProgram}-%{AppRelease}.tgz Packager: Thomas Dickey %description These are the example/test programs from the ncurses MAJOR.MINOR distribution, for patch-date YYYYMMDD. This package installs in "bin/ncurses-examples" to avoid conflict with other packages. %prep %setup -q -n %{AppProgram}-%{AppRelease} %define debug_package %{nil} %build INSTALL_PROGRAM='${INSTALL}' \ NCURSES_CONFIG_SUFFIX=dev \ %configure \ --target %{_target_platform} \ --prefix=%{_prefix} \ --bindir=%{_bindir}/%{AppProgram} \ --datadir=%{_datadir}/%{AppProgram} \ --with-screen=ncursesw6 \ --disable-rpath-hack make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/%{AppProgram}/* %{_datadir}/%{AppProgram}/* %changelog # each patch should add its ChangeLog entries here * Sat Nov 11 2017 Thomas Dickey - add example data-files - use rpm built-in "configure" - suppress debug-package * Thu Mar 25 2010 Thomas Dickey - initial version