From f46c5c0d86561e47e11f95c82d6fa8b9ff252eba Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Oct 01 2018 13:46:29 +0000 Subject: Drop Python 2 subpackage --- diff --git a/python-ModulemdTranslationHelpers.spec b/python-ModulemdTranslationHelpers.spec index c88627d..5722386 100644 --- a/python-ModulemdTranslationHelpers.spec +++ b/python-ModulemdTranslationHelpers.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tools for working with translations of modulemd License: MIT @@ -34,22 +34,6 @@ Provides a library and tools for dealing with translatable strings in modulemd documents. -%package -n python2-%{pypi_name} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{pypi_name}} - - -Requires: koji -Requires: libmodulemd -Requires: python2dist(pygobject) - -Obsoletes: python2-mmdzanata < 0.7-3 - -%description -n python2-%{pypi_name} -Provides a library and tools for dealing with translatable strings in modulemd -documents. - - %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} @@ -60,6 +44,7 @@ Requires: libmodulemd Requires: python3dist(pygobject) Obsoletes: python3-mmdzanata < 0.7-3 +Obsoletes: python2-mmdzanata < 0.7-3 %description -n python3-%{pypi_name} Provides a library and tools for dealing with translatable strings in modulemd @@ -72,24 +57,12 @@ documents. rm -rf %{pypi_name}.egg-info %build -%py2_build - %py3_build %install -# Must do the default python version install last because -# the scripts in /usr/bin are overwritten with every setup.py install. -%py2_install -rm -rf %{buildroot}%{_bindir}/* - %py3_install %{__python3} setup.py --command-packages=click_man.commands man_pages --target=%{buildroot}/%{_mandir}/man1 -%files -n python2-%{pypi_name} -%doc README.md -%license LICENSE -%{python2_sitelib}/%{pypi_name} -%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %doc README.md @@ -100,6 +73,9 @@ rm -rf %{buildroot}%{_bindir}/* %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Mon Oct 01 2018 Stephen Gallagher - 0.5-3 +- Drop Python 2 subpackage + * Wed Sep 26 2018 Stephen Gallagher - 0.5-2 - Fixes to the specfile