diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2013-07-09 13:42:58 +0000 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2013-07-09 13:44:54 +0000 |
commit | ce932dbd546fb8e0936cae44bbad8f6e1048bd2f (patch) | |
tree | c2e18d9ad4e93be5c27f23d33fd9d86d3e5fd450 | |
parent | 903813bda215d5937caf0745824bdcde9d2e3cec (diff) | |
download | re2-ce932dbd546fb8e0936cae44bbad8f6e1048bd2f.tar.gz re2-ce932dbd546fb8e0936cae44bbad8f6e1048bd2f.tar.bz2 re2-ce932dbd546fb8e0936cae44bbad8f6e1048bd2f.zip |
initial packaging of version 20130115submit/tizen/20130723.000806submit/tizen/20130717.005537submit/tizen/20130716.185726
Source comes from upstream tar ball, .spec file from openSUSE (BSD license,
like the source code).
-rw-r--r-- | packaging/re2.changes | 4 | ||||
-rw-r--r-- | packaging/re2.spec | 84 |
2 files changed, 88 insertions, 0 deletions
diff --git a/packaging/re2.changes b/packaging/re2.changes new file mode 100644 index 0000000..598b924 --- /dev/null +++ b/packaging/re2.changes @@ -0,0 +1,4 @@ +* 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..64988cf --- /dev/null +++ b/packaging/re2.spec @@ -0,0 +1,84 @@ +# +# spec file for package python-compizconfig +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: re2 +%define lname libre2-0 +Version: 20130115 +Release: 1 +License: BSD-3-Clause +Summary: An efficient, principled regular expression library +Url: http://code.google.com/p/re2/ +Group: Development/Libraries/C and C++ +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 %lname +License: BSD-3-Clause +Summary: An efficient, principled regular expression library +Group: Development/Libraries/C and C++ + +%description -n %lname +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: Development/Libraries/C and C++ +Requires: %lname = %{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} + +make DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} prefix=%{_prefix} install +rm $RPM_BUILD_ROOT%{_libdir}/libre2.a + + +%post -n %lname -p /sbin/ldconfig + +%postun -n %lname -p /sbin/ldconfig + + +%files -n %lname +%defattr(-, root, root, -) +%doc AUTHORS LICENSE 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 |