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.14 2019/02/03 01:17:27 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 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
91 %files -n %{AppProgram}
93 %{_bindir}/%{AppProgram}/*
94 %{_datadir}/%{AppProgram}/*
96 %files -n %{AltProgram}
98 %{_bindir}/%{AltProgram}/*
99 %{_datadir}/%{AltProgram}/*
102 # each patch should add its ChangeLog entries here
104 * Sat Nov 11 2017 Thomas Dickey
105 - add example data-files
106 - use rpm built-in "configure"
107 - suppress debug-package
109 * Thu Mar 25 2010 Thomas Dickey