1 Summary: shared libraries for terminal handling
6 Group: Development/Libraries
7 Source: ncurses-%{version}-%{release}.tgz
8 # URL: http://invisible-island.net/ncurses/
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
13 # save value before redefining
14 %global sys_libdir %{_libdir}
17 %global _prefix /usr/local/ncurses6
19 %global MY_PKG %{sys_libdir}/pkgconfig
20 %define MYDATA /usr/local/ncurses/share/terminfo
23 The ncurses library routines are a terminal-independent method of
24 updating character screens with reasonable optimization.
26 This package is used for testing ABI 6.
30 %define debug_package %{nil}
31 %setup -q -n ncurses-%{version}-%{release}
34 CFLAGS="%{CC_NORMAL}" \
35 RPATH_LIST=../lib:%{_prefix}/lib \
37 --target %{_target_platform} \
39 --includedir='${prefix}/include' \
40 --with-default-terminfo-dir=%{MYDATA} \
41 --with-install-prefix=$RPM_BUILD_ROOT \
42 --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \
60 --with-chtype=uint32_t \
61 --with-mmask_t=uint32_t \
69 --with-pkg-config-libdir=%{MY_PKG} \
70 --with-versioned-syms \
71 --with-xterm-kbs=DEL \
79 rm -rf $RPM_BUILD_ROOT
81 make install.libs install.progs
83 ( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses6 )
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(-,root,root,-)
97 * Sat Mar 09 2013 Thomas E. Dickey
98 - add --with-cxx-shared option to demonstrate c++ binding as shared library
100 * Sat Oct 27 2012 Thomas E. Dickey
101 - add ncurses program as "ncurses6" to provide demonstration.
103 * Fri Jun 08 2012 Thomas E. Dickey