Blame python-pytest-shutil.spec

479a4bb
%global srcname pytest-shutil
479a4bb
%global sum A goodie-bag of unix shell and environment tools for py.test
479a4bb
479a4bb
Name:           python-%{srcname}
479a4bb
Version:        1.2.6
d78e8e7
Release:        2%{?dist}
479a4bb
Summary:        %{sum}
479a4bb
479a4bb
License:        MIT
479a4bb
URL:            https://pypi.python.org/pypi/%{srcname}
479a4bb
Source0:        https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
479a4bb
479a4bb
# reported upstream in https://github.com/manahl/pytest-plugins/issues/67
479a4bb
# use /etc instead of /bin for chdir test as that links to /usr/bin on fedora
479a4bb
Patch1:         pytest-shutil-use-etc-dir.patch
479a4bb
479a4bb
BuildArch:      noarch
479a4bb
BuildRequires:  python2-devel python3-devel
479a4bb
BuildRequires:  python2-pytest python3-pytest
479a4bb
BuildRequires:  python2-six python3-six
d78e8e7
BuildRequires:  python2-setuptools-git python3-setuptools_git
479a4bb
BuildRequires:  python2-mock python3-mock
479a4bb
BuildRequires:  python2-path python3-path
d78e8e7
BuildRequires:  python2-contextlib2 python3-contextlib2
479a4bb
BuildRequires:  python2-execnet python3-execnet
479a4bb
479a4bb
%description
479a4bb
This library is a goodie-bag of Unix shell and 
479a4bb
environment management tools for automated tests.
479a4bb
479a4bb
%package -n python2-%{srcname}
479a4bb
Summary:        %{sum}
479a4bb
%{?python_provide:%python_provide python2-%{srcname}}
479a4bb
Requires:  python2-pytest
479a4bb
479a4bb
%description -n python2-%{srcname}
479a4bb
This library is a goodie-bag of Unix shell and 
479a4bb
environment management tools for automated tests.
479a4bb
479a4bb
%package -n python3-%{srcname}
479a4bb
Summary:        %{sum}
479a4bb
%{?python_provide:%python_provide python3-%{srcname}}
479a4bb
Requires: python3-pytest
479a4bb
479a4bb
%description -n python3-%{srcname}
479a4bb
This library is a goodie-bag of Unix shell and 
479a4bb
environment management tools for automated tests.
479a4bb
479a4bb
%prep
479a4bb
%autosetup -n %{srcname}-%{version} -p1
479a4bb
479a4bb
%build
479a4bb
%py2_build
479a4bb
%py3_build
479a4bb
479a4bb
%install
479a4bb
%py2_install
479a4bb
%py3_install
479a4bb
479a4bb
%check
479a4bb
%{__python2} setup.py test
479a4bb
%{__python3} setup.py test
479a4bb
479a4bb
%files -n python2-%{srcname}
479a4bb
%doc README.md CHANGES.md
479a4bb
%{python2_sitelib}/*
479a4bb
479a4bb
%files -n python3-%{srcname}
479a4bb
%doc README.md CHANGES.md
479a4bb
%{python3_sitelib}/*
479a4bb
479a4bb
%changelog
d78e8e7
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.6-2
d78e8e7
- Update Python 2 dependency declarations to new packaging standards
d78e8e7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
d78e8e7
479a4bb
* Thu Jul 27 2017 Kevin Fenzi <kevin@scrye.com> - 1.2.11-2
479a4bb
- Add Requires for pytest
479a4bb
479a4bb
* Wed Jul 26 2017 Kevin Fenzi <kevin@scrye.com> - 1.2.11-1
479a4bb
- Initial version.