mirror of
https://abf.rosa.ru/djam/pcre2.git
synced 2025-02-23 19:12:55 +00:00
Automatic import for version 10.22-1
This commit is contained in:
commit
68fd7e9e44
3 changed files with 210 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
"pcre2-10.22.tar.bz2": 3be3891e1cb1caaa31fa89db51d015831f8f8089
|
39
pcre2-10.10-Fix-multilib.patch
Normal file
39
pcre2-10.10-Fix-multilib.patch
Normal file
|
@ -0,0 +1,39 @@
|
|||
From 8b6b10229201e5b148979a24e06c640dbbcfbad9 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Fri, 20 Feb 2015 14:34:26 +0100
|
||||
Subject: [PATCH] Fix multilib
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Do not set RPATH nor add explicit -L path to compiler.
|
||||
|
||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
|
||||
diff --git a/pcre2-config.in b/pcre2-config.in
|
||||
index 932160e..dbef5e5 100644
|
||||
--- a/pcre2-config.in
|
||||
+++ b/pcre2-config.in
|
||||
@@ -28,19 +28,7 @@ if test $# -eq 0; then
|
||||
fi
|
||||
|
||||
libR=
|
||||
-case `uname -s` in
|
||||
- *SunOS*)
|
||||
- libR=" -R@libdir@"
|
||||
- ;;
|
||||
- *BSD*)
|
||||
- libR=" -Wl,-R@libdir@"
|
||||
- ;;
|
||||
-esac
|
||||
-
|
||||
libS=
|
||||
-if test @libdir@ != /usr/lib ; then
|
||||
- libS=-L@libdir@
|
||||
-fi
|
||||
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
--
|
||||
2.1.0
|
||||
|
169
pcre2.spec
Normal file
169
pcre2.spec
Normal file
|
@ -0,0 +1,169 @@
|
|||
%define major 0
|
||||
%define posixmajor 1
|
||||
%define libname8 %mklibname pcre2-8_ %{major}
|
||||
%define libname16 %mklibname pcre2-16_ %{major}
|
||||
%define libname32 %mklibname pcre2-32_ %{major}
|
||||
%define libnameposix %mklibname pcre2posix %{posixmajor}
|
||||
%define devname %mklibname %{name} -d
|
||||
|
||||
Summary: Perl-compatible regular expression library
|
||||
Name: pcre2
|
||||
Version: 10.22
|
||||
Release: 1
|
||||
License: BSD
|
||||
Group: System/Libraries
|
||||
Url: http://www.pcre.org/
|
||||
Source0: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.bz2
|
||||
# Do no set RPATH if libdir is not /usr/lib
|
||||
Patch0: pcre2-10.10-Fix-multilib.patch
|
||||
BuildRequires: readline-devel
|
||||
|
||||
%description
|
||||
PCRE2 is a re-working of the original PCRE (Perl-compatible regular
|
||||
expression) library to provide an entirely new API.
|
||||
|
||||
PCRE2 is written in C, and it has its own API. There are three sets of
|
||||
functions, one for the 8-bit library, which processes strings of bytes, one
|
||||
for the 16-bit library, which processes strings of 16-bit values, and one for
|
||||
the 32-bit library, which processes strings of 32-bit values. There are no C++
|
||||
wrappers.
|
||||
|
||||
The distribution does contain a set of C wrapper functions for the 8-bit
|
||||
library that are based on the POSIX regular expression API (see the pcre2posix
|
||||
man page). These can be found in a library called libpcre2posix. Note that
|
||||
this just provides a POSIX calling interface to PCRE2; the regular expressions
|
||||
themselves still follow Perl syntax and semantics. The POSIX API is
|
||||
restricted, and does not give full access to all of PCRE2's facilities.
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{libname8}
|
||||
Summary: Perl-compatible regular expression library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libname8}
|
||||
PCRE2 is a re-working of the original PCRE (Perl-compatible regular
|
||||
expression) library to provide an entirely new API.
|
||||
|
||||
%files -n %{libname8}
|
||||
%{_libdir}/libpcre2-8.so.%{major}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{libname16}
|
||||
Summary: Perl-compatible regular expression library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libname16}
|
||||
PCRE2 is a re-working of the original PCRE (Perl-compatible regular
|
||||
expression) library to provide an entirely new API.
|
||||
|
||||
%files -n %{libname16}
|
||||
%{_libdir}/libpcre2-16.so.%{major}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{libname32}
|
||||
Summary: Perl-compatible regular expression library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libname32}
|
||||
PCRE2 is a re-working of the original PCRE (Perl-compatible regular
|
||||
expression) library to provide an entirely new API.
|
||||
|
||||
%files -n %{libname32}
|
||||
%{_libdir}/libpcre2-32.so.%{major}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{libnameposix}
|
||||
Summary: Perl-compatible regular expression library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libnameposix}
|
||||
This package contains the shared library libpcre2-posix.
|
||||
|
||||
%files -n %{libnameposix}
|
||||
%{_libdir}/libpcre2-posix.so.%{posixmajor}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{devname}
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/C
|
||||
Requires: %{libname8} = %{EVRD}
|
||||
Requires: %{libname16} = %{EVRD}
|
||||
Requires: %{libname32} = %{EVRD}
|
||||
Requires: %{libnameposix} = %{EVRD}
|
||||
Provides: %{name}-devel = %{EVRD}
|
||||
|
||||
%description -n %{devname}
|
||||
Development files (headers, libraries for dynamic linking, documentation)
|
||||
for %{name}. The header file for the POSIX-style functions is called
|
||||
pcre2posix.h.
|
||||
|
||||
%files -n %{devname}
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_includedir}/*.h
|
||||
%{_mandir}/man1/pcre2-config.*
|
||||
%{_mandir}/man3/*
|
||||
%{_bindir}/pcre2-config
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package tools
|
||||
Summary: Auxiliary utilities for %{name}
|
||||
Group: Development/Tools
|
||||
|
||||
%description tools
|
||||
Utilities demonstrating PCRE2 capabilities like pcre2grep or pcre2test.
|
||||
|
||||
%files tools
|
||||
%{_bindir}/pcre2grep
|
||||
%{_bindir}/pcre2test
|
||||
%{_mandir}/man1/pcre2grep.*
|
||||
%{_mandir}/man1/pcre2test.*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .multilib
|
||||
|
||||
%build
|
||||
# Because of multilib patch
|
||||
libtoolize --copy --force
|
||||
autoreconf -vif
|
||||
|
||||
%configure2_5x \
|
||||
--enable-jit \
|
||||
--enable-pcre2grep-jit \
|
||||
--disable-bsr-anycrlf \
|
||||
--disable-coverage \
|
||||
--disable-ebcdic \
|
||||
--disable-never-backslash-C \
|
||||
--enable-newline-is-lf \
|
||||
--enable-pcre2-8 \
|
||||
--enable-pcre2-16 \
|
||||
--enable-pcre2-32 \
|
||||
--disable-pcre2test-libedit \
|
||||
--enable-pcre2test-libreadline \
|
||||
--disable-pcre2grep-libbz2 \
|
||||
--disable-pcre2grep-libz \
|
||||
--disable-rebuild-chartables \
|
||||
--enable-shared \
|
||||
--enable-stack-for-recursion \
|
||||
--disable-static \
|
||||
--enable-unicode \
|
||||
--disable-valgrind
|
||||
%make
|
||||
|
||||
%install
|
||||
%makeinstall_std
|
||||
# These are handled by %%doc in %%files
|
||||
rm -rf %{buildroot}%{_docdir}/pcre2
|
||||
|
||||
%check
|
||||
make check VERBOSE=yes
|
||||
|
Loading…
Add table
Reference in a new issue