From b9269e1af4f55663a316c815170194da919b21e935345a328deb249f82eba884 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 11 Dec 2018 19:05:06 +0000 Subject: [PATCH] - Initial packaging (version 1.0.6) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fb-re2?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++++ .gitignore | 1 + fb-re2-1.0.6.tar.gz | 3 +++ python-fb-re2.changes | 4 ++++ python-fb-re2.spec | 56 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 87 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 fb-re2-1.0.6.tar.gz create mode 100644 python-fb-re2.changes create mode 100644 python-fb-re2.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/fb-re2-1.0.6.tar.gz b/fb-re2-1.0.6.tar.gz new file mode 100644 index 0000000..50329d6 --- /dev/null +++ b/fb-re2-1.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aca4d1f74b743c55efb11b88ba1b33b6d05f9b782219a341528c39c51a3ea971 +size 10355 diff --git a/python-fb-re2.changes b/python-fb-re2.changes new file mode 100644 index 0000000..00bd5f8 --- /dev/null +++ b/python-fb-re2.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Dec 11 18:56:14 UTC 2018 - Thomas Bechtold + +- Initial packaging (version 1.0.6) diff --git a/python-fb-re2.spec b/python-fb-re2.spec new file mode 100644 index 0000000..3136ee0 --- /dev/null +++ b/python-fb-re2.spec @@ -0,0 +1,56 @@ +# +# spec file for package python-fb-re2 +# +# Copyright (c) 2018 SUSE LINUX 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-fb-re2 +Version: 1.0.6 +Release: 0 +Summary: Python wrapper for Google's RE2 +License: BSD-3-Clause +Group: Development/Languages/Python +Url: https://github.com/facebook/pyre2 +Source: https://files.pythonhosted.org/packages/source/f/fb-re2/fb-re2-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: python-rpm-macros +BuildRequires: re2-devel + +%python_subpackages + +%description +Python wrapper for Google's RE2 + +%prep +%setup -q -n fb-re2-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitearch}/* + +%changelog