2006-12-19 00:17:25 +01:00
|
|
|
#
|
2010-09-20 15:12:53 +02:00
|
|
|
# spec file for package pcre (Version 8.10)
|
2006-12-19 00:17:25 +01:00
|
|
|
#
|
2010-01-08 17:32:14 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:25 +01:00
|
|
|
#
|
2008-09-13 06:52:01 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:17:25 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 15:26:12 +02:00
|
|
|
|
2006-12-19 00:17:25 +01:00
|
|
|
Name: pcre
|
2010-04-24 16:51:34 +02:00
|
|
|
BuildRequires: gcc-c++ pkg-config
|
2011-03-09 15:28:08 +01:00
|
|
|
Version: 8.12
|
2010-09-20 15:12:53 +02:00
|
|
|
Release: 1
|
2006-12-19 00:17:25 +01:00
|
|
|
Summary: A library for Perl-compatible regular expressions
|
2010-01-08 17:32:14 +01:00
|
|
|
License: BSD3c(or similar) ; Other uncritical OpenSource License
|
2006-12-19 00:17:25 +01:00
|
|
|
Group: System/Libraries
|
2009-01-09 01:44:19 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: pcre-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-11-12 18:41:55 +01:00
|
|
|
Url: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
|
2010-09-20 15:12:53 +02:00
|
|
|
Source: %name-%version.tar.bz2
|
2010-01-08 17:32:14 +01:00
|
|
|
Source2: baselibs.conf
|
2006-12-19 00:17:25 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-03-09 15:28:08 +01:00
|
|
|
Patch: pcre-visibility.patch
|
2006-12-19 00:17:25 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The PCRE library is a set of functions that implement regular
|
2010-09-20 15:12:53 +02:00
|
|
|
expression pattern matching using the same syntax and semantics
|
|
|
|
as Perl 5.
|
2006-12-19 00:17:25 +01:00
|
|
|
|
2007-08-09 20:48:36 +02:00
|
|
|
%package devel
|
2010-01-08 17:32:14 +01:00
|
|
|
License: BSD3c(or similar) ; Other uncritical OpenSource License
|
2007-08-09 20:48:36 +02:00
|
|
|
Summary: A library for Perl-compatible regular expressions
|
|
|
|
Group: System/Libraries
|
2009-07-08 16:46:27 +02:00
|
|
|
Requires: libstdc++-devel
|
|
|
|
Requires: libpcre0 = %{version}
|
|
|
|
Requires: libpcreposix0 = %{version}
|
|
|
|
Requires: libpcrecpp0 = %{version}
|
2009-01-09 01:44:19 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: pcre-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:17:25 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The PCRE library is a set of functions that implement regular
|
2010-09-20 15:12:53 +02:00
|
|
|
expression pattern matching using the same syntax and semantics
|
|
|
|
as Perl 5.
|
2009-07-08 16:46:27 +02:00
|
|
|
|
|
|
|
%package -n libpcre0
|
2010-01-08 17:32:14 +01:00
|
|
|
License: BSD3c(or similar) ; Other uncritical OpenSource License
|
2009-07-08 16:46:27 +02:00
|
|
|
Summary: A library for Perl-compatible regular expressions
|
|
|
|
Group: System/Libraries
|
2010-09-20 15:12:53 +02:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2009-07-08 16:46:27 +02:00
|
|
|
|
|
|
|
%description -n libpcre0
|
|
|
|
The PCRE library is a set of functions that implement regular
|
2010-09-20 15:12:53 +02:00
|
|
|
expression pattern matching using the same syntax and semantics
|
|
|
|
as Perl 5.
|
2009-07-08 16:46:27 +02:00
|
|
|
|
|
|
|
%package -n libpcreposix0
|
2010-01-08 17:32:14 +01:00
|
|
|
License: BSD3c(or similar) ; Other uncritical OpenSource License
|
2009-07-08 16:46:27 +02:00
|
|
|
Summary: A library for Perl-compatible regular expressions
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libpcreposix0
|
|
|
|
The PCRE library is a set of functions that implement regular
|
2010-09-20 15:12:53 +02:00
|
|
|
expression pattern matching using the same syntax and semantics
|
|
|
|
as Perl 5.
|
2009-07-08 16:46:27 +02:00
|
|
|
|
|
|
|
%package -n libpcrecpp0
|
2010-01-08 17:32:14 +01:00
|
|
|
License: BSD3c(or similar) ; Other uncritical OpenSource License
|
2009-07-08 16:46:27 +02:00
|
|
|
Summary: A library for Perl-compatible regular expressions
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libpcrecpp0
|
|
|
|
The PCRE library is a set of functions that implement regular
|
2010-09-20 15:12:53 +02:00
|
|
|
expression pattern matching using the same syntax and semantics
|
|
|
|
as Perl 5.
|
2009-07-08 16:46:27 +02:00
|
|
|
|
|
|
|
%package doc
|
2010-01-08 17:32:14 +01:00
|
|
|
License: BSD3c(or similar) ; Other uncritical OpenSource License
|
2009-07-08 16:46:27 +02:00
|
|
|
Summary: A library for Perl-compatible regular expressions
|
|
|
|
Group: System/Libraries
|
2010-04-24 12:47:11 +02:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2010-01-08 17:32:14 +01:00
|
|
|
BuildArch: noarch
|
2010-04-24 12:47:11 +02:00
|
|
|
%endif
|
2009-07-08 16:46:27 +02:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
The PCRE library is a set of functions that implement regular
|
2010-09-20 15:12:53 +02:00
|
|
|
expression pattern matching using the same syntax and semantics
|
|
|
|
as Perl 5.
|
2009-07-08 16:46:27 +02:00
|
|
|
|
|
|
|
%package tools
|
2010-01-08 17:32:14 +01:00
|
|
|
License: BSD3c(or similar) ; Other uncritical OpenSource License
|
2009-07-08 16:46:27 +02:00
|
|
|
Summary: A library for Perl-compatible regular expressions
|
|
|
|
Group: System/Libraries
|
|
|
|
Recommends: %{name}-doc
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
The PCRE library is a set of functions that implement regular
|
2010-09-20 15:12:53 +02:00
|
|
|
expression pattern matching using the same syntax and semantics
|
|
|
|
as Perl 5.
|
2006-12-19 00:17:25 +01:00
|
|
|
|
|
|
|
%prep
|
2010-09-20 15:12:53 +02:00
|
|
|
%setup -q
|
2010-10-30 17:55:13 +02:00
|
|
|
%patch
|
2011-03-09 15:28:08 +01:00
|
|
|
|
2006-12-19 00:17:25 +01:00
|
|
|
%build
|
2010-10-30 17:55:13 +02:00
|
|
|
mkdir m4
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure --enable-hidden-symbols --disable-static \
|
2006-12-19 00:17:25 +01:00
|
|
|
--with-link-size=2 \
|
|
|
|
--with-match-limit=10000000 \
|
|
|
|
--enable-newline-is-lf \
|
2007-05-06 17:17:49 +02:00
|
|
|
--enable-utf8 \
|
|
|
|
--enable-unicode-properties
|
2010-06-28 23:24:47 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2007-08-09 20:48:36 +02:00
|
|
|
|
|
|
|
%install
|
2010-09-20 15:12:53 +02:00
|
|
|
%makeinstall
|
2007-08-09 20:48:36 +02:00
|
|
|
%{__mkdir_p} %{buildroot}/%{_defaultdocdir}
|
2010-09-20 15:12:53 +02:00
|
|
|
mv %{buildroot}/usr/share/doc/pcre %{buildroot}/%{_defaultdocdir}/pcre-doc
|
2007-11-12 18:41:55 +01:00
|
|
|
#empty dependecy_libs
|
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2009-05-28 22:52:38 +02:00
|
|
|
#move pcre and pcreposix library into /lib
|
|
|
|
%{__mkdir_p} %{buildroot}/%{_lib}
|
2009-06-02 12:10:17 +02:00
|
|
|
for l in libpcre libpcreposix; do
|
|
|
|
ldest=$(readlink %{buildroot}/%{_libdir}/$l.so)
|
|
|
|
mv %{buildroot}%{_libdir}/$l.so.* %{buildroot}/%{_lib}
|
|
|
|
#update the symlinks for linking.
|
|
|
|
%{__ln_s} -vf /%{_lib}/$ldest %{buildroot}%{_libdir}/$l.so
|
|
|
|
done
|
2007-08-09 20:48:36 +02:00
|
|
|
|
|
|
|
%check
|
2007-01-09 17:53:01 +01:00
|
|
|
export LANG=POSIX
|
2006-12-19 00:17:25 +01:00
|
|
|
%ifarch %arm
|
|
|
|
make test || echo make test failed
|
|
|
|
%else
|
|
|
|
make test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%clean
|
2007-08-09 20:48:36 +02:00
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
2010-09-20 15:12:53 +02:00
|
|
|
%post -n libpcre0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpcre0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libpcrecpp0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpcrecpp0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libpcreposix0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpcreposix0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libpcre0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog LICENCE NEWS README
|
|
|
|
/%{_lib}/libpcre.so.*
|
|
|
|
|
|
|
|
%files -n libpcrecpp0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libpcrecpp.so.*
|
|
|
|
|
|
|
|
%files -n libpcreposix0
|
2006-12-19 00:17:25 +01:00
|
|
|
%defattr(-,root,root)
|
2010-09-20 15:12:53 +02:00
|
|
|
/%{_lib}/libpcreposix.so.*
|
2009-07-08 16:46:27 +02:00
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
2007-08-09 20:48:36 +02:00
|
|
|
%{_bindir}/pcregrep
|
|
|
|
%{_bindir}/pcretest
|
2010-09-20 15:12:53 +02:00
|
|
|
%{_mandir}/man1/pcregrep.*
|
|
|
|
%{_mandir}/man1/pcretest.*
|
2006-12-19 00:17:25 +01:00
|
|
|
|
2009-07-08 16:46:27 +02:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/html doc/*.txt
|
|
|
|
|
2006-12-19 00:17:25 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-08-09 20:48:36 +02:00
|
|
|
%{_bindir}/pcre-config
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/libpcre.pc
|
|
|
|
%{_libdir}/pkgconfig/libpcrecpp.pc
|
2010-09-20 15:12:53 +02:00
|
|
|
%{_libdir}/pkgconfig/libpcreposix.pc
|
|
|
|
%{_mandir}/man1/pcre-config.*
|
2007-11-12 18:41:55 +01:00
|
|
|
%{_mandir}/man3/*.gz
|
2008-01-17 21:52:22 +01:00
|
|
|
|
2007-04-26 01:16:44 +02:00
|
|
|
%changelog
|