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
|
|
|
#
|
2013-01-06 23:00:40 +01:00
|
|
|
# Copyright (c) 2013 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
|
2012-02-07 05:56:54 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2013-01-06 23:00:40 +01:00
|
|
|
Version: 8.32
|
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
|
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
|
|
|
|
#
|
2013-01-06 23:00:40 +01:00
|
|
|
Url: http://www.pcre.org/
|
2011-09-19 17:15:53 +02:00
|
|
|
Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%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-11-01 17:19:53 +01:00
|
|
|
#PATCH-FIX-UPSTREAM crrodriguez@opensuse.org http://bugs.exim.org/show_bug.cgi?id=1173
|
2013-01-06 23:00:40 +01:00
|
|
|
Patch: pcre-8.32-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
|
|
|
|
Summary: A library for Perl-compatible regular expressions
|
|
|
|
Group: System/Libraries
|
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
|
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
|
|
|
|
2012-05-10 19:27:15 +02:00
|
|
|
%package devel-static
|
|
|
|
Summary: A library for Perl-compatible regular expressions
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: pcre-devel = %version
|
|
|
|
|
|
|
|
%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
|
|
|
|
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
|
|
|
|
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
|
2013-01-06 23:00:40 +01:00
|
|
|
%patch -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
|
2012-07-20 19:46:20 +02:00
|
|
|
%configure \
|
|
|
|
%ifarch %ix86 x86_64 %arm ppc ppc64 mips
|
|
|
|
--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 \
|
|
|
|
--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
|
2007-08-09 20:48:36 +02:00
|
|
|
|
2012-02-07 05:56:54 +01:00
|
|
|
#ove pcre and pcreposix library into /lib
|
|
|
|
#%{__mkdir_p} %{buildroot}/%{_lib}
|
|
|
|
#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
|
2012-02-02 15:33:45 +01:00
|
|
|
|
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
|
|
|
|
|
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
|