Cleanup spec file conditionals

epel9
Troy Dawson 7 years ago
parent 7d78a2e7f5
commit 34e76b043e

@ -3,7 +3,7 @@
Name: python-%{modulename} Name: python-%{modulename}
Version: 2.9 Version: 2.9
Release: 5%{?dist} Release: 6%{?dist}
Summary: Invoke py.test as distutils command with dependency resolution Summary: Invoke py.test as distutils command with dependency resolution
License: MIT License: MIT
@ -19,7 +19,7 @@ Setup scripts can use pytest-runner to add setup.py test support for pytest runn
%description %{_description} %description %{_description}
# Python 2 pytest is too old on EL7 # Python 2 pytest is too old on EL7
%if 0%{?fedora} %if 0%{?fedora} || 0%{?rhel} > 7
%package -n python2-%{modulename} %package -n python2-%{modulename}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python2-%{modulename}} %{?python_provide:%python_provide python2-%{modulename}}
@ -52,24 +52,24 @@ Python %{python3_version} version.
%build %build
# Python 2 pytest is too old on EL7 # Python 2 pytest is too old on EL7
%if 0%{?fedora} %if 0%{?fedora} || 0%{?rhel} > 7
%py2_build %py2_build
%endif %endif
%py3_build %py3_build
%install %install
%if 0%{?fedora} %if 0%{?fedora} || 0%{?rhel} > 7
%py2_install %py2_install
%endif %endif
%py3_install %py3_install
%check %check
%if 0%{?fedora} %if 0%{?fedora} || 0%{?rhel} > 7
%{__python2} setup.py test %{__python2} setup.py test
%endif %endif
%{__python3} setup.py test %{__python3} setup.py test
%if 0%{?fedora} %if 0%{?fedora} || 0%{?rhel} > 7
%files -n python2-%{modulename} %files -n python2-%{modulename}
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
@ -85,6 +85,9 @@ Python %{python3_version} version.
%{python3_sitelib}/__pycache__/ptr.* %{python3_sitelib}/__pycache__/ptr.*
%changelog %changelog
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 2.9-6
- Cleanup spec file conditionals
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-5 * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

Loading…
Cancel
Save