From c331bfc3c107fefbd65bf1f5dd88875696de80ac Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:22:50 +0100 Subject: [PATCH] legacy package [release 2020_03_03-2mamba;Thu Mar 09 2023] --- README.md | 2 ++ re2_6.spec | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 re2_6.spec diff --git a/README.md b/README.md index 6a730b7..73d5fa7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # re2_6 +RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library. + diff --git a/re2_6.spec b/re2_6.spec new file mode 100644 index 0000000..fc987c9 --- /dev/null +++ b/re2_6.spec @@ -0,0 +1,93 @@ +%define gitver %(echo %version | tr _ -) +Name: re2_6 +Version: 2020_03_03 +Release: 2mamba +Summary: A fast, safe, thread-friendly regular expression library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/google/re2 +Source: https://github.com/google/re2.git/%{gitver}/re2-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library. + +%package -n lib%{name} +Group: System/Libraries +Summary: A fast, safe, thread-friendly regular expression library + +%description -n lib%{name} +RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n re2-%{version} + +%build +#% cmake -d build +%make \ + prefix=%{_prefix} \ + libdir=%{_libdir} + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall \ + prefix=%{_prefix} \ + libdir=%{_libdir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libre2.so.* +%doc AUTHORS LICENSE + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/re2 +%{_includedir}/re2/* +%{_libdir}/libre2.a +%{_libdir}/libre2.so +%{_libdir}/pkgconfig/re2.pc +%doc README + + +%changelog +* Thu Mar 09 2023 Silvan Calarco 2020_03_03-2mamba +- legacy package + +* Sun Mar 29 2020 Ercole 'ercolinux' Carpanetto 2020_03_03-1mamba +- update to 2020_03_03 + +* Fri Aug 02 2019 Silvan Calarco 2019_08_01-1mamba +- update to 2019_08_01 + +* Sat Apr 15 2017 Ercole 'ercolinux' Carpanetto 2017_04_01-1mamba +- update to 2017_04_01 + +* Sun Dec 11 2016 Silvan Calarco 2016_11_01-1mamba +- package created using the webbuild interface