Projects
home:pandora:RobinOS23
pcre
_service:download_src_package:pcre.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:pcre.spec of Package pcre
%define anolis_release 2 Name: pcre Version: 8.45 Release: %{anolis_release}%{?dist} %global myversion %{version}%{?rcversion:-%rcversion} Summary: Perl-compatible regular expression library License: BSD URL: https://www.pcre.org/ Source0: https://sourceforge.net/projects/pcre/files/pcre/8.45/pcre-8.45.tar.bz2 BuildRequires: readline-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: coreutils BuildRequires: gcc BuildRequires: gcc-c++ # glibc-common for iconv BuildRequires: glibc-common BuildRequires: gnupg2 BuildRequires: libtool BuildRequires: make # perl not used because config.h.generic is pregenerated # Tests: BuildRequires: bash BuildRequires: diffutils BuildRequires: grep %description 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. 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 Conflicts: %{name} < 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 Conflicts: %{name} < 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 cpp Summary: C++ bindings for PCRE Requires: %{name} = %{version}-%{release} %description cpp This is C++ bindings for the Perl-compatible regular expression library. Detailed change log is provided by %{name}-doc package. %package doc Summary: Change log for %{name} BuildArch: noarch %description doc These are large documentation files about PCRE. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} Requires: %{name}-cpp = %{version}-%{release} Requires: %{name}-utf16 = %{version}-%{release} Requires: %{name}-utf32 = %{version}-%{release} %description devel Development files (Headers, libraries for dynamic linking, etc) for %{name}. %package static Summary: Static library for %{name} Requires: %{name}-devel = %{version}-%{release} %description static Library for static linking for %{name}. %package tools Summary: Auxiliary utilities for %{name} Requires: %{name} = %{version}-%{release} %description tools Utilities demonstrating PCRE capabilities like pcregrep or pcretest. %prep %setup -q -n %{name}-%{version} # Because of the multilib patch libtoolize --copy --force autoreconf -vif # One contributor's name is non-UTF-8 for F in ChangeLog; do iconv -f latin1 -t utf8 "$F" >"${F}.utf8" touch --reference "$F" "${F}.utf8" mv "${F}.utf8" "$F" done %build %configure \ --enable-jit \ --enable-pcretest-libreadline \ --enable-utf \ --enable-unicode-properties \ --enable-pcre8 \ --enable-pcre16 \ --enable-pcre32 \ --disable-silent-rules %{make_build} %install %{make_install} # Get rid of unneeded *.la files rm -f $RPM_BUILD_ROOT%{_libdir}/*.la # These are handled by %%doc in %%files rm -rf $RPM_BUILD_ROOT%{_docdir}/pcre %generate_compatibility_deps %check make %{?_smp_mflags} check VERBOSE=yes %files %dir %{abidir} %{_libdir}/libpcre.so.1 %{_libdir}/libpcre.so.1.* %{_libdir}/libpcreposix.so.0 %{_libdir}/libpcreposix.so.0.* %{abidir}/libpcre*.dump %{abidir}/libpcreposix*.dump %license COPYING LICENCE %doc AUTHORS NEWS %files utf16 %{_libdir}/libpcre16.so.0 %{_libdir}/libpcre16.so.0.* %{abidir}/libpcre16*.dump %license COPYING LICENCE %doc AUTHORS NEWS %files utf32 %{_libdir}/libpcre32.so.0 %{_libdir}/libpcre32.so.0.* %{abidir}/libpcre32*.dump %license COPYING LICENCE %doc AUTHORS NEWS %files cpp %{_libdir}/libpcrecpp.so.0 %{_libdir}/libpcrecpp.so.0.* %{abidir}/libpcrecpp*.dump %files doc %doc ChangeLog %files devel %{_libdir}/*.so %{_libdir}/pkgconfig/* %{_includedir}/*.h %{_mandir}/man1/pcre-config.* %{_mandir}/man3/* %{_bindir}/pcre-config %{abidir}/pcre-config-option.list %doc doc/*.txt doc/html %doc README HACKING pcredemo.c %files static %{_libdir}/*.a %license COPYING LICENCE %files tools %{_bindir}/pcregrep %{_bindir}/pcretest %{abidir}/pcre*-option.list %{_mandir}/man1/pcregrep.* %{_mandir}/man1/pcretest.* %changelog * Fri Oct 14 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 8.45-2 - optimise spec file * Tue Mar 15 2022 Renbo <rb01097748@alibaba-inc.com> - 8.45-1 - Init for Anolis OS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2