diff --git a/python-gearbox.spec b/python-gearbox.spec index de2f91d..92c5725 100644 --- a/python-gearbox.spec +++ b/python-gearbox.spec @@ -1,12 +1,8 @@ -%if 0%{?fedora} -%global with_python3 1 -%endif - %global modname gearbox Name: python-gearbox Version: 0.1.1 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Command line toolkit born as a PasteScript replacement for TurboGears2 License: MIT @@ -15,13 +11,8 @@ Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modnam BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-setuptools - -%if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools -%endif %global _description\ gearbox is a paster command replacement for TurboGears2. It has been\ @@ -32,17 +23,6 @@ TurboGears projects.\ %description %_description -%package -n python2-gearbox -Summary: %summary -Requires: python2-prettytable -Requires: python2-cliff -Requires: python2-tempita -Requires: python2-paste-deploy -%{?python_provide:%python_provide python2-gearbox} - -%description -n python2-gearbox %_description - -%if 0%{?with_python3} %package -n python3-gearbox Summary: Command line toolkit born as a PasteScript replacement for TurboGears2 @@ -56,55 +36,29 @@ gearbox is a paster command replacement for TurboGears2. It has been created during the process of providing Python3 support to the TurboGears2 web framework, while still being backward compatible with the existing TurboGears projects. -%endif - %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif - %build -%{__python2} setup.py build -%if 0%{?with_python3} -pushd %{py3dir} %{__python3} setup.py build -popd -%endif - %install -%if 0%{?with_python3} -pushd %{py3dir} %{__python3} setup.py install -O1 --skip-build --root=%{buildroot} -# Now /usr/bin/gearbox is Python 3, so we move it away -mv %{buildroot}%{_bindir}/gearbox %{buildroot}%{_bindir}/gearbox-3 -popd -%endif -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} - -%files -n python2-gearbox -%doc README.rst -%{_bindir}/gearbox -%{python2_sitelib}/%{modname}/ -%{python2_sitelib}/%{modname}-%{version}-* - -%if 0%{?with_python3} %files -n python3-gearbox %doc README.rst -%{_bindir}/gearbox-3 +%{_bindir}/gearbox %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-* -%endif %changelog +* Sun Feb 03 2019 Kevin Fenzi - 0.1.1-14 +- Drop python2 subpackages. + * Sat Feb 02 2019 Fedora Release Engineering - 0.1.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild