This commit is contained in:
parent
0a51a6b963
commit
db2a4cdfd1
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 8 12:46:16 CEST 2007 - ms@suse.de
|
||||||
|
|
||||||
|
- added fix to run ldconfig for libpcre*, Thanks to
|
||||||
|
Cristian Rodriguez <crrodriguez@novell.com> who provided
|
||||||
|
the patch (#298291)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 23 15:22:40 CEST 2007 - ms@suse.de
|
Mon Jul 23 15:22:40 CEST 2007 - ms@suse.de
|
||||||
|
|
||||||
|
67
pcre.spec
67
pcre.spec
@ -13,7 +13,7 @@
|
|||||||
Name: pcre
|
Name: pcre
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
Version: 7.2
|
Version: 7.2
|
||||||
Release: 1
|
Release: 5
|
||||||
Summary: A library for Perl-compatible regular expressions
|
Summary: A library for Perl-compatible regular expressions
|
||||||
License: BSD 3-Clause, Other uncritical OpenSource License, PCRE LICENCE
|
License: BSD 3-Clause, Other uncritical OpenSource License, PCRE LICENCE
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -22,11 +22,6 @@ URL: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
|
|||||||
Source: %name-%version.tar.bz2
|
Source: %name-%version.tar.bz2
|
||||||
Patch0: %name-%version.assert_fix.patch
|
Patch0: %name-%version.assert_fix.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%package devel
|
|
||||||
Summary: A library for Perl-compatible regular expressions
|
|
||||||
Autoreqprov: on
|
|
||||||
Group: System/Libraries
|
|
||||||
Requires: pcre libstdc++-devel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The PCRE library is a set of functions that implement regular
|
The PCRE library is a set of functions that implement regular
|
||||||
@ -40,6 +35,10 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Philip Hazel <ph10@cam.ac.uk>
|
Philip Hazel <ph10@cam.ac.uk>
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: A library for Perl-compatible regular expressions
|
||||||
|
Group: System/Libraries
|
||||||
|
Requires: pcre = %{version} libstdc++-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The PCRE library is a set of functions that implement regular
|
The PCRE library is a set of functions that implement regular
|
||||||
@ -58,17 +57,22 @@ Authors:
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS -fstack-protector"
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||||
./configure --mandir=%_mandir \
|
%configure \
|
||||||
--prefix=%_prefix \
|
|
||||||
--libdir=%_libdir \
|
|
||||||
--with-link-size=2 \
|
--with-link-size=2 \
|
||||||
--with-match-limit=10000000 \
|
--with-match-limit=10000000 \
|
||||||
--enable-newline-is-lf \
|
--enable-newline-is-lf \
|
||||||
--enable-utf8 \
|
--enable-utf8 \
|
||||||
--enable-unicode-properties
|
--enable-unicode-properties
|
||||||
make
|
%{__make} %{?jobs:-j%jobs}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{__make} DESTDIR=%{buildroot} install
|
||||||
|
%{__mkdir_p} %{buildroot}/%{_defaultdocdir}
|
||||||
|
mv %{buildroot}/usr/share/doc/pcre %{buildroot}/%{_defaultdocdir}/pcre
|
||||||
|
|
||||||
|
%check
|
||||||
export LANG=POSIX
|
export LANG=POSIX
|
||||||
%ifarch %arm
|
%ifarch %arm
|
||||||
make test || echo make test failed
|
make test || echo make test failed
|
||||||
@ -76,35 +80,38 @@ make test || echo make test failed
|
|||||||
make test
|
make test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}
|
|
||||||
mv $RPM_BUILD_ROOT/usr/share/doc/pcre $RPM_BUILD_ROOT/%{_defaultdocdir}/pcre
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS NON-UNIX-USE README
|
%doc AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS NON-UNIX-USE README
|
||||||
%doc doc/html doc/*.txt
|
%doc doc/html doc/*.txt
|
||||||
%_libdir/*.so.*
|
%{_libdir}/*.so.*
|
||||||
/usr/bin/pcregrep
|
%{_bindir}/pcregrep
|
||||||
/usr/bin/pcretest
|
%{_bindir}/pcretest
|
||||||
%_mandir/man1/*.gz
|
%doc %{_mandir}/man1/*.gz
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/bin/pcre-config
|
%{_bindir}/pcre-config
|
||||||
/usr/include/*
|
%{_includedir}/*
|
||||||
%_libdir/*.so
|
%{_libdir}/*.so
|
||||||
%_libdir/*.a
|
%{_libdir}/*.a
|
||||||
%_libdir/*.la
|
%{_libdir}/*.la
|
||||||
%_libdir/pkgconfig/libpcre.pc
|
%{_libdir}/pkgconfig/libpcre.pc
|
||||||
%_libdir/pkgconfig/libpcrecpp.pc
|
%{_libdir}/pkgconfig/libpcrecpp.pc
|
||||||
%_mandir/man3/*.gz
|
%doc %{_mandir}/man3/*.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 08 2007 - ms@suse.de
|
||||||
|
- added fix to run ldconfig for libpcre*, Thanks to
|
||||||
|
Cristian Rodriguez <crrodriguez@novell.com> who provided
|
||||||
|
the patch (#298291)
|
||||||
* Mon Jul 23 2007 - ms@suse.de
|
* Mon Jul 23 2007 - ms@suse.de
|
||||||
- update to version 7.2, fixes bug: (#293752)
|
- update to version 7.2, fixes bug: (#293752)
|
||||||
- Changes from 7.1 to 7.2
|
- Changes from 7.1 to 7.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user