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
|
2014-11-02 04:48:24 +08:00
|
|
|
Release: 20141101
|
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
|
|
|
|
|
|
|
|
%define _prefix /usr/local/ncurses6
|
|
|
|
%define MYDATA /usr/local/ncurses/share/terminfo
|
|
|
|
|
|
|
|
%description
|
|
|
|
The ncurses library routines are a terminal-independent method of
|
|
|
|
updating character screens with reasonable optimization.
|
|
|
|
|
|
|
|
This package is used for testing ABI 6.
|
|
|
|
|
|
|
|
%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 \
|
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 \
|
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
|
|
|
|
( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses6 )
|
2012-06-09 08:43:33 +08:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*
|
|
|
|
#%{_datadir}/*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
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.
|