- update to patch 20070210
- generate separate terminfo library - move static libraries to -static subpackage - avoid unnecessary linking with libdl
This commit is contained in:
parent
c5ce98078d
commit
7c7609a41e
@ -1,3 +1,4 @@
|
||||
ncurses-5.6.tar.gz
|
||||
ncurses-5.6-20061223-20070120.patch.bz2
|
||||
ncurses-5.6-20070127-20070203.patch.bz2
|
||||
ncurses-5.6-20070210.patch.gz
|
||||
|
34
ncurses.spec
34
ncurses.spec
@ -1,7 +1,7 @@
|
||||
Summary: A terminal handling library
|
||||
Name: ncurses
|
||||
Version: 5.6
|
||||
Release: 3.20070203%{?dist}
|
||||
Release: 4.20070210%{?dist}
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
URL: http://invisible-island.net/ncurses/ncurses.html
|
||||
@ -9,12 +9,14 @@ Source0: ftp://invisible-island.net/ncurses/ncurses-%{version}.tar.gz
|
||||
|
||||
Patch1: ncurses-5.6-20061223-20070120.patch.bz2
|
||||
Patch2: ncurses-5.6-20070127-20070203.patch.bz2
|
||||
Patch3: ncurses-5.6-20070210.patch.gz
|
||||
|
||||
Patch6: ncurses-5.5-20061209-tgetent.patch
|
||||
Patch8: ncurses-5.5-20061209-config.patch
|
||||
Patch9: ncurses-5.5-liblinks.patch
|
||||
Patch10: ncurses-5.5-20061209-xterm.patch
|
||||
Patch11: ncurses-5.6-20070120-urxvt.patch
|
||||
Patch12: ncurses-5.6-20070210-nodl.patch
|
||||
BuildRequires: gpm-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
@ -44,6 +46,14 @@ Use the following compiler flags to build against the ncurses library:
|
||||
-I %{_includedir}/ncursesw -lncursesw
|
||||
(compile and link against the wide-character, UTF-8, library)
|
||||
|
||||
%package static
|
||||
Summary: Static libraries for the ncurses library
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
The ncurses-static package includes static libraries of the ncurses library.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
@ -51,12 +61,14 @@ Use the following compiler flags to build against the ncurses library:
|
||||
%patch2 -p1
|
||||
# tack isn't in ncurses tree since 20070203
|
||||
rm -rf tack
|
||||
%patch3 -p1
|
||||
|
||||
%patch6 -p1 -b .tgetent
|
||||
%patch8 -p1 -b .config
|
||||
%patch9 -p1 -b .liblinks
|
||||
%patch10 -p1 -b .xterm
|
||||
%patch11 -p1 -b .urxvt
|
||||
%patch12 -p1 -b .nodl
|
||||
|
||||
# this will be in documentation, drop executable bits
|
||||
chmod 644 test/*
|
||||
@ -74,7 +86,7 @@ chmod 644 test/*
|
||||
mkdir narrowc widec
|
||||
cd narrowc
|
||||
ln -s ../configure .
|
||||
%configure %{ncurses_options} --with-ticlib
|
||||
%configure %{ncurses_options} --with-termlib --with-ticlib
|
||||
make %{?_smp_mflags} libs
|
||||
make %{?_smp_mflags} -C progs
|
||||
|
||||
@ -93,10 +105,10 @@ make -C widec DESTDIR=$RPM_BUILD_ROOT install.{libs,includes,man}
|
||||
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.*
|
||||
chmod 644 ${RPM_BUILD_ROOT}%{_libdir}/lib*.a
|
||||
|
||||
# move libncurses.so.* to /lib*
|
||||
# move lib{ncurses,tinfo}.so.* to /lib*
|
||||
mkdir $RPM_BUILD_ROOT/%{_lib}
|
||||
mv $RPM_BUILD_ROOT%{_libdir}/libncurses.so.* $RPM_BUILD_ROOT/%{_lib}
|
||||
for l in $RPM_BUILD_ROOT%{_libdir}/libncurses.so; do
|
||||
mv $RPM_BUILD_ROOT%{_libdir}/lib{ncurses,tinfo}.so.* $RPM_BUILD_ROOT/%{_lib}
|
||||
for l in $RPM_BUILD_ROOT%{_libdir}/lib{ncurses,tinfo}.so; do
|
||||
ln -sf $(echo %{_libdir} | \
|
||||
sed 's,\(^/\|\)[^/][^/]*,..,g')/%{_lib}/$(readlink $l) $l
|
||||
done
|
||||
@ -141,7 +153,7 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/terminfo
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc ANNOUNCE AUTHORS README TO-DO
|
||||
/%{_lib}/libncurses*.so.*
|
||||
/%{_lib}/lib*.so.*
|
||||
%{_libdir}/lib*.so.*
|
||||
%dir %{_sysconfdir}/terminfo
|
||||
%{rootdatadir}/terminfo
|
||||
@ -159,7 +171,6 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/terminfo
|
||||
%doc doc/html/ncurses-intro.html
|
||||
%doc c++/README*
|
||||
%{_bindir}/ncurses*-config
|
||||
%{_libdir}/lib*.a
|
||||
%{_libdir}/lib*.so
|
||||
%dir %{_includedir}/ncurses
|
||||
%dir %{_includedir}/ncursesw
|
||||
@ -175,11 +186,20 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/terminfo
|
||||
%{_includedir}/unctrl.h
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%files static
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/lib*.a
|
||||
|
||||
%clean
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
|
||||
%changelog
|
||||
* Mon Feb 12 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.6-4.20070210
|
||||
- update to patch 20070210
|
||||
- generate separate terminfo library
|
||||
- move static libraries to -static subpackage
|
||||
- avoid unnecessary linking with libdl
|
||||
|
||||
* Tue Feb 06 2007 Miroslav Lichvar <mlichvar@redhat.com> 5.6-3.20070203
|
||||
- update to patch 20070203
|
||||
- spec cleanup (#226188)
|
||||
|
Loading…
Reference in New Issue
Block a user