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