# Created by pyp2rpm-3.1.2
%global pypi_name pytest-spec
%global modname pytest_spec
%global desc Pytest plugin to display test execution output like a SPECIFICATION.\
Available features:\
- Format output to look like specification.\
- Group tests by classes and files\
- Failed, passed and skipped are marked and colored.\
- Remove test_ and underscores for every test.
Name: python-%{pypi_name}
Version: 1.1.0
Release: 5%{?dist}
Summary: Pytest plugin to display test execution output like a SPECIFICATION
License: GPLv2+
URL: https://github.com/pchomik/%{pypi_name}
Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
BuildArch: noarch
%description
%{desc}
%package -n python2-%{pypi_name}
Summary: %{summary}
BuildRequires: python2-setuptools
BuildRequires: python2-devel
BuildRequires: python2-pytest
BuildRequires: python2-mock >= 1.0.1
%{?python_provide:%python_provide python2-%{pypi_name}}
Requires: python2-mock >= 1.0.1
Requires: python2-setuptools
Requires: python2-pytest
%description -n python2-%{pypi_name}
%{desc}
%package -n python3-%{pypi_name}
Summary: %{summary}
BuildRequires: python3-setuptools
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-mock >= 1.0.1
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3-mock >= 1.0.1
Requires: python3-setuptools
Requires: python3-pytest
%description -n python3-%{pypi_name}
%{desc}
%prep
%autosetup -n %{pypi_name}-%{version}
cp -p %{SOURCE1} LICENSE.txt
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} -m pytest test/
%{__python3} -m pytest test/
%files -n python2-%{pypi_name}
%doc README.rst
%license LICENSE.txt
%{python2_sitelib}/%{modname}/
%{python2_sitelib}/%{modname}-%{version}-py%{python2_version}.egg-info
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE.txt
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}-py%{python3_version}.egg-info
%changelog
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.1.0-2
- Rebuild for Python 3.6
* Wed Dec 07 2016 Lumir Balhar <lbalhar@redhat.com> - 1.1.0-1
- New upstream release
* Wed Jul 20 2016 Lumir Balhar <lbalhar@redhat.com> - 1.0.1-1
- Initial package.