diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-02-09 07:46:58 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-02-09 07:46:58 +0900 |
commit | 52f07490e08bd09d8c28a72d12fa46699eca7036 (patch) | |
tree | ff440fa085688422ff4df3bf628bf531b1da87bd | |
parent | c7f09d101e3b1f1d6480b117ae886b4e6bbf866b (diff) | |
download | re2-accepted/tizen_7.0_unified.tar.gz re2-accepted/tizen_7.0_unified.tar.bz2 re2-accepted/tizen_7.0_unified.zip |
Bump to re2 20220201tizen_8.0_m2_releasetizen_7.0_m2_releasesubmit/tizen/20220209.224325accepted/tizen/unified/20220212.064841accepted/tizen/8.0/unified/20231005.095511accepted/tizen/7.0/unified/hotfix/20221116.111406accepted/tizen/7.0/unified/20221110.061351tizen_7.0_hotfixtizen_7.0sandbox/dh0128.kwak/re2-20220201-20220208sandbox/backup/re2_20220201_20240122accepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unified
Change-Id: I7e5eb42c2b513c0d60f04d17ff5de1ff7a570140
-rw-r--r-- | packaging/re2.manifest | 5 | ||||
-rw-r--r-- | packaging/re2.spec | 65 |
2 files changed, 70 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..4881651 --- /dev/null +++ b/packaging/re2.spec @@ -0,0 +1,65 @@ +Name: re2 +Version: 20220201 +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++ + +%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.9 +%{_libdir}/libre2.so.9.0.0 + +%files devel +%manifest %{name}.manifest +%{_includedir}/re2 +%{_libdir}/libre2.so +%{_libdir}/pkgconfig/re2.pc |