drop python2 subpackage
This commit is contained in:
parent
e3f467f9f4
commit
201444ad81
@ -1,6 +1,6 @@
|
|||||||
Name: python-pecan
|
Name: python-pecan
|
||||||
Version: 1.3.2
|
Version: 1.3.2
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: Lean WSGI object dispatching web framework
|
Summary: Lean WSGI object dispatching web framework
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -11,25 +11,10 @@ BuildArch: noarch
|
|||||||
%description
|
%description
|
||||||
A WSGI object-dispatching web framework.
|
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
|
%package -n python3-pecan
|
||||||
Summary: Lean WSGI object dispatching web framework
|
Summary: Lean WSGI object dispatching web framework
|
||||||
%{?python_provide:%python_provide python3-pecan}
|
%{?python_provide:%python_provide python3-pecan}
|
||||||
|
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
|
|
||||||
Requires: python3-webob python3-simplegeneric python3-mako python3-singledispatch
|
Requires: python3-webob python3-simplegeneric python3-mako python3-singledispatch
|
||||||
Requires: python3-webtest python3-setuptools python3-logutils python3-six
|
Requires: python3-webtest python3-setuptools python3-logutils python3-six
|
||||||
|
|
||||||
@ -41,8 +26,6 @@ A WSGI object-dispatching web framework.
|
|||||||
rm -rf pecan.egg-info
|
rm -rf pecan.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python2} setup.py build
|
|
||||||
|
|
||||||
%{__python3} setup.py build
|
%{__python3} setup.py build
|
||||||
|
|
||||||
%install
|
%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}
|
mv %{buildroot}%{_bindir}/gunicorn_pecan %{buildroot}%{_bindir}/gunicorn_pecan-%{python3_version}
|
||||||
ln -s gunicorn_pecan-%{python3_version} %{buildroot}%{_bindir}/gunicorn_pecan-3
|
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
|
%files -n python3-pecan
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -73,5 +42,8 @@ ln -s gunicorn_pecan-%{python2_version} %{buildroot}%{_bindir}/gunicorn_pecan
|
|||||||
%{python3_sitelib}/{pecan,pecan-%{version}-py?.?.egg-info}
|
%{python3_sitelib}/{pecan,pecan-%{version}-py?.?.egg-info}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 1.3.2-6
|
||||||
|
- drop python2 subpackage
|
||||||
|
|
||||||
* Mon Mar 4 2020 wutao <wutao61@huawei.com> - 1.3.2-5
|
* Mon Mar 4 2020 wutao <wutao61@huawei.com> - 1.3.2-5
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user