From 201444ad81b4bc54e24cda0ec4fdeab9b6149a52 Mon Sep 17 00:00:00 2001 From: wangxiao65 <287608437@qq.com> Date: Thu, 29 Oct 2020 11:50:25 +0800 Subject: [PATCH] drop python2 subpackage --- python-pecan.spec | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/python-pecan.spec b/python-pecan.spec index 4daa9f5..3126034 100644 --- a/python-pecan.spec +++ b/python-pecan.spec @@ -1,6 +1,6 @@ Name: python-pecan Version: 1.3.2 -Release: 5 +Release: 6 Summary: Lean WSGI object dispatching web framework License: BSD @@ -11,25 +11,10 @@ BuildArch: noarch %description A WSGI object-dispatching web framework. -%package -n python2-pecan -Summary: Lean WSGI object dispatching web framework -%{?python_provide:%python_provide python2-pecan} -Provides: python-pecan = %{version}-%{release} -Obsoletes: python-pecan < 1.0.2-2 - -BuildRequires: python2-devel python2-setuptools - -Requires: python2-webob python2-simplegeneric python2-mako python2-singledispatch -Requires: python2-webtest python2-setuptools python2-logutils python2-six - -%description -n python2-pecan -A WSGI object-dispatching web framework. %package -n python3-pecan Summary: Lean WSGI object dispatching web framework %{?python_provide:%python_provide python3-pecan} - BuildRequires: python3-devel python3-setuptools - Requires: python3-webob python3-simplegeneric python3-mako python3-singledispatch Requires: python3-webtest python3-setuptools python3-logutils python3-six @@ -41,8 +26,6 @@ A WSGI object-dispatching web framework. rm -rf pecan.egg-info %build -%{__python2} setup.py build - %{__python3} setup.py build %install @@ -52,20 +35,6 @@ ln -s pecan-%{python3_version} %{buildroot}%{_bindir}/pecan-3 mv %{buildroot}%{_bindir}/gunicorn_pecan %{buildroot}%{_bindir}/gunicorn_pecan-%{python3_version} ln -s gunicorn_pecan-%{python3_version} %{buildroot}%{_bindir}/gunicorn_pecan-3 -%{__python2} setup.py install --skip-build --root %{buildroot} -mv %{buildroot}%{_bindir}/pecan %{buildroot}%{_bindir}/pecan-%{python2_version} -ln -s pecan-%{python2_version} %{buildroot}%{_bindir}/pecan-2 -ln -s pecan-%{python2_version} %{buildroot}%{_bindir}/pecan -mv %{buildroot}%{_bindir}/gunicorn_pecan %{buildroot}%{_bindir}/gunicorn_pecan-%{python2_version} -ln -s gunicorn_pecan-%{python2_version} %{buildroot}%{_bindir}/gunicorn_pecan-2 -ln -s gunicorn_pecan-%{python2_version} %{buildroot}%{_bindir}/gunicorn_pecan - -%files -n python2-pecan -%doc README.rst -%license LICENSE -%{_bindir}/{pecan,gunicorn_pecan,pecan-2*,gunicorn_pecan-2*} -%{python2_sitelib}/{pecan,pecan-%{version}-py?.?.egg-info} - %files -n python3-pecan %doc README.rst %license LICENSE @@ -73,5 +42,8 @@ ln -s gunicorn_pecan-%{python2_version} %{buildroot}%{_bindir}/gunicorn_pecan %{python3_sitelib}/{pecan,pecan-%{version}-py?.?.egg-info} %changelog +* Wed Oct 21 2020 wangxiao - 1.3.2-6 +- drop python2 subpackage + * Mon Mar 4 2020 wutao - 1.3.2-5 - Package init