From a41ffb1f1e74429d984ce46874e8ccf89f4ce3de Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Mar 07 2019 20:33:10 +0000 Subject: Remove the Python 2 subpackage for pykickstart (#1686380) --- diff --git a/pykickstart.spec b/pykickstart.spec index 2dec4d9..b4a9095 100644 --- a/pykickstart.spec +++ b/pykickstart.spec @@ -1,9 +1,3 @@ -%if 0%{?rhel} > 7 -%bcond_with python2 -%else -%bcond_without python2 -%endif - # Disable tests by default because they fail to run inside mock builds # at the moment, but can run locally. To build and run tests, do: # rpmbuild -ba --with runtests pykickstart.spec @@ -11,7 +5,7 @@ Name: pykickstart Version: 3.20 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 and MIT Summary: Python utilities for manipulating kickstart files. Url: http://fedoraproject.org/wiki/pykickstart @@ -24,15 +18,6 @@ Source1: %{name}-%{version}.tar.gz.asc BuildArch: noarch BuildRequires: gettext -%if %{with python2} -BuildRequires: python2-coverage -BuildRequires: python2-devel -BuildRequires: python2-nose -BuildRequires: python2-ordered-set -BuildRequires: python2-setuptools -BuildRequires: python2-requests -%endif - BuildRequires: python3-coverage BuildRequires: python3-devel BuildRequires: python3-nose @@ -45,26 +30,8 @@ BuildRequires: python3-sphinx Requires: python3-kickstart = %{version}-%{release} %description -Python utilities for manipulating kickstart files. The Python 2 and 3 -libraries can be found in the packages python-kickstart and python3-kickstart -respectively. - -%if %{with python2} -# Python 2 library -%package -n python2-kickstart -%{?python_provide:%python_provide python2-kickstart} -%{?python_provide:%python_provide python2-pykickstart} -Summary: Python 2 library for manipulating kickstart files. -Requires: python2-six -Requires: python2-requests -Requires: python2-ordered-set - -%description -n python2-kickstart -Python 2 library for manipulating kickstart files. The binaries are found in -the pykickstart package. -%endif +Python utilities for manipulating kickstart files. -# Python 3 library %package -n python3-kickstart Summary: Python 3 library for manipulating kickstart files. Requires: python3-six @@ -78,36 +45,16 @@ the pykickstart package. %prep %setup -q -%if %{with python2} -rm -rf %{py3dir} -mkdir %{py3dir} -cp -a . %{py3dir} -%endif - %build -%if %{with python2} -make PYTHON=%{__python2} -make -C %{py3dir} PYTHON=%{__python3} -%else make PYTHON=%{__python3} -%endif %install -%if %{with python2} -make PYTHON=%{__python2} DESTDIR=%{buildroot} install -make -C %{py3dir} PYTHON=%{__python3} DESTDIR=%{buildroot} install -%else make PYTHON=%{__python3} DESTDIR=%{buildroot} install -%endif %check %if %{with runtests} -%if %{with python2} -make -C %{py3dir} PYTHON=%{__python3} test -%else make PYTHON=%{__python3} test %endif -%endif %files %license COPYING @@ -122,15 +69,6 @@ make PYTHON=%{__python3} test %{_mandir}/man1/ksvalidator.1.gz %{_mandir}/man1/ksverdiff.1.gz -%if %{with python2} -%files -n python2-kickstart -%doc docs/2to3 -%doc docs/programmers-guide -%doc docs/kickstart-docs.txt -%{python2_sitelib}/pykickstart*.egg-info -%{python2_sitelib}/pykickstart -%endif - %files -n python3-kickstart %doc docs/2to3 %doc docs/programmers-guide @@ -139,6 +77,9 @@ make PYTHON=%{__python3} test %{python3_sitelib}/pykickstart*.egg-info %changelog +* Thu 07-Mar-2019 David Cantrell - 3.20-3 +- Remove the Python 2 subpackage for pykickstart (#1686380) + * Sat Feb 02 2019 Fedora Release Engineering - 3.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild