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}.
31 Summary: Curses library with POSIX thread support.
33 %description -n ncursest6
34 The ncurses library routines are a terminal-independent method of
35 updating character screens with reasonable optimization.
37 This package is used for testing ABI %{MY_ABI} with POSIX threads.
42 --target %{_target_platform} \\\
43 --prefix=%{_prefix} \\\
44 --bindir=%{_bindir} \\\
45 --includedir=%{_includedir} \\\
46 --libdir=%{_libdir} \\\
47 --includedir='${prefix}/include' \\\
52 --disable-overwrite \\\
54 --enable-hard-tabs \\\
55 --enable-opaque-curses \\\
56 --enable-opaque-form \\\
57 --enable-opaque-menu \\\
58 --enable-opaque-panel \\\
62 --enable-wgetch-events \\\
64 --enable-xmc-glitch \\\
65 --program-suffix=%{MY_ABI} \\\
67 --with-abi-version=%{MY_ABI} \\\
68 --with-config-suffix=dev \\\
70 --with-default-terminfo-dir=%{MYDATA} \\\
72 --with-extra-suffix=%{MY_ABI} \\\
73 --with-install-prefix=$RPM_BUILD_ROOT \\\
74 --with-pkg-config-libdir=%{MY_PKG} \\\
76 --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \\\
80 --with-versioned-syms \\\
81 --with-xterm-kbs=DEL \\\
86 %define debug_package %{nil}
87 %setup -q -n ncurses-%{version}-%{release}
93 CFLAGS="%{CC_NORMAL}" \
94 RPATH_LIST=../lib:%{_prefix}/lib \
95 ../configure %{CFG_OPTS}
100 pushd BUILD-ncursest6
101 CFLAGS="%{CC_NORMAL}" \
102 RPATH_LIST=../lib:%{_prefix}/lib \
103 ../configure %{CFG_OPTS} \
106 --program-suffix=t%{MY_ABI} \
112 rm -rf $RPM_BUILD_ROOT
115 make install.libs install.progs
117 ( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses%{MY_ABI} )
120 pushd BUILD-ncursest6
121 make install.libs install.progs
123 ( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncursest%{MY_ABI} )
127 rm -rf $RPM_BUILD_ROOT
130 %defattr(-,root,root,-)
136 %defattr(-,root,root,-)
143 * Sat Feb 10 2018 Thomas E. Dickey
144 - add ncursest6 package
145 - add several development features
147 * Mon Jan 01 2018 Thomas E. Dickey
148 - drop redundant files pattern for "*.pc"
150 * Tue Dec 26 2017 Thomas E. Dickey
151 - add --with-config-suffix option
153 * Sun Apr 26 2015 Thomas E. Dickey
154 - move package to /usr
156 * Sun Apr 12 2015 Thomas E. Dickey
159 * Sat Mar 09 2013 Thomas E. Dickey
160 - add --with-cxx-shared option to demonstrate c++ binding as shared library
162 * Sat Oct 27 2012 Thomas E. Dickey
163 - add ncurses program as "ncurses6" to provide demonstration.
165 * Fri Jun 08 2012 Thomas E. Dickey