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 %global _prefix /usr/local/ncurses6
14 %global MY_PKG /usr/lib64/pkgconfig
15 %define MYDATA /usr/local/ncurses/share/terminfo
18 The ncurses library routines are a terminal-independent method of
19 updating character screens with reasonable optimization.
21 This package is used for testing ABI 6.
25 %define debug_package %{nil}
26 %setup -q -n ncurses-%{version}-%{release}
29 CFLAGS="%{CC_NORMAL}" \
30 RPATH_LIST=../lib:%{_prefix}/lib \
32 --target %{_target_platform} \
34 --includedir='${prefix}/include' \
35 --with-default-terminfo-dir=%{MYDATA} \
36 --with-install-prefix=$RPM_BUILD_ROOT \
37 --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \
55 --with-chtype=uint32_t \
56 --with-mmask_t=uint32_t \
64 --with-pkg-config-libdir=%{MY_PKG} \
65 --with-versioned-syms \
66 --with-xterm-kbs=DEL \
74 rm -rf $RPM_BUILD_ROOT
76 make install.libs install.progs
78 ( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses6 )
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(-,root,root,-)
93 * Sat Mar 09 2013 Thomas E. Dickey
94 - add --with-cxx-shared option to demonstrate c++ binding as shared library
96 * Sat Oct 27 2012 Thomas E. Dickey
97 - add ncurses program as "ncurses6" to provide demonstration.
99 * Fri Jun 08 2012 Thomas E. Dickey