diff --git a/2016-04-01.tar.gz b/2016-04-01.tar.gz new file mode 100644 index 0000000..f8a9780 Binary files /dev/null and b/2016-04-01.tar.gz differ diff --git a/re2.spec b/re2.spec new file mode 100644 index 0000000..62bf4a9 --- /dev/null +++ b/re2.spec @@ -0,0 +1,53 @@ +Name: re2 +Version: 20160401 +Release: 8 +Summary: Provide backtracking RE engine +License: BSD +URL: http://github.com/google/re2/ +Source0: https://github.com/google/re2/archive/2016-04-01.tar.gz +BuildRequires: gcc-c++ + +%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 devel +Summary: Provide re2 symbolic links with C ++ header files and libraries +Requires: %{name} = %{version}-%{release} + +%description devel +This package contains C ++ header files and symbolic links to re2's shared libraries. +If you want to develop programs using re2, you need to install re2-devel. + +%prep +%autosetup -n %{name}-2016-04-01 -p1 + +%build +%make_build CXXFLAGS="${CXXFLAGS:-%optflags} -pthread -std=c++11" \ + LDFLAGS="${LDFLAGS:-%__global_ldflags} -pthread" \ + includedir=%{_includedir} libdir=%{_libdir} + +%install +%make_install includedir=%{_includedir} libdir=%{_libdir} + +%check +make %{?_smp_mflags} shared-test + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%doc AUTHORS CONTRIBUTORS README LICENSE +%{_libdir}/lib%{name}.so.* + +%files devel +%{_includedir}/%{name} +%{_libdir}/{lib%{name}.so,pkgconfig/%{name}.pc} +%exclude %{_libdir}/libre2.a + +%changelog +* Fri Nov 29 2019 fengbing - 20160401-8 +- Package init