From 8fd9a10f9a30b072d5a0e4b4ae93aa157cde7b46 Mon Sep 17 00:00:00 2001 From: lingsheng Date: Mon, 10 Aug 2020 15:41:33 +0800 Subject: [PATCH] Remove python2-linecache2 subpackage --- python-linecache2.spec | 60 +++++++++--------------------------------- 1 file changed, 12 insertions(+), 48 deletions(-) diff --git a/python-linecache2.spec b/python-linecache2.spec index 979972f..f67dd01 100644 --- a/python-linecache2.spec +++ b/python-linecache2.spec @@ -6,80 +6,44 @@ linecache to older supported Python versions. Name: python-linecache2 Version: 1.0.0 -Release: 18 +Release: 19 Summary: A backport of linecache to older supported Python versions License: Python URL: https://github.com/testing-cabal/linecache2 Source0: http://pypi.python.org/packages/source/l/linecache2/linecache2-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel python2-pbr python3-devel python3-pbr -BuildRequires: python2-fixtures python2-unittest2 python3-fixtures python3-unittest2 +BuildRequires: python3-devel python3-pbr python3-fixtures python3-unittest2 %description %{package_description} -%package -n python2-linecache2 -Summary: A backport of linecache to older supported Python versions -%{?python_provide:%python_provide python2-linecache2} -%description -n python2-linecache2 -%{package_description} - %package -n python3-linecache2 Summary: A backport of linecache to older supported Python versions %description -n python3-linecache2 %{package_description} - %prep -%autosetup -c -mv linecache2-%{version} python2 -mv python2/linecache2/tests . -cp -a python2 python3 - +%autosetup -n linecache2-%{version} +mv linecache2/tests . %build -cd python2 -%{__python2} setup.py build -cd - - -cd python3 -%{__python3} setup.py build -cd - - +%py3_build %install -cd python3 -%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -cd - +%py3_install -cd python2 -%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -cd - - -%check -cd python2 -mv ../tests linecache2/ -%{__python2} -m unittest2 -v -mv linecache2/tests ../ -cd - - -cd python3 -mv ../tests linecache2/ +mv tests linecache2/ %{__python3} -m unittest2 -v -mv linecache2/tests ../ - - -%files -n python2-linecache2 -%doc python2/AUTHORS python2/ChangeLog python2/README.rst -%{python2_sitelib}/* +mv linecache2/tests . %files -n python3-linecache2 -%doc python3/AUTHORS python3/ChangeLog python3/README.rst +%doc AUTHORS ChangeLog README.rst %{python3_sitelib}/* - %changelog +* Mon Aug 10 2020 lingsheng - 1.0.0-19 +- Remove python2-linecache2 subpackage + * Tue Nov 26 2019 lihao - 1.0.0-18 - Package Init -