2006-12-19 00:17:25 +01:00
|
|
|
#
|
2011-03-09 17:13:07 +01:00
|
|
|
# spec file for package pcre
|
2006-12-19 00:17:25 +01:00
|
|
|
#
|
2015-03-09 05:08:36 +01:00
|
|
|
# Copyright (c) 2015 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/
|
|
|
|
#
|
|
|
|
|
2012-02-07 16:12:18 +01:00
|
|
|
|
2006-12-19 00:17:25 +01:00
|
|
|
Name: pcre
|
2015-03-09 05:08:36 +01:00
|
|
|
Version: 8.36
|
2012-02-07 05:56:54 +01:00
|
|
|
Release: 0
|
2006-12-19 00:17:25 +01:00
|
|
|
Summary: A library for Perl-compatible regular expressions
|
2012-02-07 05:56:54 +01:00
|
|
|
License: BSD-3-Clause
|
2014-09-03 18:31:44 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-01-06 23:00:40 +01:00
|
|
|
Url: http://www.pcre.org/
|
2013-06-14 14:13:33 +02:00
|
|
|
#SVN-Clone: svn://vcs.exim.org/pcre/code/trunk
|
2014-03-28 12:57:24 +01:00
|
|
|
Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
|
|
|
|
Source2: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2.sig
|
|
|
|
Source3: %{name}.keyring
|
2013-06-14 14:13:33 +02:00
|
|
|
Source4: baselibs.conf
|
2011-11-01 17:19:53 +01:00
|
|
|
#PATCH-FIX-UPSTREAM crrodriguez@opensuse.org http://bugs.exim.org/show_bug.cgi?id=1173
|
2014-03-28 12:57:24 +01:00
|
|
|
Patch0: pcre-8.32-visibility.patch
|
|
|
|
#PATCH-FIX-OPENSUSE tchvatal@suse.cz upstream thinks it is good idea to use rpath, taken from RH
|
|
|
|
Patch1: pcre-8.21-multilib.patch
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2013-06-14 14:13:33 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2014-03-28 12:57:24 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
|
|
|
Summary: A library for Perl-compatible regular expressions
|
2014-09-03 18:31:44 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-02-07 05:56:54 +01:00
|
|
|
Requires: libpcre1 = %{version}
|
2012-11-07 21:14:22 +01:00
|
|
|
Requires: libpcre16-0 = %{version}
|
2009-07-08 16:46:27 +02:00
|
|
|
Requires: libpcrecpp0 = %{version}
|
2012-05-10 19:27:15 +02:00
|
|
|
Requires: libpcreposix0 = %{version}
|
|
|
|
Requires: libstdc++-devel
|
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
|
|
|
|
2012-05-10 19:27:15 +02:00
|
|
|
%package devel-static
|
|
|
|
Summary: A library for Perl-compatible regular expressions
|
2014-09-03 18:31:44 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-03-28 12:57:24 +01:00
|
|
|
Requires: pcre-devel = %{version}
|
2012-05-10 19:27:15 +02:00
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
The PCRE library is a set of functions that implement regular
|
|
|
|
expression pattern matching using the same syntax and semantics
|
|
|
|
as Perl 5.
|
|
|
|
This package contains static versions of the PCRE libraries.
|
|
|
|
|
2012-02-07 05:56:54 +01:00
|
|
|
%package -n libpcre1
|
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
|
|
|
|
2012-02-07 05:56:54 +01:00
|
|
|
%description -n libpcre1
|
2009-07-08 16:46:27 +02:00
|
|
|
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
|
|
|
|
2012-11-27 13:09:05 +01:00
|
|
|
This PCRE library variant supports 8-bit and UTF-8 strings.
|
|
|
|
(See also libpcre16.)
|
|
|
|
|
2012-11-07 21:14:22 +01:00
|
|
|
%package -n libpcre16-0
|
|
|
|
Summary: A library for Perl-compatible regular expressions
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libpcre16-0
|
|
|
|
The PCRE library is a set of functions that implement regular
|
|
|
|
expression pattern matching using the same syntax and semantics
|
|
|
|
as Perl 5.
|
|
|
|
|
2012-11-27 13:09:05 +01:00
|
|
|
libpcre16 supports 16-bit and UTF-16 strings.
|
|
|
|
|
2009-07-08 16:46:27 +02:00
|
|
|
%package -n libpcreposix0
|
|
|
|
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
|
|
|
|
2012-11-27 13:09:05 +01:00
|
|
|
pcreposix provides a POSIX-compatible API to the PCRE engine.
|
|
|
|
|
2009-07-08 16:46:27 +02:00
|
|
|
%package -n libpcrecpp0
|
|
|
|
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
|
|
|
|
2012-11-27 13:09:05 +01:00
|
|
|
pcrecpp provides a C++ API to the PCRE engine.
|
|
|
|
|
2009-07-08 16:46:27 +02:00
|
|
|
%package doc
|
|
|
|
Summary: A library for Perl-compatible regular expressions
|
2014-09-03 18:31:44 +02:00
|
|
|
Group: Documentation/HTML
|
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
|
|
|
|
Summary: A library for Perl-compatible regular expressions
|
2014-09-03 18:31:44 +02:00
|
|
|
Group: Productivity/Text/Utilities
|
2009-07-08 16:46:27 +02:00
|
|
|
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
|
2014-03-28 12:57:24 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2011-03-09 15:28:08 +01:00
|
|
|
|
2006-12-19 00:17:25 +01:00
|
|
|
%build
|
2012-07-20 19:46:20 +02:00
|
|
|
# Available JIT archs see sljit/sljitConfig.h
|
2010-10-30 17:55:13 +02:00
|
|
|
autoreconf -fiv
|
2014-09-01 17:38:38 +02:00
|
|
|
export LDFLAGS="-Wl,-z,relro,-z,now"
|
2012-07-20 19:46:20 +02:00
|
|
|
%configure \
|
2014-06-16 21:47:20 +02:00
|
|
|
%ifarch %{ix86} x86_64 %{arm} ppc ppc64 ppc64le mips sparc
|
2012-07-20 19:46:20 +02:00
|
|
|
--enable-jit \
|
|
|
|
%endif
|
|
|
|
--enable-static \
|
2006-12-19 00:17:25 +01:00
|
|
|
--with-link-size=2 \
|
|
|
|
--with-match-limit=10000000 \
|
|
|
|
--enable-newline-is-lf \
|
2012-11-07 21:14:22 +01:00
|
|
|
--enable-pcre16 \
|
2007-05-06 17:17:49 +02:00
|
|
|
--enable-utf8 \
|
2014-03-28 12:57:24 +01:00
|
|
|
--enable-unicode-properties
|
|
|
|
make %{?_smp_mflags} V=1
|
2007-08-09 20:48:36 +02:00
|
|
|
|
|
|
|
%install
|
2014-03-28 12:57:24 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
mkdir -p %{buildroot}/%{_defaultdocdir}
|
|
|
|
mv %{buildroot}%{_datadir}/doc/pcre %{buildroot}/%{_defaultdocdir}/pcre-doc
|
2007-11-12 18:41:55 +01:00
|
|
|
#empty dependecy_libs
|
2014-03-28 12:57:24 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-08-09 20:48:36 +02:00
|
|
|
|
|
|
|
%check
|
2007-01-09 17:53:01 +01:00
|
|
|
export LANG=POSIX
|
2014-03-28 12:57:24 +01:00
|
|
|
make test -j1
|
2006-12-19 00:17:25 +01:00
|
|
|
|
2012-02-07 05:56:54 +01:00
|
|
|
%post -n libpcre1 -p /sbin/ldconfig
|
2012-02-02 15:33:45 +01:00
|
|
|
|
2012-02-07 05:56:54 +01:00
|
|
|
%postun -n libpcre1 -p /sbin/ldconfig
|
2012-02-02 15:33:45 +01:00
|
|
|
|
2012-11-07 21:14:22 +01:00
|
|
|
%post -n libpcre16-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpcre16-0 -p /sbin/ldconfig
|
|
|
|
|
2010-09-20 15:12:53 +02:00
|
|
|
%post -n libpcrecpp0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpcrecpp0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libpcreposix0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpcreposix0 -p /sbin/ldconfig
|
|
|
|
|
2012-02-07 05:56:54 +01:00
|
|
|
%files -n libpcre1
|
2010-09-20 15:12:53 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog LICENCE NEWS README
|
2012-02-07 05:56:54 +01:00
|
|
|
%{_libdir}/libpcre.so.*
|
2012-02-02 15:33:45 +01:00
|
|
|
|
2012-11-07 21:14:22 +01:00
|
|
|
%files -n libpcre16-0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libpcre16.so.*
|
|
|
|
|
2010-09-20 15:12:53 +02:00
|
|
|
%files -n libpcrecpp0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libpcrecpp.so.*
|
|
|
|
|
|
|
|
%files -n libpcreposix0
|
2006-12-19 00:17:25 +01:00
|
|
|
%defattr(-,root,root)
|
2012-02-07 05:56:54 +01:00
|
|
|
%{_libdir}/libpcreposix.so.*
|
2012-02-02 15:33:45 +01:00
|
|
|
|
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
|
2012-11-07 21:14:22 +01:00
|
|
|
%{_libdir}/pkgconfig/libpcre16.pc
|
2007-08-09 20:48:36 +02:00
|
|
|
%{_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
|
|
|
|
2012-05-10 19:27:15 +02:00
|
|
|
%files devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
2007-04-26 01:16:44 +02:00
|
|
|
%changelog
|