diff --git a/python-click.spec b/python-click.spec index d91cab9..e4b62a1 100644 --- a/python-click.spec +++ b/python-click.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 6.7 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Simple wrapper around optparse for powerful command line utilities License: BSD @@ -38,8 +38,6 @@ BuildRequires: python-setuptools %description -n python2-%{pypi_name} %{_description} -Python 2 version. - %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} @@ -49,7 +47,13 @@ BuildRequires: python%{python3_pkgversion}-pytest >= 2.8 %description -n python%{python3_pkgversion}-%{pypi_name} %{_description} -Python 3 version. +%package -n python%{python3_other_pkgversion}-%{pypi_name} +Summary: %{summary} +BuildRequires: python%{python3_other_pkgversion}-devel +BuildRequires: python%{python3_other_pkgversion}-setuptools +BuildRequires: python%{python3_other_pkgversion}-pytest >= 2.8 + +%description -n python%{python3_other_pkgversion}-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} -p1 @@ -57,10 +61,12 @@ Python 3 version. %build %py2_build %py3_build +%py3_other_build %install %py2_install %py3_install +%py3_other_install %check export PYTHONPATH=$(pwd) @@ -70,20 +76,30 @@ export LC_ALL=en_US.UTF-8 py.test-%{python2_version} tests --tb=long --verbose %endif py.test-%{python3_version} tests --tb=long --verbose +py.test-%{python3_other_version} tests --tb=long --verbose %files -n python2-%{pypi_name} %license LICENSE %doc README CHANGES -%{python2_sitelib}/%{pypi_name}-*.egg-info/ -%{python2_sitelib}/%{pypi_name}/ +%{python2_sitelib}/%{pypi_name} +%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info %files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE %doc README CHANGES -%{python3_sitelib}/%{pypi_name}-*.egg-info/ -%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%files -n python%{python3_other_pkgversion}-%{pypi_name} +%license LICENSE +%doc README CHANGES +%{python3_other_sitelib}/%{pypi_name} +%{python3_other_sitelib}/%{pypi_name}-%{version}-py%{python3_other_version}.egg-info %changelog +* Mon Oct 08 2018 Carl George - 6.7-7 +- Add python3_other subpackage + * Thu Oct 12 2017 Igor Gnatenko - 6.7-6 - Fixup EPEL packaging - Adopt to packaging guidelines