7
0

3 Commits

Author SHA256 Message Date
760a426c31 Fix wrong requirements after hacking version 2026-01-12 12:00:01 +00:00
f2fa559a99 Fake version to 10.34.1 2026-01-09 16:37:58 +00:00
Michael Calmer
fdfd3e00cd rename spec to match directory name 2026-01-09 12:46:54 +00:00
2 changed files with 41 additions and 19 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Jan 9 16:37:30 UTC 2026 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com>
- Adjust version to 10.34.1
-------------------------------------------------------------------
Sat Dec 20 12:07:19 UTC 2025 - Michael Calmer <mc@suse.com>
- rename spec to match directory name
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 20 01:37:10 UTC 2022 - Jason Sikes <jsikes@suse.com> Wed Jul 20 01:37:10 UTC 2022 - Jason Sikes <jsikes@suse.com>

View File

@@ -15,18 +15,29 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%define realname pcre2
%define realversion 10.34
Name: pcre2 Name: pcre2-sle12
Version: 10.34 # NOTE ABOUT VERSION HACK
# The real version of this package is "10.34". We had to fake the version
# number by adding and extra ".1" to it.
# The reason is that, after having to rename the package due to Git workflow restrictions,
# the release number counter is reset for this new package, and therefore the
# new binaries are using an lower release number than previous builds before the package renaming.
# To avoid the Salt Bundle to take older binaries we just faked the version here to a higher one.
# NOTE: Once we upgrade this package to a higher version than 10.34, we can just drop this
# hack.
Version: 10.34.1
Release: 0 Release: 0
Summary: A library for Perl-compatible regular expressions Summary: A library for Perl-compatible regular expressions
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
URL: https://www.pcre.org/ URL: https://www.pcre.org/
#SVN-Clone: svn://vcs.exim.org/pcre/code/trunk #SVN-Clone: svn://vcs.exim.org/pcre/code/trunk
Source: https://ftp.pcre.org/pub/pcre/%{name}-%{version}.tar.bz2 Source: https://ftp.pcre.org/pub/pcre/%{realname}-%{realversion}.tar.bz2
Source2: https://ftp.pcre.org/pub/pcre/%{name}-%{version}.tar.bz2.sig Source2: https://ftp.pcre.org/pub/pcre/%{realname}-%{realversion}.tar.bz2.sig
Source3: %{name}.keyring Source3: %{realname}.keyring
Source4: baselibs.conf Source4: baselibs.conf
#PATCH-FIX-OPENSUSE tchvatal@suse.cz upstream thinks it is good idea to use rpath, taken from RH #PATCH-FIX-OPENSUSE tchvatal@suse.cz upstream thinks it is good idea to use rpath, taken from RH
Patch1: pcre2-10.10-multilib.patch Patch1: pcre2-10.10-multilib.patch
@@ -55,7 +66,8 @@ as Perl 5.
PCRE2 is a re-working of the original PCRE library to provide an entirely new PCRE2 is a re-working of the original PCRE library to provide an entirely new
API. API.
%package devel
%package -n pcre2-devel
Summary: A library for Perl-compatible regular expressions Summary: A library for Perl-compatible regular expressions
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libpcre2-16-0 = %{version} Requires: libpcre2-16-0 = %{version}
@@ -64,7 +76,7 @@ Requires: libpcre2-8-0 = %{version}
Requires: libpcre2-posix2 = %{version} Requires: libpcre2-posix2 = %{version}
Requires: libstdc++-devel Requires: libstdc++-devel
%description devel %description -n pcre2-devel
The PCRE2 library is a set of functions that implement regular The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics expression pattern matching using the same syntax and semantics
as Perl 5. as Perl 5.
@@ -72,12 +84,12 @@ as Perl 5.
PCRE2 is a re-working of the original PCRE library to provide an entirely new PCRE2 is a re-working of the original PCRE library to provide an entirely new
API. API.
%package devel-static %package -n pcre2-devel-static
Summary: A library for Perl-compatible regular expressions Summary: A library for Perl-compatible regular expressions
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: pcre2-devel = %{version} Requires: pcre2-devel = %{version}
%description devel-static %description -n pcre2-devel-static
The PCRE2 library is a set of functions that implement regular The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics expression pattern matching using the same syntax and semantics
as Perl 5. as Perl 5.
@@ -144,12 +156,12 @@ API.
pcre2-posix provides a POSIX-compatible API to the PCRE2 engine. pcre2-posix provides a POSIX-compatible API to the PCRE2 engine.
%package doc %package -n pcre2-doc
Summary: A library for Perl-compatible regular expressions Summary: A library for Perl-compatible regular expressions
Group: Documentation/HTML Group: Documentation/HTML
BuildArch: noarch BuildArch: noarch
%description doc %description -n pcre2-doc
The PCRE2 library is a set of functions that implement regular The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics expression pattern matching using the same syntax and semantics
as Perl 5. as Perl 5.
@@ -157,12 +169,12 @@ as Perl 5.
PCRE2 is a re-working of the original PCRE library to provide an entirely new PCRE2 is a re-working of the original PCRE library to provide an entirely new
API. API.
%package tools %package -n pcre2-tools
Summary: A library for Perl-compatible regular expressions Summary: A library for Perl-compatible regular expressions
Group: Productivity/Text/Utilities Group: Productivity/Text/Utilities
Recommends: %{name}-doc Recommends: %{realname}-doc
%description tools %description -n pcre2-tools
The PCRE2 library is a set of functions that implement regular The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics expression pattern matching using the same syntax and semantics
as Perl 5. as Perl 5.
@@ -171,7 +183,7 @@ PCRE2 is a re-working of the original PCRE library to provide an entirely new
API. API.
%prep %prep
%setup -q %setup -q -n %{realname}-%{realversion}
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
@@ -245,20 +257,20 @@ make check -j1
%doc LICENCE %doc LICENCE
%{_libdir}/libpcre2-posix.so.* %{_libdir}/libpcre2-posix.so.*
%files tools %files -n pcre2-tools
%doc LICENCE %doc LICENCE
%{_bindir}/pcre2grep %{_bindir}/pcre2grep
%{_bindir}/pcre2test %{_bindir}/pcre2test
%{_mandir}/man1/pcre2grep.1%{?ext_man} %{_mandir}/man1/pcre2grep.1%{?ext_man}
%{_mandir}/man1/pcre2test.1%{?ext_man} %{_mandir}/man1/pcre2test.1%{?ext_man}
%files doc %files -n pcre2-doc
%license COPYING %license COPYING
%doc AUTHORS ChangeLog LICENCE NEWS README %doc AUTHORS ChangeLog LICENCE NEWS README
%doc doc/html doc/*.txt %doc doc/html doc/*.txt
%doc %{_defaultdocdir}/pcre2-doc %doc %{_defaultdocdir}/pcre2-doc
%files devel %files -n pcre2-devel
%doc LICENCE %doc LICENCE
%{_bindir}/pcre2-config %{_bindir}/pcre2-config
%{_includedir}/* %{_includedir}/*
@@ -270,7 +282,7 @@ make check -j1
%{_mandir}/man1/pcre2-config.1%{?ext_man} %{_mandir}/man1/pcre2-config.1%{?ext_man}
%{_mandir}/man3/*%{ext_man} %{_mandir}/man3/*%{ext_man}
%files devel-static %files -n pcre2-devel-static
%{_libdir}/*.a %{_libdir}/*.a
%changelog %changelog