diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b8f9883 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/fb-re2-1.0.7.tar.gz +*.rpm +*.tgz +*.tar.gz diff --git a/python-fb-re2.spec b/python-fb-re2.spec new file mode 100644 index 0000000..52e9126 --- /dev/null +++ b/python-fb-re2.spec @@ -0,0 +1,84 @@ +%global srcname fb-re2 +%global _description %{expand: +python-fb-re2 is a Python extension that wraps Google's RE2 regular expression +library. + +This is Facebook's pyre2 Python extension that wraps Google's RE2 regular +expression library. It implements many of the features of Python's built-in re +module with compatible interfaces.} + +Name: python-%{srcname} +Version: 1.0.7 +Release: 1%{?dist} +Summary: Python wrapper for Google's RE2 library + +License: BSD +URL: https://github.com/facebook/pyre2 +Source0: %pypi_source + +%description %_description + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: re2-devel +BuildRequires: gcc-c++ +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} %_description + +%prep +%setup -q -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{srcname} +%doc README +%pycached %{python3_sitearch}/re2.py +%{python3_sitearch}/*re2*.so +%{python3_sitearch}/fb_re2-*.egg-info/ + +%changelog +* Tue Mar 10 2020 Fabien Boucher - 1.0.7-1 +- Bump to 1.0.7 + +* Sat Apr 14 2018 Tristan Cacqueray - 1.0.6-1 +- Bump to 1.0.6 + +* Thu Aug 03 2017 Fedora Release Engineering - 1.0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun Oct 09 2016 Mads Kiilerich - 1.0.5-1 +- python3-re2 1.0.5 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.0.4-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 1.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Apr 14 2015 Mads Kiilerich - 1.0.4-1 +- change from the axiak/pyre2 fork back to the upstream facebook/pyre2 +- enable tests + +* Thu Feb 12 2015 Ralph Bean - 0.2.20-2.20150211git382bb74 +- Move to a post-release git checkout to include various bugfixes. +- Remove rpath settings. +- Use Cython for the build. + +* Wed Feb 11 2015 Ralph Bean - 0.2.20-1 +- initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..c3c2bfb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fb-re2-1.0.7.tar.gz) = d2aa1078f524615676c8f7052fcd7862cccc47fa4ca76b765063b02f685a5585719f6e0e950c16898d8930d018549ead2d1a1d2695368609cc989f5677975401