Cleanup spec file conditionals
This commit is contained in:
parent
6dd6fa9ac7
commit
5846ba7caf
@ -1,20 +1,12 @@
|
|||||||
%if 0%{?fedora}
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} < 6
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fedora} <= 16
|
|
||||||
%{!?python3_version: %global python3_version %(%{__python3} -c 'import sys ; sys.stdout.write("%s.%s" % sys.version_info[:2])')}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global upname Mako
|
%global upname Mako
|
||||||
|
|
||||||
Name: python-mako
|
Name: python-mako
|
||||||
Version: 1.0.6
|
Version: 1.0.6
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
# Mostly MIT, but _ast_util.py is Python licensed.
|
# Mostly MIT, but _ast_util.py is Python licensed.
|
||||||
@ -40,9 +32,7 @@ BuildRequires: python3-setuptools
|
|||||||
BuildRequires: python3-markupsafe
|
BuildRequires: python3-markupsafe
|
||||||
BuildRequires: python3-beaker
|
BuildRequires: python3-beaker
|
||||||
BuildRequires: python3-mock
|
BuildRequires: python3-mock
|
||||||
%if 0%{?fedora} > 14
|
|
||||||
BuildRequires: python3-nose
|
BuildRequires: python3-nose
|
||||||
%endif
|
|
||||||
%endif # if with_python3
|
%endif # if with_python3
|
||||||
|
|
||||||
%global _description\
|
%global _description\
|
||||||
@ -140,7 +130,7 @@ rm -rf doc/build
|
|||||||
%check
|
%check
|
||||||
python2 setup.py test
|
python2 setup.py test
|
||||||
|
|
||||||
%if 0%{?with_python3} && 0%{?fedora} > 14
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
python3 setup.py test
|
python3 setup.py test
|
||||||
popd
|
popd
|
||||||
@ -171,6 +161,9 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 27 2017 Troy Dawson <tdawson@redhat.com> - 1.0.6-6
|
||||||
|
- Cleanup spec file conditionals
|
||||||
|
|
||||||
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.6-5
|
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.6-5
|
||||||
- Python 2 binary package renamed to python2-mako
|
- Python 2 binary package renamed to python2-mako
|
||||||
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||||
|
Loading…
Reference in New Issue
Block a user