-# TODO:
-# - fix ada build
-# - restore parts of ncurses-linking.patch rev 1.7 that fix ncurses with tinfo linking
#
# Conditional build:
%bcond_without ada # do not build Ada95 bindings
Summary(tr.UTF-8): Terminal kontrol kitaplığı
Summary(uk.UTF-8): ncurses - нова бібліотека керування терміналами
Name: ncurses
-Version: 5.6
-Release: 5.1
+Version: 5.7
+Release: 9
License: distributable
Group: Libraries
Source0: ftp://dickey.his.com/ncurses/%{name}-%{version}.tar.gz
-# Source0-md5: b6593abe1089d6aab1551c105c9300e3
+# Source0-md5: cce05daf61a64501ef6cd8da1f727ec6
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source1-md5: 3b05ee835dc20c306e9af2a9d3fbf1f1
-# source: ftp://dickey.his.com/ncurses/5.6/
-Patch0: %{name}-5.6-20071201-patch.sh.bz2
-Patch1: %{name}-5.6-20071215.patch.gz
-Patch2: %{name}-5.6-20071222.patch.gz
-Patch3: %{name}-5.6-20080105.patch.gz
-Patch4: %{name}-5.6-20080112.patch.gz
-Patch5: %{name}-5.6-20080119.patch.gz
-Patch6: %{name}-5.6-20080203.patch.gz
-Patch7: %{name}-5.6-20080209.patch.gz
-Patch8: %{name}-5.6-20080223.patch.gz
-Patch9: %{name}-5.6-20080301.patch.gz
-Patch10: %{name}-5.6-20080308.patch.gz
-Patch11: %{name}-5.6-20080322.patch.gz
-Patch12: %{name}-5.6-20080329.patch.gz
-Patch13: %{name}-5.6-20080405.patch.gz
-Patch14: %{name}-5.6-20080412.patch.gz
+# source: ftp://dickey.his.com/ncurses/5.7/
+Patch0: %{name}-5.7-20081115.patch.gz
+Patch1: %{name}-5.7-20081122.patch.gz
+Patch2: %{name}-5.7-20081129.patch.gz
+Patch3: %{name}-5.7-20081206.patch.gz
+Patch4: %{name}-5.7-20081213.patch.gz
+Patch5: %{name}-5.7-20081220.patch.gz
+Patch6: %{name}-5.7-20081227.patch.gz
+Patch7: %{name}-5.7-20090103.patch.gz
+Patch8: %{name}-5.7-20090104.patch.gz
+Patch9: %{name}-5.7-20090105.patch.gz
+Patch10: %{name}-5.7-20090110.patch.gz
+Patch11: %{name}-5.7-20090117.patch.gz
+Patch12: %{name}-5.7-20090124.patch.gz
+Patch13: %{name}-5.7-20090207.patch.gz
+Patch14: %{name}-5.7-20090214.patch.gz
Patch100: %{name}-screen_hpa_fix.patch
Patch101: %{name}-xterm_hpa_fix.patch
Patch106: %{name}-xterm-kbs.patch
# disable rain demo; triggers gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14998
Patch107: %{name}-no-rain-demo.patch
-Patch108: %{name}-hash.patch
-Patch109: %{name}-linking.patch
URL: http://dickey.his.com/ncurses/ncurses.html
BuildRequires: automake
%{?with_ada:BuildRequires: gcc-ada}
Obsoletes: ncurses-extraterms
%description -n terminfo
-This package contains cmplet terminfo database. If you just use the
+This package contains complete terminfo database. If you just use the
Linux console, xterm and VT100, you probably will not need this this -
a minimal %{_datadir}/terminfo tree for these terminal is already
included in the ncurses package.
%patch105 -p1
%patch106 -p1
%patch107 -p1
-%patch108 -p0
-%patch109 -p0
%build
unset TERMINFO || :
--with-ada-include=%{_libdir}/gcc/$gcc_target/$gcc_version/adainclude/ \
--with-ada-objects=%{_libdir}/gcc/$gcc_target/$gcc_version/adalib/ \
`[ "$t" != "widec" ] && echo --with-termlib=tinfo` \
- `[ "$t" = "widec" ] && echo --with-termlib=tinfow --enable-widec --includedir=%{_includedir}w`
+ `[ "$t" = "widec" ] && echo --with-termlib=tinfow --enable-widec --enable-ext-colors --includedir=%{_includedir}w`
%{__make}
ln -sf ../l/linux $RPM_BUILD_ROOT%{_datadir}/terminfo/c/console
-mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfo.so.*.* $RPM_BUILD_ROOT/%{_lib}
-mv -f $RPM_BUILD_ROOT%{_libdir}/libncurses.so.*.* $RPM_BUILD_ROOT/%{_lib}
-ln -sf /%{_lib}/`cd $RPM_BUILD_ROOT/%{_lib} ; echo libtinfo.so.*.*` $RPM_BUILD_ROOT%{_libdir}/libtinfo.so
-ln -sf /%{_lib}/`cd $RPM_BUILD_ROOT/%{_lib} ; echo libncurses.so.*.*` $RPM_BUILD_ROOT%{_libdir}/libcurses.so
-ln -sf /%{_lib}/`cd $RPM_BUILD_ROOT/%{_lib} ; echo libncurses.so.*.*` $RPM_BUILD_ROOT%{_libdir}/libncurses.so
+mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfo.so.* $RPM_BUILD_ROOT/%{_lib}
+mv -f $RPM_BUILD_ROOT%{_libdir}/libncurses.so.* $RPM_BUILD_ROOT/%{_lib}
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtinfo.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libtinfo.so
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libcurses.so
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libncurses.so
+ln -sf libncursesw.a $RPM_BUILD_ROOT%{_libdir}/libcursesw.a
+ln -sf libncursesw.so $RPM_BUILD_ROOT%{_libdir}/libcursesw.so
bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
%attr(755,root,root) %{_bindir}/infocmp
%attr(755,root,root) %{_bindir}/infotocap
%attr(755,root,root) %{_bindir}/reset
-%attr(755,root,root) %{_bindir}/tack
+%attr(755,root,root) %{_bindir}/tabs
%attr(755,root,root) %{_bindir}/tic
%attr(755,root,root) %{_bindir}/toe
%attr(755,root,root) %{_bindir}/tput
%attr(755,root,root) %{_bindir}/tset
-%attr(755,root,root) /%{_lib}/libncurses.so.*
-%attr(755,root,root) /%{_lib}/libtinfo.so.*
-%attr(755,root,root) %{_libdir}/libncursesw.so.*
-%attr(755,root,root) %{_libdir}/libtinfow.so.*
+%attr(755,root,root) /%{_lib}/libncurses.so.*.*
+%attr(755,root,root) %ghost /%{_lib}/libncurses.so.5
+%attr(755,root,root) /%{_lib}/libtinfo.so.*.*
+%attr(755,root,root) %ghost /%{_lib}/libtinfo.so.5
+%attr(755,root,root) %{_libdir}/libncursesw.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libncursesw.so.6
+%attr(755,root,root) %{_libdir}/libtinfow.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtinfow.so.6
%{_datadir}/tabset
%dir %{_datadir}/terminfo
%{_datadir}/terminfo/E
-%dir %{_datadir}/terminfo/[dklsvx]
+%dir %{_datadir}/terminfo/[dgklprsvx]
%{_datadir}/terminfo/d/dumb
+%{_datadir}/terminfo/g/gnome*
%{_datadir}/terminfo/k/klone+color
+%{_datadir}/terminfo/k/konsole*
%{_datadir}/terminfo/l/linux*
+%{_datadir}/terminfo/p/putty*
+%{_datadir}/terminfo/r/rxvt*
%{_datadir}/terminfo/s/screen*
%{_datadir}/terminfo/v/vt100
%{_datadir}/terminfo/v/vt220
%{_datadir}/terminfo/[1-9ALMNPQXa-ce-jm-rt-uwz]
%{_datadir}/terminfo/[dklsvx]/*
%exclude %{_datadir}/terminfo/d/dumb
+%exclude %{_datadir}/terminfo/g/gnome*
%exclude %{_datadir}/terminfo/k/klone+color
+%exclude %{_datadir}/terminfo/k/konsole*
%exclude %{_datadir}/terminfo/l/linux*
+%exclude %{_datadir}/terminfo/p/putty*
+%exclude %{_datadir}/terminfo/r/rxvt*
%exclude %{_datadir}/terminfo/s/screen*
%exclude %{_datadir}/terminfo/v/vt100
%exclude %{_datadir}/terminfo/v/vt220
%defattr(644,root,root,755)
%doc doc/html/ncurses-intro.html
%attr(755,root,root) %{_bindir}/ncurses5-config
-%attr(755,root,root) %{_bindir}/ncursesw5-config
+%attr(755,root,root) %{_bindir}/ncursesw6-config
%attr(755,root,root) %{_libdir}/libcurses.so
%attr(755,root,root) %{_libdir}/libncurses.so
%attr(755,root,root) %{_libdir}/libtinfo.so
%files ada-devel
%defattr(644,root,root,755)
%doc Ada95/{README,TODO}
+%attr(755,root,root) %{_bindir}/adacurses-config
+%attr(755,root,root) %{_bindir}/adacursesw-config
%{_libdir}/gcc/*/*/adainclude/*
%{_libdir}/gcc/*/*/adalib/*
%endif