Move UTF-16 and UTF-32 libraries into pcre-ut16 and pcre-32 subpackages
This commit is contained in:
parent
eccef620dd
commit
0cdcbba8ae
2
.rpmlint
Normal file
2
.rpmlint
Normal file
@ -0,0 +1,2 @@
|
||||
from Config import *
|
||||
addFilter("spelling-error .* encodings");
|
53
pcre.spec
53
pcre.spec
@ -2,7 +2,7 @@
|
||||
#%%global rcversion RC1
|
||||
Name: pcre
|
||||
Version: 8.38
|
||||
Release: %{?rcversion:0.}11%{?rcversion:.%rcversion}%{?dist}
|
||||
Release: %{?rcversion:0.}12%{?rcversion:.%rcversion}%{?dist}
|
||||
%global myversion %{version}%{?rcversion:-%rcversion}
|
||||
Summary: Perl-compatible regular expression library
|
||||
Group: System Environment/Libraries
|
||||
@ -104,13 +104,34 @@ PCRE, Perl-compatible regular expression, library has its own native API, but
|
||||
a set of wrapper functions that are based on the POSIX API are also supplied
|
||||
in the libpcreposix library. Note that this just provides a POSIX calling
|
||||
interface to PCRE: the regular expressions themselves still follow Perl syntax
|
||||
and semantics. Detailed change log is provided by %{name}-doc package.
|
||||
and semantics. This package provides support for strings in 8-bit and UTF-8
|
||||
encodings. Detailed change log is provided by %{name}-doc package.
|
||||
|
||||
%package utf16
|
||||
Summary: UTF-16 variant of PCRE
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Conflicts: %{name}%{?_isa} < 8.38-12
|
||||
|
||||
%description utf16
|
||||
This is Perl-compatible regular expression library working on UTF-16 strings.
|
||||
Detailed change log is provided by %{name}-doc package.
|
||||
|
||||
%package utf32
|
||||
Summary: UTF-32 variant of PCRE
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Conflicts: %{name}%{?_isa} < 8.38-12
|
||||
|
||||
%description utf32
|
||||
This is Perl-compatible regular expression library working on UTF-32 strings.
|
||||
Detailed change log is provided by %{name}-doc package.
|
||||
|
||||
%package doc
|
||||
Summary: Change log for %{name}
|
||||
Group: Documentation
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: (%{name} = %{version}-%{release} or %{name}-utf16 = %{version}-%{release} or %{name}-32 = %{version}-%{release})
|
||||
|
||||
%description doc
|
||||
These are large documentation files about PCRE.
|
||||
@ -119,6 +140,8 @@ These are large documentation files about PCRE.
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: %{name}-utf16%{?_isa} = %{version}-%{release}
|
||||
Requires: %{name}-utf32%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development files (Headers, libraries for dynamic linking, etc) for %{name}.
|
||||
@ -200,15 +223,32 @@ ulimit -s 10240
|
||||
make %{?_smp_mflags} check VERBOSE=yes
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post utf16 -p /sbin/ldconfig
|
||||
%postun utf16 -p /sbin/ldconfig
|
||||
|
||||
%post utf32 -p /sbin/ldconfig
|
||||
%postun utf32 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/libpcre.so.*
|
||||
%{_libdir}/libpcrecpp.so.*
|
||||
%{_libdir}/libpcreposix.so.*
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license COPYING LICENCE
|
||||
%doc AUTHORS NEWS
|
||||
|
||||
%files utf16
|
||||
%{_libdir}/libpcre16.so.*
|
||||
%license COPYING LICENCE
|
||||
%doc AUTHORS NEWS
|
||||
|
||||
%files utf32
|
||||
%{_libdir}/libpcre32.so.*
|
||||
%license COPYING LICENCE
|
||||
%doc AUTHORS NEWS
|
||||
|
||||
%files doc
|
||||
%doc ChangeLog
|
||||
|
||||
@ -234,6 +274,9 @@ make %{?_smp_mflags} check VERBOSE=yes
|
||||
%{_mandir}/man1/pcretest.*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 07 2016 Petr Pisar <ppisar@redhat.com> - 8.38-12
|
||||
- Move UTF-16 and UTF-32 libraries into pcre-ut16 and pcre-32 subpackages
|
||||
|
||||
* Mon Mar 07 2016 Petr Pisar <ppisar@redhat.com> - 8.38-11
|
||||
- Ship ChangeLog in pcre-doc package
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user