missing ncurses sources
[tomato.git] / release / src / router / libncurses / test / package / ncurses-examples.spec
blobad79e5a2218abb010f1f30d13c9dd4099de6ee59
1 Summary: ncurses-examples - example/test programs from ncurses
2 %define AppProgram ncurses-examples
3 %define AppVersion MAJOR.MINOR
4 %define AppRelease YYYYMMDD
5 # $Id: ncurses-examples.spec,v 1.2 2011/03/25 17:46:44 tom Exp $
6 Name: %{AppProgram}
7 Version: %{AppVersion}
8 Release: %{AppRelease}
9 License: MIT
10 Group: Applications/Development
11 URL: ftp://invisible-island.net/%{AppProgram}
12 Source0: %{AppProgram}-%{AppRelease}.tgz
13 Packager: Thomas Dickey <dickey@invisible-island.net>
15 %description
16 These are the example/test programs from the ncurses MAJOR.MINOR distribution,
17 for patch-date YYYYMMDD.
19 This package installs in "bin/ncurses-examples" to avoid conflict with other
20 packages.
21 %prep
23 %setup -q -n %{AppProgram}-%{AppRelease}
25 %build
27 INSTALL_PROGRAM='${INSTALL}' \
28 ./configure \
29 --target %{_target_platform} \
30 --prefix=%{_prefix} \
31 --bindir=%{_bindir}/%{AppProgram} \
32 --with-ncursesw \
33 --disable-rpath-hack
35 make
37 %install
38 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
40 make install DESTDIR=$RPM_BUILD_ROOT
42 strip $RPM_BUILD_ROOT%{_bindir}/%{AppProgram}/*
44 %clean
45 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
47 %files
48 %defattr(-,root,root)
49 %{_bindir}/%{AppProgram}/*
51 %changelog
52 # each patch should add its ChangeLog entries here
54 * Fri Mar 25 2010 Thomas Dickey
55 - initial version