- Update to 7.8, drop upstreamed patches
- Fix destination of documentation (#427763) - Use buildroot macro consistently - Separate the static library, as per current Guidelines - Satisfy rpmlint
This commit is contained in:
parent
12330eff7a
commit
121c371dba
@ -1,6 +1 @@
|
|||||||
pcre-4.5.tar.bz2
|
pcre-7.8.tar.bz2
|
||||||
pcre-5.0.tar.bz2
|
|
||||||
pcre-6.3.tar.bz2
|
|
||||||
pcre-6.6.tar.bz2
|
|
||||||
pcre-6.7.tar.bz2
|
|
||||||
pcre-7.3.tar.bz2
|
|
||||||
|
62
pcre.spec
62
pcre.spec
@ -1,15 +1,13 @@
|
|||||||
Name: pcre
|
Name: pcre
|
||||||
Version: 7.3
|
Version: 7.8
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Perl-compatible regular expression library
|
Summary: Perl-compatible regular expression library
|
||||||
URL: http://www.pcre.org/
|
URL: http://www.pcre.org/
|
||||||
Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
|
Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
|
||||||
Patch0: pcre-7.3-multilib.patch
|
Patch0: pcre-7.3-multilib.patch
|
||||||
Patch1: pcre-7.3-CVE-2008-0674.patch
|
|
||||||
Patch2: pcre-7.3-CVE-2008-2371.patch
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Perl-compatible regular expression library.
|
Perl-compatible regular expression library.
|
||||||
@ -25,34 +23,45 @@ Group: Development/Libraries
|
|||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development files (Headers, libraries for static linking, etc) for %{name}.
|
Development files (Headers, libraries for dynamic linking, etc) for %{name}.
|
||||||
|
|
||||||
|
%package static
|
||||||
|
Summary: Static library for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
|
|
||||||
|
%description static
|
||||||
|
Library for static linking for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .multilib
|
%patch0 -p1 -b .multilib
|
||||||
# backport from the upstream 7.6
|
|
||||||
%patch1 -p1 -b .CVE-2008-0674
|
|
||||||
# not yet applied in upstream SVN (2008-07-04)
|
|
||||||
%patch2 -p1 -b .CVE-2008-2371
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-utf8 --enable-unicode-properties
|
%configure --enable-utf8 --enable-unicode-properties
|
||||||
|
|
||||||
|
# One contributor's name is non-utf8
|
||||||
|
iconv -f latin1 -t utf8 ChangeLog >ChangeLog.utf8
|
||||||
|
touch --reference ChangeLog ChangeLog.utf8
|
||||||
|
mv ChangeLog.utf8 ChangeLog
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
mkdir -p %{buildroot}/%{_lib}
|
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
||||||
mv %{buildroot}%{_libdir}/libpcre.so.* %{buildroot}/%{_lib}/
|
mv $RPM_BUILD_ROOT%{_libdir}/libpcre.so.* $RPM_BUILD_ROOT/%{_lib}/
|
||||||
pushd %{buildroot}%{_libdir}
|
pushd $RPM_BUILD_ROOT%{_libdir}
|
||||||
ln -fs ../../%{_lib}/libpcre.so.0 libpcre.so
|
ln -fs ../../%{_lib}/libpcre.so.0 libpcre.so
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# get rid of unneeded *.la files
|
# get rid of unneeded *.la files
|
||||||
rm -f %{buildroot}%{_libdir}/*.la
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
|
||||||
|
# These are handled by %%doc in %%files
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
@ -62,7 +71,7 @@ make check
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -71,23 +80,30 @@ rm -rf %{buildroot}
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_bindir}/pcregrep
|
%{_bindir}/pcregrep
|
||||||
%{_bindir}/pcretest
|
%{_bindir}/pcretest
|
||||||
%doc %{_docdir}/pcre/LICENCE
|
%doc AUTHORS COPYING LICENCE NEWS README ChangeLog
|
||||||
%doc %{_docdir}/pcre/AUTHORS
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/*.a
|
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
%{_bindir}/pcre-config
|
%{_bindir}/pcre-config
|
||||||
%doc %{_docdir}/pcre
|
%doc doc/*.txt doc/html
|
||||||
%exclude %{_docdir}/pcre/LICENCE
|
%doc HACKING
|
||||||
%exclude %{_docdir}/pcre/AUTHORS
|
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 1 2008 Lubomir Rintel <lkundrak@v3.sk> - 7.8-1
|
||||||
|
- Update to 7.8, drop upstreamed patches
|
||||||
|
- Fix destination of documentation (#427763)
|
||||||
|
- Use buildroot macro consistently
|
||||||
|
- Separate the static library, as per current Guidelines
|
||||||
|
- Satisfy rpmlint
|
||||||
|
|
||||||
* Fri Jul 4 2008 Tomas Hoger <thoger@redhat.com> - 7.3-4
|
* Fri Jul 4 2008 Tomas Hoger <thoger@redhat.com> - 7.3-4
|
||||||
- Apply Tavis Ormandy's patch for CVE-2008-2371.
|
- Apply Tavis Ormandy's patch for CVE-2008-2371.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user