ncurses 5.9 - patch 20121110
[ncurses.git] / package / ncurses.spec
1 Summary: shared libraries for terminal handling
2 Name: ncurses6
3 Release: 5.9
4 Version: 20121110
5 License: X11
6 Group: Development/Libraries
7 Source: ncurses-%{release}-%{version}.tgz
8 # URL: http://invisible-island.net/ncurses/
9
10 %define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
11 %define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
12
13 %define _prefix /usr/local/ncurses6
14 %define MYDATA /usr/local/ncurses/share/terminfo
15
16 %description
17 The ncurses library routines are a terminal-independent method of
18 updating character screens with reasonable optimization.
19
20 This package is used for testing ABI 6.
21
22 %prep
23
24 %define debug_package %{nil}
25 %setup -q -n ncurses-%{release}-%{version}
26
27 %build
28 CFLAGS="%{CC_NORMAL}" \
29 RPATH_LIST=../lib:%{_prefix}/lib \
30 %configure \
31         --target %{_target_platform} \
32         --prefix=%{_prefix} \
33         --includedir='${prefix}/include' \
34         --with-default-terminfo-dir=%{MYDATA} \
35         --with-install-prefix=$RPM_BUILD_ROOT \
36         --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \
37         --disable-echo \
38         --disable-getcap \
39         --disable-leaks \
40         --disable-macros  \
41         --disable-overwrite  \
42         --disable-termcap \
43         --enable-const \
44         --enable-ext-colors \
45         --enable-ext-mouse \
46         --enable-hard-tabs \
47         --enable-interop \
48         --enable-rpath \
49         --enable-sp-funcs \
50         --enable-warnings \
51         --enable-widec \
52         --verbose \
53         --with-develop \
54         --with-shared \
55         --with-termlib \
56         --with-ticlib \
57         --with-trace \
58         --with-xterm-kbs=DEL \
59         --without-ada \
60         --without-debug \
61         --without-normal
62
63 make
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 make install.libs install.progs
69 rm -f test/ncurses
70 ( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses6 )
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(-,root,root,-)
77 %{_bindir}/*
78 %{_includedir}/*
79 %{_libdir}/*
80 #%{_datadir}/*
81
82 %changelog
83
84 * Sat Oct 26 2012 Thomas E. Dickey
85 - add ncurses program as "ncurses6" to provide demonstration.
86
87 * Fri Jun 08 2012 Thomas E. Dickey
88 - initial version.