ALT Linux repos
Group :: System/Libraries
RPM: pcre
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: pcre
Version: 7.8
Release: alt2
Summary: Perl-compatible regular expression library
License: BSD-style
Group: System/Libraries
Url: http://www.pcre.org/
Packager: Dmitry V. Levin <ldv at altlinux.org>
Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-%version.tar
Source1: pcre-config.1
Patch1: pcre-%version-%release.patch
Patch2: pcre-7.8-deb-alt-shlib.patch
Summary(ru_RU.KOI8-R): Библиотека для работы с Perl-совместимыми регулярными выражениями
%def_enable cpp
%def_disable compat
%if_enabled compat
%define libname lib%{name}
%else
%define libname lib%{name}3
%endif
BuildRequires: gcc-c++
%package -n %libname
Summary: Perl-compatible regular expression %{?_enable_compat:compatibility }shared library
Summary(ru_RU.KOI8-R): Разделяемая библиотека для работы с регулярными выражениями Perl-стиля
Group: System/Libraries
Provides: pcre-config(utf8)
Provides: pcre-config(unicode-properties)
Provides: %name = %version
Obsoletes: %name < %version
%package -n lib%name-devel
Summary: Perl-compatible regular expressions development environment
Summary(ru_RU.KOI8-R): Заголовочные файлы и документация для разработки с использованием библиотеки PCRE
Group: Development/C
Provides: %name-devel = %version
Obsoletes: %name-devel < %version
Requires: %libname = %version-%release
%package -n lib%name-devel-static
Summary: Perl-compatible regular expressions static library
Summary(ru_RU.KOI8-R): Вариант библиотеки PCRE для статической компоновки
Group: Development/C
Provides: %name-devel-static = %version
Obsoletes: %name-devel-static < %version
Requires: lib%name-devel = %version-%release
%package -n lib%{name}cpp
Summary: Perl-compatible regular expressions C++ wrapper shared library
Summary(ru_RU.KOI8-R): Разделяемая библиотека для работы с регулярными выражениями Perl-стиля на C++
Group: System/Libraries
Requires: %libname = %version-%release
%package -n lib%{name}cpp-devel
Summary: Perl-compatible regular expressions C++ wrapper development library and header files
Summary(ru_RU.KOI8-R): Заголовочные файлы и библиотека для разработки на C++ с использованием PCRE
Group: Development/C
Requires: lib%{name}cpp = %version-%release, lib%name-devel = %version-%release
%description
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
%description -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет
набор функций для работы с регулярными выражениями, синтаксис и смысл
которых полностью совпадают со встроенными регулярными выражениями
языка Perl версии 5.8.
%description -n %libname
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains PCRE %{?_enable_compat:compatibility }shared libraries.
%description -n %libname -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет
набор функций для работы с регулярными выражениями, синтаксис и смысл
которых полностью совпадают со встроенными регулярными выражениями
языка Perl версии 5.8.
Данный пакет содержит динамическую разделяемую библиотеку PCRE%{?_enable_compat:, совместимую со старыми версиями}.
%description -n lib%{name}cpp
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains PCRE C++ wrapper shared library.
%description -n lib%{name}cpp -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет набор
функций для работы с регулярными выражениями, синтаксис и смысл которых
полностью совпадают со встроенными регулярными выражениями языка Perl
версии 5.8.
Данный пакет содержит динамическую разделяемую библиотеку PCRE для C++.
%description -n lib%name-devel
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains development libraries, include files and development
documentation required for developing applications which use perl-style
regular expressions.
%description -n lib%name-devel -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет набор
функций для работы с регулярными выражениями, синтаксис и смысл которых
полностью совпадают со встроенными регулярными выражениями языка Perl
версии 5.8.
Данный пакет содержит средства разработки: заголовочные файлы и
документацию, необходимые для написания и сборки программ, использующих
библиотеку PCRE.
%description -n lib%{name}cpp-devel
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains development libraries, include files and development
documentation required for developing C++ applications which use
perl-style regular expressions.
%description -n lib%{name}cpp-devel -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет набор
функций для работы с регулярными выражениями, синтаксис и смысл которых
полностью совпадают со встроенными регулярными выражениями языка Perl
версии 5.8.
Данный пакет содержит средства разработки: заголовочные файлы и
документацию, необходимые для написания и сборки программ на C++,
использующих библиотеку PCRE.
%description -n lib%name-devel-static
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains static development libraries required for developing
statically linked applications which use perl-style regular expressions.
%description -n lib%name-devel-static -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет набор
функций для работы с регулярными выражениями, синтаксис и смысл которых
полностью совпадают со встроенными регулярными выражениями языка Perl
версии 5.8.
Данный пакет содержит библиотеку для статической компоновки программ,
использующих функции PCRE.
%prep
%setup -q
%patch1 -p1
%{!?_enable_compat:%patch2 -p1}
%build
autoreconf -fisv
%define docdir %_docdir/%name-%version
%configure --includedir=%_includedir/%name \
--docdir=%docdir \
%{subst_enable cpp} \
--enable-utf8 \
--enable-unicode-properties \
#
%make_build
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build check}}}
%install
%make_install install DESTDIR=%buildroot
# Relocate shared libraries from %_libdir/ to /%_lib/.
mkdir %buildroot/%_lib
for f in %buildroot%_libdir/libpcre{,posix}.so; do
t=`objdump -p "$f" |awk '$1=="SONAME"{print $2}'`
[ -n "$t" ]
ln -sf ../../%_lib/"$t" "$f"
done
mv %buildroot%_libdir/libpcre{,posix}.so.* %buildroot/%_lib/
install -pm644 %_sourcedir/pcre-config.1 %buildroot%_man1dir/
bzip2 -9 %buildroot%docdir/ChangeLog
install -pm644 HACKING pcredemo.c %buildroot%docdir/
rm %buildroot%_bindir/pcregrep
rm %buildroot%_man1dir/pcregrep.*
rm %buildroot%_libdir/*.la
%files -n %libname
/%_lib/libpcre.so.*
/%_lib/libpcreposix.so.*
%dir %docdir
%docdir/[ACLN]*
%if_disabled compat
%files -n lib%name-devel
%_libdir/*.so
%_includedir/pcre
%if_enabled cpp
%exclude %_libdir/libpcrecpp.so
%exclude %_includedir/pcre/pcrecpp*.h
%exclude %_includedir/pcre/pcre_*.h
%endif #cpp
%_bindir/*
%_pkgconfigdir/libpcre.pc
%_man1dir/*
%_man3dir/*
%dir %docdir
%docdir/H*
%docdir/*.c
%if_enabled cpp
%files -n lib%{name}cpp
%_libdir/libpcrecpp.so.*
%files -n lib%{name}cpp-devel
%_libdir/libpcrecpp.so
%dir %_includedir/pcre
%_includedir/pcre/pcrecpp*.h
%_includedir/pcre/pcre_*.h
%_pkgconfigdir/libpcrecpp.pc
%endif #cpp
%files -n lib%name-devel-static
%_libdir/*.a
%endif # disabled compat
%changelog
…
Full changelog you can see here
Version: 7.8
Release: alt2
Summary: Perl-compatible regular expression library
License: BSD-style
Group: System/Libraries
Url: http://www.pcre.org/
Packager: Dmitry V. Levin <ldv at altlinux.org>
Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-%version.tar
Source1: pcre-config.1
Patch1: pcre-%version-%release.patch
Patch2: pcre-7.8-deb-alt-shlib.patch
Summary(ru_RU.KOI8-R): Библиотека для работы с Perl-совместимыми регулярными выражениями
%def_enable cpp
%def_disable compat
%if_enabled compat
%define libname lib%{name}
%else
%define libname lib%{name}3
%endif
BuildRequires: gcc-c++
%package -n %libname
Summary: Perl-compatible regular expression %{?_enable_compat:compatibility }shared library
Summary(ru_RU.KOI8-R): Разделяемая библиотека для работы с регулярными выражениями Perl-стиля
Group: System/Libraries
Provides: pcre-config(utf8)
Provides: pcre-config(unicode-properties)
Provides: %name = %version
Obsoletes: %name < %version
%package -n lib%name-devel
Summary: Perl-compatible regular expressions development environment
Summary(ru_RU.KOI8-R): Заголовочные файлы и документация для разработки с использованием библиотеки PCRE
Group: Development/C
Provides: %name-devel = %version
Obsoletes: %name-devel < %version
Requires: %libname = %version-%release
%package -n lib%name-devel-static
Summary: Perl-compatible regular expressions static library
Summary(ru_RU.KOI8-R): Вариант библиотеки PCRE для статической компоновки
Group: Development/C
Provides: %name-devel-static = %version
Obsoletes: %name-devel-static < %version
Requires: lib%name-devel = %version-%release
%package -n lib%{name}cpp
Summary: Perl-compatible regular expressions C++ wrapper shared library
Summary(ru_RU.KOI8-R): Разделяемая библиотека для работы с регулярными выражениями Perl-стиля на C++
Group: System/Libraries
Requires: %libname = %version-%release
%package -n lib%{name}cpp-devel
Summary: Perl-compatible regular expressions C++ wrapper development library and header files
Summary(ru_RU.KOI8-R): Заголовочные файлы и библиотека для разработки на C++ с использованием PCRE
Group: Development/C
Requires: lib%{name}cpp = %version-%release, lib%name-devel = %version-%release
%description
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
%description -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет
набор функций для работы с регулярными выражениями, синтаксис и смысл
которых полностью совпадают со встроенными регулярными выражениями
языка Perl версии 5.8.
%description -n %libname
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains PCRE %{?_enable_compat:compatibility }shared libraries.
%description -n %libname -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет
набор функций для работы с регулярными выражениями, синтаксис и смысл
которых полностью совпадают со встроенными регулярными выражениями
языка Perl версии 5.8.
Данный пакет содержит динамическую разделяемую библиотеку PCRE%{?_enable_compat:, совместимую со старыми версиями}.
%description -n lib%{name}cpp
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains PCRE C++ wrapper shared library.
%description -n lib%{name}cpp -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет набор
функций для работы с регулярными выражениями, синтаксис и смысл которых
полностью совпадают со встроенными регулярными выражениями языка Perl
версии 5.8.
Данный пакет содержит динамическую разделяемую библиотеку PCRE для C++.
%description -n lib%name-devel
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains development libraries, include files and development
documentation required for developing applications which use perl-style
regular expressions.
%description -n lib%name-devel -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет набор
функций для работы с регулярными выражениями, синтаксис и смысл которых
полностью совпадают со встроенными регулярными выражениями языка Perl
версии 5.8.
Данный пакет содержит средства разработки: заголовочные файлы и
документацию, необходимые для написания и сборки программ, использующих
библиотеку PCRE.
%description -n lib%{name}cpp-devel
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains development libraries, include files and development
documentation required for developing C++ applications which use
perl-style regular expressions.
%description -n lib%{name}cpp-devel -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет набор
функций для работы с регулярными выражениями, синтаксис и смысл которых
полностью совпадают со встроенными регулярными выражениями языка Perl
версии 5.8.
Данный пакет содержит средства разработки: заголовочные файлы и
документацию, необходимые для написания и сборки программ на C++,
использующих библиотеку PCRE.
%description -n lib%name-devel-static
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl, with
just a few differences. The current implementation of PCRE corresponds
approximately with Perl 5.8.
This package contains static development libraries required for developing
statically linked applications which use perl-style regular expressions.
%description -n lib%name-devel-static -l ru_RU.KOI8-R
Библиотека PCRE (Perl-compatible regular expressions) предоставляет набор
функций для работы с регулярными выражениями, синтаксис и смысл которых
полностью совпадают со встроенными регулярными выражениями языка Perl
версии 5.8.
Данный пакет содержит библиотеку для статической компоновки программ,
использующих функции PCRE.
%prep
%setup -q
%patch1 -p1
%{!?_enable_compat:%patch2 -p1}
%build
autoreconf -fisv
%define docdir %_docdir/%name-%version
%configure --includedir=%_includedir/%name \
--docdir=%docdir \
%{subst_enable cpp} \
--enable-utf8 \
--enable-unicode-properties \
#
%make_build
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build check}}}
%install
%make_install install DESTDIR=%buildroot
# Relocate shared libraries from %_libdir/ to /%_lib/.
mkdir %buildroot/%_lib
for f in %buildroot%_libdir/libpcre{,posix}.so; do
t=`objdump -p "$f" |awk '$1=="SONAME"{print $2}'`
[ -n "$t" ]
ln -sf ../../%_lib/"$t" "$f"
done
mv %buildroot%_libdir/libpcre{,posix}.so.* %buildroot/%_lib/
install -pm644 %_sourcedir/pcre-config.1 %buildroot%_man1dir/
bzip2 -9 %buildroot%docdir/ChangeLog
install -pm644 HACKING pcredemo.c %buildroot%docdir/
rm %buildroot%_bindir/pcregrep
rm %buildroot%_man1dir/pcregrep.*
rm %buildroot%_libdir/*.la
%files -n %libname
/%_lib/libpcre.so.*
/%_lib/libpcreposix.so.*
%dir %docdir
%docdir/[ACLN]*
%if_disabled compat
%files -n lib%name-devel
%_libdir/*.so
%_includedir/pcre
%if_enabled cpp
%exclude %_libdir/libpcrecpp.so
%exclude %_includedir/pcre/pcrecpp*.h
%exclude %_includedir/pcre/pcre_*.h
%endif #cpp
%_bindir/*
%_pkgconfigdir/libpcre.pc
%_man1dir/*
%_man3dir/*
%dir %docdir
%docdir/H*
%docdir/*.c
%if_enabled cpp
%files -n lib%{name}cpp
%_libdir/libpcrecpp.so.*
%files -n lib%{name}cpp-devel
%_libdir/libpcrecpp.so
%dir %_includedir/pcre
%_includedir/pcre/pcrecpp*.h
%_includedir/pcre/pcre_*.h
%_pkgconfigdir/libpcrecpp.pc
%endif #cpp
%files -n lib%name-devel-static
%_libdir/*.a
%endif # disabled compat
%changelog
…
Full changelog you can see here