%global srcname parameterized Name: python-%{srcname} Version: 0.6.1 Release: 1%{?dist} Summary: Parameterized testing with any Python test framework License: BSD URL: https://pypi.python.org/pypi/parameterized Source0: https://files.pythonhosted.org/packages/source/%(n=%{srcname}; echo ${n:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description %{summary}. %package -n python2-%{srcname} Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools #BuildRequires: python2-nose #BuildRequires: python2-pytest %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} %{summary}. Python 2 version. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools #BuildRequires: python3-nose #BuildRequires: python3-pytest %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{summary}. Python 3 version. %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %check export LC_ALL=C.UTF-8 #nosetests-%{python2_version} -v #py.test-%{python2_version} -v parameterized/test.py #%{__python2} -m unittest -v parameterized.test #nosetests-%{python3_version} -v #py.test-%{python3_version} -v parameterized/test.py #%{__python3} -m unittest -v parameterized.test %files -n python2-%{srcname} %license LICENSE.txt %doc CHANGELOG.txt README.rst %{python2_sitelib}/%{srcname}-*.egg-info/ %{python2_sitelib}/%{srcname}/ %files -n python3-%{srcname} %license LICENSE.txt %doc CHANGELOG.txt README.rst %{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}/ %changelog * Sun Nov 19 2017 Igor Gnatenko - 0.6.1-1 - Initial package