ncurses 5.9 - patch 20130309
[ncurses.git] / package / ncurses.spec
1 Summary: shared libraries for terminal handling
2 Name: ncurses6
3 Release: 5.9
4 Version: 20130309
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-cxx-shared \
59         --with-xterm-kbs=DEL \
60         --without-ada \
61         --without-debug \
62         --without-normal
63
64 make
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 make install.libs install.progs
70 rm -f test/ncurses
71 ( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses6 )
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(-,root,root,-)
78 %{_bindir}/*
79 %{_includedir}/*
80 %{_libdir}/*
81 #%{_datadir}/*
82
83 %changelog
84
85 * Sat Mar 09 2013 Thomas E. Dickey
86 - add --with-cxx-shared option to demonstrate c++ binding as shared library
87
88 * Sat Oct 26 2012 Thomas E. Dickey
89 - add ncurses program as "ncurses6" to provide demonstration.
90
91 * Fri Jun 08 2012 Thomas E. Dickey
92 - initial version.