%global _docdir_fmt %{name} %global srcname ddt %global _description \ DDT (Data-Driven Tests) allows you to multiply one test case by running it with\ different test data, and make it appear as multiple test cases. It is used in\ combination with other testing frameworks like unittest and nose. Name: python-%{srcname} Version: 1.1.3 Release: 2%{?dist} Summary: Python library to multiply test cases License: MIT URL: https://github.com/txels/ddt Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description %{_description} %package -n python2-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} BuildRequires: python2-devel %if 0%{?rhel} && 0%{?rhel} <= 7 BuildRequires: python-setuptools BuildRequires: python-nose BuildRequires: python-mock BuildRequires: python-six >= 1.4.0 BuildRequires: PyYAML %else BuildRequires: python2-setuptools BuildRequires: python2-nose BuildRequires: python2-mock BuildRequires: python2-six >= 1.4.0 BuildRequires: python2-yaml %endif %if ! 0%{?rhel} || 0%{?rhel} > 7 Recommends: python2-yaml %endif %description -n python2-%{srcname} %{_description} Python 2 version. %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-six >= 1.4.0 BuildRequires: python%{python3_pkgversion}-yaml %if ! 0%{?rhel} || 0%{?rhel} > 7 Recommends: python%{python3_pkgversion}-yaml %endif %description -n python%{python3_pkgversion}-%{srcname} %{_description} Python 3 version. %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %check nosetests-%{python2_version} -v nosetests-%{python3_version} -v %files -n python2-%{srcname} %license LICENSE.md %doc README.md %{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info %{python2_sitelib}/%{srcname}.py* %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE.md %doc README.md %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{srcname}.py %{python3_sitelib}/__pycache__/%{srcname}.cpython-%{python3_version_nodots}*.py* %changelog * Thu Mar 07 2019 Troy Dawson - 1.1.3-2 - Rebuilt to change main python from 3.4 to 3.6 * Mon May 14 2018 Carl George - 1.1.3-1 - Latest upstream * Wed Mar 07 2018 Carl George - 1.1.2-1 - Latest upstream - Enable EPEL python3 subpackage * Fri Feb 09 2018 Fedora Release Engineering - 1.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 29 2016 Igor Gnatenko - 1.1.1-2 - Add EPEL7 conditionals * Wed Dec 28 2016 Igor Gnatenko - 1.1.1-1 - Update to 1.1.1 - Modernize spec * Mon Dec 19 2016 Miro HronĨok - 1.0.2-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 1.0.2-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Fri May 20 2016 Carl George - 1.0.2-1 - Latest upstream * Thu Feb 04 2016 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Dec 05 2015 Carl George - 1.0.1-2 - Remove coverage build dependency - Change python3 control macros to a bcond macro - Add bcond macro to optionally require explicit python2 names * Thu Nov 19 2015 Carl George - 1.0.1-1 - Latest upstream * Tue Nov 10 2015 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Tue Sep 01 2015 Carl George - 1.0.0-3 - Update to new packaging guidelines * Mon Jul 20 2015 Carl George - 1.0.0-2 - Remove separate py3 build directory - Update summary and description - Use a common license and documentation directories between PY2/3 packages * Thu Jul 16 2015 Carl George - 1.0.0-1 - Initial spec file