diff options
author | TizenOpenSource <tizenopensrc@samsung.com> | 2024-01-22 14:53:47 +0900 |
---|---|---|
committer | TizenOpenSource <tizenopensrc@samsung.com> | 2024-01-22 14:53:47 +0900 |
commit | 77a4b95eababc5f45fea31e0552900d027da68fe (patch) | |
tree | 45acd887cc0b834a9bea3f8fde956e2dcd381ab2 | |
parent | 177079bbaa2fb42cfcea5d2dcd1f4929db1a66f9 (diff) | |
download | re2-77a4b95eababc5f45fea31e0552900d027da68fe.tar.gz re2-77a4b95eababc5f45fea31e0552900d027da68fe.tar.bz2 re2-77a4b95eababc5f45fea31e0552900d027da68fe.zip |
Bump to re2 20231101tizen_9.0_m2_releaseaccepted/tizen/unified/x/20240205.063810accepted/tizen/unified/toolchain/20240311.070057accepted/tizen/unified/dev/20240620.011057accepted/tizen/unified/20240131.064233accepted/tizen/unified/20240131.064140accepted/tizen/unified/20240131.064033accepted/tizen/9.0/unified/20241030.233312tizen_9.0sandbox/re2_20231101accepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unified
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
-rw-r--r-- | packaging/re2.manifest | 5 | ||||
-rw-r--r-- | packaging/re2.spec | 66 |
2 files changed, 71 insertions, 0 deletions
diff --git a/packaging/re2.manifest b/packaging/re2.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/re2.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/re2.spec b/packaging/re2.spec new file mode 100644 index 0000000..ae9f9a1 --- /dev/null +++ b/packaging/re2.spec @@ -0,0 +1,66 @@ +Name: re2 +Version: 20231101 +Release: 1 +License: BSD-3-Clause +Summary: An efficient, principled regular expression library +Url: http://code.google.com/p/re2/ +Group: System/Libraries +Source: re2-%{version}.tgz +Source1001: %{name}.manifest + +BuildRequires: gcc-c++ +BuildRequires: abseil-cpp-devel + +%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 libre2 +License: BSD-2.0 +Summary: An efficient, principled regular expression library +Group: System/Libraries + +%description -n libre2 +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 +License: BSD-2.0 +Summary: An efficient, principled regular expression library +Group: System/Libraries +Requires: libre2 = %{version} + +%description devel +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. + +%prep +%setup -q -n re2 +cp %{SOURCE1001} . + +%build +make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS -Wall -pthread" libdir=%{_libdir} prefix=%{_prefix} + +%install +make DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} prefix=%{_prefix} install +rm $RPM_BUILD_ROOT%{_libdir}/libre2.a + +%remove_docs + +%post -n libre2 -p /sbin/ldconfig + +%postun -n libre2 -p /sbin/ldconfig + +%files -n libre2 +%manifest %{name}.manifest +%license LICENSE +%{_libdir}/libre2.so.* + +%files devel +%manifest %{name}.manifest +%{_includedir}/re2 +%{_libdir}/libre2.so +%{_libdir}/pkgconfig/re2.pc |