blob: d552b8180f90538aacc257eb11c1c72ea9eeeb7b [file] [log] [blame]
Steve Kondikae271bc2015-11-15 02:50:53 +01001Summary: 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.5 2015/04/25 10:55:22 tom Exp $
6Name: %{AppProgram}
7Version: %{AppVersion}
8Release: %{AppRelease}
9License: MIT
10Group: Applications/Development
11URL: ftp://invisible-island.net/%{AppProgram}
12Source0: %{AppProgram}-%{AppRelease}.tgz
13Packager: Thomas Dickey <dickey@invisible-island.net>
14
15%description
16These are the example/test programs from the ncurses MAJOR.MINOR distribution,
17for patch-date YYYYMMDD.
18
19This package installs in "bin/ncurses-examples" to avoid conflict with other
20packages.
21%prep
22
23%setup -q -n %{AppProgram}-%{AppRelease}
24
25%build
26
27INSTALL_PROGRAM='${INSTALL}' \
28 ./configure \
29 --target %{_target_platform} \
30 --prefix=%{_prefix} \
31 --bindir=%{_bindir}/%{AppProgram} \
32 --with-screen=ncursesw6 \
33 --disable-rpath-hack
34
35make
36
37%install
38[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
39
40make install DESTDIR=$RPM_BUILD_ROOT
41
42strip $RPM_BUILD_ROOT%{_bindir}/%{AppProgram}/*
43
44%clean
45[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(-,root,root)
49%{_bindir}/%{AppProgram}/*
50
51%changelog
52# each patch should add its ChangeLog entries here
53
54* Thu Mar 25 2010 Thomas Dickey
55- initial version