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.21 2021/12/19 00:13:46 tom Exp $
11 Group: Applications/Development
12 URL: ftp://ftp.invisible-island.net/pub/%{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 --datadir=%{_datarootdir}/%{AppProgram} \
54 --with-screen=ncursesw6dev \
60 mkdir BUILD-%{AltProgram}
61 pushd BUILD-%{AltProgram}
62 INSTALL_PROGRAM='${INSTALL}' \
63 NCURSES_CONFIG_SUFFIX=dev \
64 CONFIGURE_TOP=%{my_srcdir} \
66 --target %{_target_platform} \
68 --datadir=%{_datarootdir}/%{AltProgram} \
69 --with-screen=ncursestw6dev \
76 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
78 pushd BUILD-%{AppProgram}
79 make install PACKAGE=%{AppProgram} DESTDIR=$RPM_BUILD_ROOT
82 pushd BUILD-%{AltProgram}
83 make install PACKAGE=%{AltProgram} DESTDIR=$RPM_BUILD_ROOT
87 if rm -rf $RPM_BUILD_ROOT; then
90 find $RPM_BUILD_ROOT -type f | grep -F -v /.nfs && exit 1
94 %files -n %{AppProgram}
96 %{_bindir}/%{AppProgram}
97 %{_libexecdir}/%{AppProgram}/*
98 %{_datarootdir}/%{AppProgram}/*
100 %files -n %{AltProgram}
101 %defattr(-,root,root)
102 %{_bindir}/%{AltProgram}
103 %{_libexecdir}/%{AltProgram}/*
104 %{_datarootdir}/%{AltProgram}/*
107 # each patch should add its ChangeLog entries here
109 * Sat Dec 18 2021 Thomas Dickey
110 - use libexecdir for programs rather than subdir of bindir
112 * Sat Nov 16 2019 Thomas Dickey
113 - modify clean-rule to work around Fedora NFS bugs.
115 * Sat Nov 11 2017 Thomas Dickey
116 - add example data-files
117 - use rpm built-in "configure"
118 - suppress debug-package
120 * Thu Mar 25 2010 Thomas Dickey