[packages/re2] - updated to 2020-04-01 (new soname)
qboosh
qboosh at pld-linux.org
Tue Apr 28 22:09:02 CEST 2020
commit 91f9355bd48dde303f3a7812c89c1b81db2a2a3d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Apr 28 22:09:13 2020 +0200
- updated to 2020-04-01 (new soname)
re2.spec | 54 ++++++++++++++++++++++++++++++++++++++----------------
1 file changed, 38 insertions(+), 16 deletions(-)
---
diff --git a/re2.spec b/re2.spec
index ff9369a..1d16af5 100644
--- a/re2.spec
+++ b/re2.spec
@@ -3,19 +3,21 @@
%bcond_without tests # build without tests
%bcond_without static_libs # don't build static libraries
-%define subver 2016-09-01
-%define ver %(echo %{subver} | tr -d -)
+%define tagver 2020-04-01
+%define ver %(echo %{tagver} | tr -d -)
Summary: C++ fast alternative to backtracking RE engines
+Summary(pl.UTF-8): Szybka alternatywna dla silników RE w C++
Name: re2
Version: %{ver}
Release: 1
License: BSD
Group: Libraries
-Source0: https://github.com/google/re2/archive/%{subver}/%{name}-%{version}.tar.gz
-# Source0-md5: 760ebe39914f81635ad85623502bcb20
+#Source0Download: https://github.com/google/re2/releases
+Source0: https://github.com/google/re2/archive/%{tagver}/%{name}-%{tagver}.tar.gz
+# Source0-md5: 8e6079dff019309f1e1f0fad8cd637b8
Patch0: test-compile.patch
URL: https://github.com/google/re2
-BuildRequires: libstdc++-devel
+BuildRequires: libstdc++-devel >= 6:4.7
BuildRequires: rpmbuild(macros) >= 1.734
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,30 +35,49 @@ expression searches run in time linear in the size of the input, at
the expense of some missing features (e.g back references and
generalized assertions).
+%description -l pl.UTF-8
+RE2 to biblioteka C++ będąca szybką, bezpieczną, przyjazną dla wątków
+alternatywą dla silników wyrażeń regularnych ze śledzeniem, takimi jak
+używane w PCRE, Perlu i Pythonie.
+
+Silniki ze śledzeniem mają zwykle dużo możliwości i wygodny lukier
+składniowy, ale można je zmusić do wykładniczej złożoności czasowej
+nawet przy niewielkim wejściu.
+
+Dla odmiany RE2 używa teorii automatów, aby zagwarantować czas
+wyszukiwania liniowy względem rozmiaru wejścia kosztem braku
+niektórych możliwości (np. odwołań wstecznych i uogólnionych
+zapewnień).
+
%package devel
-Summary: C++ header files and library symbolic links for %{name}
+Summary: C++ header files and library symbolic link for RE2
+Summary(pl.UTF-8): Pliki nagłówkowe C++ i dowiązanie do biblioteki RE2
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: libstdc++-devel >= 6:4.7
%description devel
-This package contains the C++ header files and symbolic links to the
-shared libraries for %{name}. If you would like to develop programs
-using %{name}, you will need to install %{name}-devel.
+This package contains the C++ header files and symbolic link to the
+shared RE2 library.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe C++ oraz dowiązanie symboliczne do
+biblioteki współdzielonej RE2.
%package static
-Summary: Static %{name} library
-Summary(pl.UTF-8): Statyczna biblioteka %{name}
+Summary: Static RE2 library
+Summary(pl.UTF-8): Statyczna biblioteka RE2
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
-Static %{name} library.
+Static RE2 library.
%description static -l pl.UTF-8
-Statyczna biblioteka %{name}.
+Statyczna biblioteka RE2.
%prep
-%setup -q -n %{name}-%{subver}
+%setup -q -n %{name}-%{tagver}
%patch0 -p1
%build
@@ -77,6 +98,7 @@ Statyczna biblioteka %{name}.
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
INSTALL="install -p" \
includedir=%{_includedir} \
@@ -93,13 +115,13 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc AUTHORS CONTRIBUTORS LICENSE README
%attr(755,root,root) %{_libdir}/libre2.so.*.*.*
-%ghost %{_libdir}/libre2.so.0
+%attr(755,root,root) %ghost %{_libdir}/libre2.so.6
%files devel
%defattr(644,root,root,755)
%doc doc/syntax.txt
+%attr(755,root,root) %{_libdir}/libre2.so
%{_includedir}/re2
-%{_libdir}/libre2.so
%{_pkgconfigdir}/re2.pc
%if %{with static_libs}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/re2.git/commitdiff/91f9355bd48dde303f3a7812c89c1b81db2a2a3d
More information about the pld-cvs-commit
mailing list