%global original_name ripe.atlas.sagan %global deps_py3 python3-pyOpenSSL python3-dateutil python3-pytz python-IPy-python3 %global deps_extra_py3 python3-ujson %global deps_tests_py3 python3-nose %global deps_py2 pyOpenSSL python-dateutil python2-pytz python-IPy %global deps_extra_py2 python2-ujson %global deps_tests_py2 python2-nose Name: ripe-atlas-sagan Version: 1.1.8 Release: 2%{?dist} Summary: A parsing library for RIPE Atlas measurement results License: GPLv3 URL: https://pypi.python.org/pypi/%{original_name}/ Source0: https://pypi.python.org/packages/source/r/%{original_name}/%{original_name}-%{version}.tar.gz BuildArch: noarch %description The ripe.atlas.sagan is a Python library for parsing RIPE Atlas measurement results. %package -n python3-%{name} Summary: A parsing library for RIPE Atlas measurement results BuildRequires: python3-devel BuildRequires: %deps_py3 %deps_extra_py3 %deps_tests_py3 Requires: %deps_py3 Recommends: %deps_extra_py3 %description -n python3-%{name} The ripe.atlas.sagan is a Python library for parsing RIPE Atlas measurement results. This package contains the library for Python 3. %package -n python2-%{name} Summary: A parsing library for RIPE Atlas measurement results BuildRequires: python2-devel BuildRequires: %deps_py2 %deps_extra_py2 %deps_tests_py2 Requires: %deps_py2 Recommends: %deps_extra_py2 %description -n python2-%{name} The ripe.atlas.sagan is a Python library for parsing RIPE Atlas measurement results. This package contains the library for Python 2. %prep %setup -q -n %{original_name}-%{version} %build %py2_build %py3_build %install %py3_install %py2_install # the tool will be deprecated in the next release rm -v %{buildroot}%{_bindir}/parse_abuf %check %__python2 setup.py check nosetests %__python3 setup.py check nosetests %files -n python3-%{name} %{!?_licensedir:%global license %%doc} %doc README.rst %license LICENSE %{python3_sitelib}/* %files -n python2-%{name} %{!?_licensedir:%global license %%doc} %doc README.rst %license LICENSE %{python2_sitelib}/* %changelog * Tue Jan 19 2016 Jan Vcelak 1.1.8-2 - remove parse_abuf script (it will be deprecated in the next release) * Thu Dec 31 2015 Jan Vcelak 1.1.8-1 - initial package