1 Summary: shared libraries for terminal handling
6 Group: Development/Libraries
7 Source: ncurses-%{version}-%{release}.tgz
8 # URL: https://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
15 # save value before redefining
16 %global sys_libdir %{_libdir}
19 #global _prefix /usr/local/ncurses#{MY_ABI}
21 %global MY_PKG %{sys_libdir}/pkgconfig
22 %define MYDATA /usr/local/ncurses/share/terminfo
25 The ncurses library routines are a terminal-independent method of
26 updating character screens with reasonable optimization.
28 This package is used for testing ABI %{MY_ABI}.
32 %define debug_package %{nil}
33 %setup -q -n ncurses-%{version}-%{release}
36 CFLAGS="%{CC_NORMAL}" \
37 RPATH_LIST=../lib:%{_prefix}/lib \
39 --target %{_target_platform} \
41 --includedir='${prefix}/include' \
42 --with-default-terminfo-dir=%{MYDATA} \
43 --with-install-prefix=$RPM_BUILD_ROOT \
44 --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \
45 --with-config-suffix=dev \
56 --enable-wgetch-events \
59 --program-suffix=%{MY_ABI} \
60 --with-abi-version=%{MY_ABI} \
67 --with-extra-suffix=%{MY_ABI} \
68 --with-pkg-config-libdir=%{MY_PKG} \
69 --with-versioned-syms \
70 --with-xterm-kbs=DEL \
78 rm -rf $RPM_BUILD_ROOT
80 make install.libs install.progs
82 ( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses%{MY_ABI} )
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(-,root,root,-)
95 * Mon Jan 01 2018 Thomas E. Dickey
96 - drop redundant files pattern for "*.pc"
98 * Tue Dec 26 2017 Thomas E. Dickey
99 - add --with-config-suffix option
101 * Sun Apr 26 2015 Thomas E. Dickey
102 - move package to /usr
104 * Sun Apr 12 2015 Thomas E. Dickey
107 * Sat Mar 09 2013 Thomas E. Dickey
108 - add --with-cxx-shared option to demonstrate c++ binding as shared library
110 * Sat Oct 27 2012 Thomas E. Dickey
111 - add ncurses program as "ncurses6" to provide demonstration.
113 * Fri Jun 08 2012 Thomas E. Dickey