diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2013-07-09 13:42:58 +0000 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-12-01 16:39:42 +0900 |
commit | 13478d756a2059fa8d00ced788a30e4d9555ea2b (patch) | |
tree | ecea3fa2cd2d21b1fd171e178b2e0bce9a0a80eb | |
parent | 78801a28ef790790945eb3cfe5389a554a4ac044 (diff) | |
download | re2-13478d756a2059fa8d00ced788a30e4d9555ea2b.tar.gz re2-13478d756a2059fa8d00ced788a30e4d9555ea2b.tar.bz2 re2-13478d756a2059fa8d00ced788a30e4d9555ea2b.zip |
Rebase for re2 20161101
Change-Id: Id4d01beb08c26d2a8defd0566609f15f96908793
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
-rw-r--r-- | packaging/re2.changes | 7 | ||||
-rw-r--r-- | packaging/re2.spec | 82 |
2 files changed, 89 insertions, 0 deletions
diff --git a/packaging/re2.changes b/packaging/re2.changes new file mode 100644 index 0000000..bcf569f --- /dev/null +++ b/packaging/re2.changes @@ -0,0 +1,7 @@ +* Tue Jul 23 2013 Patrick Ohly <patrick.ohly@intel.com> +- fix build when debug packages are enabled + +* Tue Jul 09 2013 Patrick Ohly <patrick.ohly@intel.com> +- initial packaging of version 20130115 +- Imported Upstream version 20130115 + diff --git a/packaging/re2.spec b/packaging/re2.spec new file mode 100644 index 0000000..2703c11 --- /dev/null +++ b/packaging/re2.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-compizconfig +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 Intel Corporation. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +Name: re2 +Version: 20130115 +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 +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-3-Clause +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-3-Clause +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 + +%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 + + +%post -n libre2 -p /sbin/ldconfig + +%postun -n libre2 -p /sbin/ldconfig + + +%files -n libre2 +%defattr(-, root, root, -) +%license LICENSE +%doc AUTHORS README +%{_libdir}/libre2.so.0 +%{_libdir}/libre2.so.0.0.0 + + +%files devel +%defattr(-, root, root, -) +%{_includedir}/re2 +%{_libdir}/libre2.so
\ No newline at end of file |