diff --git a/python-pybloomfiltermmap.spec b/python-pybloomfiltermmap.spec index bd0d452..9448763 100644 --- a/python-pybloomfiltermmap.spec +++ b/python-pybloomfiltermmap.spec @@ -4,42 +4,83 @@ %filter_setup } -Name: python-pybloomfiltermmap +%global srcname pybloomfiltermmap +%global comm_desc The goal of pybloomfiltermmap is to provide a fast, simple, scalable,\ +correct library for Bloom Filters in Python. + +Name: python-%{srcname} Version: 0.3.15 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A Bloom filter (bloomfilter) for Python built on mmap License: MIT URL: http://github.com/axiak/pybloomfiltermmap/ Source0: http://pypi.python.org/packages/source/p/pybloomfiltermmap/pybloomfiltermmap-%{version}.tar.gz -BuildRequires: python2-devel python-setuptools openssl-devel Cython +BuildRequires: openssl-devel +BuildRequires: gcc + +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-Cython + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-Cython %description -The goal of pybloomfiltermmap is to provide a fast, simple, scalable, -correct library for Bloom Filters in Python. +%{comm_desc} + +%package -n python2-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +%{comm_desc} +This is python2 build. + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{comm_desc} +This is python3 build. + + %prep %setup -q -n pybloomfiltermmap-%{version} %build -CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build +%py2_build +%py3_build %check # Failed on armv7hl (see task 6998792 on Koji) -# %{__python} setup.py test +# %{__python2} setup.py test +# %{__python3} setup.py test %install %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -%files -%doc AUTHORS CHANGELOG LICENSE -%{python_sitearch}/* +%files -n python2-%{srcname} +%doc AUTHORS CHANGELOG +%licesne LICENSE +%{python2_sitearch}/* + +%files -n python3-%{srcname} +%doc AUTHORS CHANGELOG +%licesne LICENSE +%{python3_sitearch}/* %changelog +* Fri Aug 11 2017 Athmane Madjoudj - 0.3.15-7 +- Revamp the spec to use newest python guidelines. + * Thu Aug 03 2017 Fedora Release Engineering - 0.3.15-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild