OBS User unknown 2007-08-09 18:48:36 +00:00 committed by Git OBS Bridge
parent 0a51a6b963
commit db2a4cdfd1
2 changed files with 44 additions and 30 deletions

View File

@ -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

View File

@ -13,7 +13,7 @@
Name: pcre
BuildRequires: gcc-c++
Version: 7.2
Release: 1
Release: 5
Summary: A library for Perl-compatible regular expressions
License: BSD 3-Clause, Other uncritical OpenSource License, PCRE LICENCE
Group: System/Libraries
@ -22,11 +22,6 @@ URL: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
Source: %name-%version.tar.bz2
Patch0: %name-%version.assert_fix.patch
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
The PCRE library is a set of functions that implement regular
@ -40,6 +35,10 @@ Authors:
--------
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
The PCRE library is a set of functions that implement regular
@ -58,17 +57,22 @@ Authors:
%patch0 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
export CXXFLAGS="$RPM_OPT_FLAGS -fstack-protector"
./configure --mandir=%_mandir \
--prefix=%_prefix \
--libdir=%_libdir \
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure \
--with-link-size=2 \
--with-match-limit=10000000 \
--enable-newline-is-lf \
--enable-utf8 \
--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
%ifarch %arm
make test || echo make test failed
@ -76,35 +80,38 @@ make test || echo make test failed
make test
%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
rm -rf $RPM_BUILD_ROOT
%{__rm} -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS NON-UNIX-USE README
%doc doc/html doc/*.txt
%_libdir/*.so.*
/usr/bin/pcregrep
/usr/bin/pcretest
%_mandir/man1/*.gz
%{_libdir}/*.so.*
%{_bindir}/pcregrep
%{_bindir}/pcretest
%doc %{_mandir}/man1/*.gz
%files devel
%defattr(-,root,root)
/usr/bin/pcre-config
/usr/include/*
%_libdir/*.so
%_libdir/*.a
%_libdir/*.la
%_libdir/pkgconfig/libpcre.pc
%_libdir/pkgconfig/libpcrecpp.pc
%_mandir/man3/*.gz
%{_bindir}/pcre-config
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/pkgconfig/libpcre.pc
%{_libdir}/pkgconfig/libpcrecpp.pc
%doc %{_mandir}/man3/*.gz
%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
- update to version 7.2, fixes bug: (#293752)
- Changes from 7.1 to 7.2