258 lines
6.8 KiB
RPMSpec
258 lines
6.8 KiB
RPMSpec
#
|
|
# spec file for package pcre (Version 7.9.0)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: pcre
|
|
BuildRequires: gcc-c++
|
|
Version: 7.9.0
|
|
Release: 1
|
|
%define rversion 7.9
|
|
Summary: A library for Perl-compatible regular expressions
|
|
License: BSD 3-clause (or similar) ; Other uncritical OpenSource License
|
|
Group: System/Libraries
|
|
AutoReqProv: on
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: pcre-64bit
|
|
%endif
|
|
#
|
|
Url: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
|
|
Source: %name-%rversion.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The PCRE library is a set of functions that implement regular
|
|
expression pattern matching using the same syntax and semantics as Perl
|
|
5, with very few differences. The current implementation corresponds to
|
|
Perl 5.005.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Philip Hazel <ph10@cam.ac.uk>
|
|
|
|
%package devel
|
|
License: BSD 3-clause (or similar) ; Other uncritical OpenSource License
|
|
Summary: A library for Perl-compatible regular expressions
|
|
Group: System/Libraries
|
|
Requires: libstdc++-devel
|
|
Requires: libpcre0 = %{version}
|
|
Requires: libpcreposix0 = %{version}
|
|
Requires: libpcrecpp0 = %{version}
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: pcre-devel-64bit
|
|
%endif
|
|
#
|
|
|
|
%description devel
|
|
The PCRE library is a set of functions that implement regular
|
|
expression pattern matching using the same syntax and semantics as Perl
|
|
5, with very few differences. The current implementation corresponds to
|
|
Perl 5.005.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Philip Hazel <ph10@cam.ac.uk>
|
|
|
|
%package -n libpcre0
|
|
License: BSD 3-clause (or similar) ; Other uncritical OpenSource License
|
|
Summary: A library for Perl-compatible regular expressions
|
|
Group: System/Libraries
|
|
# for the license - don't add a version here!
|
|
Requires: %name > 7.9
|
|
|
|
%description -n libpcre0
|
|
The PCRE library is a set of functions that implement regular
|
|
expression pattern matching using the same syntax and semantics as Perl
|
|
5, with very few differences. The current implementation corresponds to
|
|
Perl 5.005.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Philip Hazel <ph10@cam.ac.uk>
|
|
|
|
%post -n libpcre0 -p /sbin/ldconfig
|
|
|
|
%postun -n libpcre0 -p /sbin/ldconfig
|
|
|
|
%files -n libpcre0
|
|
%defattr(-,root,root)
|
|
/%{_lib}/libpcre.so.*
|
|
|
|
%package -n libpcreposix0
|
|
License: BSD 3-clause (or similar) ; Other uncritical OpenSource License
|
|
Summary: A library for Perl-compatible regular expressions
|
|
Group: System/Libraries
|
|
# for the license - don't add a version here!
|
|
Requires: %name > 7.9
|
|
|
|
%description -n libpcreposix0
|
|
The PCRE library is a set of functions that implement regular
|
|
expression pattern matching using the same syntax and semantics as Perl
|
|
5, with very few differences. The current implementation corresponds to
|
|
Perl 5.005.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Philip Hazel <ph10@cam.ac.uk>
|
|
|
|
%post -n libpcreposix0 -p /sbin/ldconfig
|
|
|
|
%postun -n libpcreposix0 -p /sbin/ldconfig
|
|
|
|
%files -n libpcreposix0
|
|
%defattr(-,root,root)
|
|
/%{_lib}/libpcreposix.so.*
|
|
|
|
%package -n libpcrecpp0
|
|
License: BSD 3-clause (or similar) ; Other uncritical OpenSource License
|
|
Summary: A library for Perl-compatible regular expressions
|
|
Group: System/Libraries
|
|
# for the license - don't add a == version here!
|
|
Requires: %name > 7.9
|
|
|
|
%description -n libpcrecpp0
|
|
The PCRE library is a set of functions that implement regular
|
|
expression pattern matching using the same syntax and semantics as Perl
|
|
5, with very few differences. The current implementation corresponds to
|
|
Perl 5.005.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Philip Hazel <ph10@cam.ac.uk>
|
|
|
|
%post -n libpcrecpp0 -p /sbin/ldconfig
|
|
|
|
%postun -n libpcrecpp0 -p /sbin/ldconfig
|
|
|
|
%files -n libpcrecpp0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libpcrecpp.so.*
|
|
|
|
%package doc
|
|
License: BSD 3-clause (or similar) ; Other uncritical OpenSource License
|
|
Summary: A library for Perl-compatible regular expressions
|
|
Group: System/Libraries
|
|
|
|
%description doc
|
|
The PCRE library is a set of functions that implement regular
|
|
expression pattern matching using the same syntax and semantics as Perl
|
|
5, with very few differences. The current implementation corresponds to
|
|
Perl 5.005.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Philip Hazel <ph10@cam.ac.uk>
|
|
|
|
%package tools
|
|
License: BSD 3-clause (or similar) ; Other uncritical OpenSource License
|
|
Summary: A library for Perl-compatible regular expressions
|
|
Group: System/Libraries
|
|
Recommends: %{name}-doc
|
|
# 7.9 is < 7.9.0 (mls)
|
|
Obsoletes: %name <= 7.9
|
|
Provides: %name <= 7.9
|
|
|
|
%description tools
|
|
The PCRE library is a set of functions that implement regular
|
|
expression pattern matching using the same syntax and semantics as Perl
|
|
5, with very few differences. The current implementation corresponds to
|
|
Perl 5.005.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Philip Hazel <ph10@cam.ac.uk>
|
|
|
|
%prep
|
|
%setup -q -n %name-%rversion
|
|
|
|
%build
|
|
%configure --disable-static \
|
|
--with-link-size=2 \
|
|
--with-match-limit=10000000 \
|
|
--enable-newline-is-lf \
|
|
--enable-utf8 \
|
|
--enable-unicode-properties
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%{__make} DESTDIR=%{buildroot} install
|
|
%{__mkdir_p} %{buildroot}/%{_defaultdocdir}
|
|
mv %{buildroot}/usr/share/doc/pcre %{buildroot}/%{_defaultdocdir}/pcre
|
|
#empty dependecy_libs
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
|
#move 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
|
|
|
|
%check
|
|
export LANG=POSIX
|
|
%ifarch %arm
|
|
make test || echo make test failed
|
|
%else
|
|
make test
|
|
%endif
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS NON-UNIX-USE README
|
|
|
|
%files tools
|
|
%defattr(-,root,root)
|
|
%{_bindir}/pcregrep
|
|
%{_bindir}/pcretest
|
|
%{_mandir}/man1/*.gz
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%doc doc/html doc/*.txt
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/pcre-config
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/libpcre.pc
|
|
%{_libdir}/pkgconfig/libpcrecpp.pc
|
|
%{_mandir}/man3/*.gz
|
|
|
|
%changelog
|