Blame python-pytest-shutil.spec

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