1 Summary: example/test programs from ncurses
2 %global AppProgram ncurses-examples
3 %global AltProgram ncursest-examples
4 %global AppVersion MAJOR.MINOR
5 %global AppRelease YYYYMMDD
6 # $Id: ncurses-examples.spec,v 1.16 2019/11/23 21:11:34 tom Exp $
11 Group: Applications/Development
12 URL: ftp://ftp.invisible-island.net/%{AppProgram}
13 Source0: %{AppProgram}-%{AppRelease}.tgz
14 Packager: Thomas Dickey <dickey@invisible-island.net>
17 These are the example/test programs from the ncurses MAJOR.MINOR distribution,
18 for patch-date YYYYMMDD.
20 This package installs in "bin/%{AppProgram}" to avoid conflict with other
23 %package -n %{AltProgram}
24 Summary: examples/test programs from ncurses with POSIX thread support
26 %description -n %{AltProgram}
27 These are the example/test programs from the ncurses MAJOR.MINOR distribution,
28 for patch-date YYYYMMDD, using the "ncurseswt" library to demonstrate the
29 use of POSIX threads, e.g., in ditto, rain, and worm.
31 This package installs in "bin/%{AltProgram}" to avoid conflict with other
36 %setup -q -n %{AppProgram}-%{AppRelease}
38 %define debug_package %{nil}
42 %global _configure ../configure
45 mkdir BUILD-%{AppProgram}
46 pushd BUILD-%{AppProgram}
47 INSTALL_PROGRAM='${INSTALL}' \
48 NCURSES_CONFIG_SUFFIX=dev \
49 CONFIGURE_TOP=%{my_srcdir} \
51 --target %{_target_platform} \
53 --bindir=%{_bindir}/%{AppProgram} \
54 --datadir=%{_datadir}/%{AppProgram} \
55 --with-screen=ncursesw6dev \
61 mkdir BUILD-%{AltProgram}
62 pushd BUILD-%{AltProgram}
63 INSTALL_PROGRAM='${INSTALL}' \
64 NCURSES_CONFIG_SUFFIX=dev \
65 CONFIGURE_TOP=%{my_srcdir} \
67 --target %{_target_platform} \
69 --bindir=%{_bindir}/%{AltProgram} \
70 --datadir=%{_datadir}/%{AltProgram} \
71 --with-screen=ncursestw6dev \
78 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
80 pushd BUILD-%{AppProgram}
81 make install DESTDIR=$RPM_BUILD_ROOT
84 pushd BUILD-%{AltProgram}
85 make install DESTDIR=$RPM_BUILD_ROOT
89 if rm -rf $RPM_BUILD_ROOT; then
92 find $RPM_BUILD_ROOT -type f | grep -F -v /.nfs && exit 1
96 %files -n %{AppProgram}
98 %{_bindir}/%{AppProgram}/*
99 %{_datadir}/%{AppProgram}/*
101 %files -n %{AltProgram}
102 %defattr(-,root,root)
103 %{_bindir}/%{AltProgram}/*
104 %{_datadir}/%{AltProgram}/*
107 # each patch should add its ChangeLog entries here
109 * Sat Nov 16 2019 Thomas Dickey
110 - modify clean-rule to work around Fedora NFS bugs.
112 * Sat Nov 11 2017 Thomas Dickey
113 - add example data-files
114 - use rpm built-in "configure"
115 - suppress debug-package
117 * Thu Mar 25 2010 Thomas Dickey