2012-06-09 08:43:33 +08:00
|
|
|
Summary: shared libraries for terminal handling
|
|
|
|
Name: ncurses6
|
2013-10-28 16:09:20 +08:00
|
|
|
Version: 5.9
|
2015-04-26 09:21:33 +08:00
|
|
|
Release: 20150425
|
2012-06-09 08:43:33 +08:00
|
|
|
License: X11
|
|
|
|
Group: Development/Libraries
|
2013-10-28 16:09:20 +08:00
|
|
|
Source: ncurses-%{version}-%{release}.tgz
|
2012-06-09 08:43:33 +08:00
|
|
|
# URL: http://invisible-island.net/ncurses/
|
|
|
|
|
|
|
|
%define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
|
|
|
|
%define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
|
|
|
|
|
2015-04-19 08:05:38 +08:00
|
|
|
%global MY_ABI 6
|
|
|
|
|
2015-02-22 10:09:20 +08:00
|
|
|
# save value before redefining
|
|
|
|
%global sys_libdir %{_libdir}
|
|
|
|
|
|
|
|
# redefine...
|
2015-04-19 08:05:38 +08:00
|
|
|
%global _prefix /usr/local/ncurses%{MY_ABI}
|
2015-02-22 10:09:20 +08:00
|
|
|
|
|
|
|
%global MY_PKG %{sys_libdir}/pkgconfig
|
2012-06-09 08:43:33 +08:00
|
|
|
%define MYDATA /usr/local/ncurses/share/terminfo
|
|
|
|
|
|
|
|
%description
|
|
|
|
The ncurses library routines are a terminal-independent method of
|
|
|
|
updating character screens with reasonable optimization.
|
|
|
|
|
2015-04-19 08:05:38 +08:00
|
|
|
This package is used for testing ABI %{MY_ABI}.
|
2012-06-09 08:43:33 +08:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2012-11-04 07:59:23 +08:00
|
|
|
%define debug_package %{nil}
|
2013-10-28 16:09:20 +08:00
|
|
|
%setup -q -n ncurses-%{version}-%{release}
|
2012-06-09 08:43:33 +08:00
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{CC_NORMAL}" \
|
|
|
|
RPATH_LIST=../lib:%{_prefix}/lib \
|
|
|
|
%configure \
|
|
|
|
--target %{_target_platform} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--includedir='${prefix}/include' \
|
|
|
|
--with-default-terminfo-dir=%{MYDATA} \
|
|
|
|
--with-install-prefix=$RPM_BUILD_ROOT \
|
|
|
|
--with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \
|
|
|
|
--disable-echo \
|
|
|
|
--disable-getcap \
|
|
|
|
--disable-leaks \
|
|
|
|
--disable-macros \
|
|
|
|
--disable-overwrite \
|
|
|
|
--disable-termcap \
|
|
|
|
--enable-const \
|
|
|
|
--enable-ext-colors \
|
|
|
|
--enable-ext-mouse \
|
|
|
|
--enable-hard-tabs \
|
2012-07-01 07:07:18 +08:00
|
|
|
--enable-interop \
|
2014-12-14 10:33:09 +08:00
|
|
|
--enable-pc-files \
|
2012-06-09 08:43:33 +08:00
|
|
|
--enable-rpath \
|
|
|
|
--enable-sp-funcs \
|
|
|
|
--enable-warnings \
|
|
|
|
--enable-widec \
|
|
|
|
--verbose \
|
2014-03-23 08:28:32 +08:00
|
|
|
--with-chtype=uint32_t \
|
|
|
|
--with-mmask_t=uint32_t \
|
2012-06-09 08:43:33 +08:00
|
|
|
--with-develop \
|
|
|
|
--with-shared \
|
|
|
|
--with-termlib \
|
|
|
|
--with-ticlib \
|
|
|
|
--with-trace \
|
2013-03-10 08:35:23 +08:00
|
|
|
--with-cxx-shared \
|
2015-04-19 08:05:38 +08:00
|
|
|
--with-extra-suffix=%{MY_ABI} \
|
2014-12-14 10:33:09 +08:00
|
|
|
--with-pkg-config-libdir=%{MY_PKG} \
|
2014-11-16 12:08:00 +08:00
|
|
|
--with-versioned-syms \
|
2012-06-09 08:43:33 +08:00
|
|
|
--with-xterm-kbs=DEL \
|
|
|
|
--without-ada \
|
|
|
|
--without-debug \
|
|
|
|
--without-normal
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make install.libs install.progs
|
2012-10-28 07:06:26 +08:00
|
|
|
rm -f test/ncurses
|
2015-04-19 08:05:38 +08:00
|
|
|
( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses%{MY_ABI} )
|
2012-06-09 08:43:33 +08:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*
|
2014-12-14 10:33:09 +08:00
|
|
|
%{MY_PKG}/*.pc
|
2012-06-09 08:43:33 +08:00
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
2015-04-19 08:05:38 +08:00
|
|
|
* Sun Apr 12 2015 Thomas E. Dickey
|
|
|
|
- factor-out MY_ABI
|
|
|
|
|
2013-03-10 08:35:23 +08:00
|
|
|
* Sat Mar 09 2013 Thomas E. Dickey
|
|
|
|
- add --with-cxx-shared option to demonstrate c++ binding as shared library
|
|
|
|
|
2013-10-28 16:09:20 +08:00
|
|
|
* Sat Oct 27 2012 Thomas E. Dickey
|
2012-10-28 07:06:26 +08:00
|
|
|
- add ncurses program as "ncurses6" to provide demonstration.
|
|
|
|
|
2012-06-09 08:43:33 +08:00
|
|
|
* Fri Jun 08 2012 Thomas E. Dickey
|
|
|
|
- initial version.
|