Modify url and remove subpackage python2-bottle
This commit is contained in:
parent
2182ae0e99
commit
c3060b5e8f
@ -1,27 +1,18 @@
|
|||||||
Name: python-bottle
|
Name: python-bottle
|
||||||
Version: 0.12.13
|
Version: 0.12.13
|
||||||
Release: 7
|
Release: 8
|
||||||
Summary: WSGI micro web-framework for Python.
|
Summary: WSGI micro web-framework for Python.
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://bottlepy.org
|
URL: https://github.com/bottlepy/bottle
|
||||||
Source0: https://github.com/bottlepy/bottle/archive/%{version}/bottle-%{version}.tar.gz
|
Source0: https://github.com/bottlepy/bottle/archive/%{version}/bottle-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Bottle is a fast, simple and lightweight WSGI micro web-framework for Python.
|
Bottle is a fast, simple and lightweight WSGI micro web-framework for Python.
|
||||||
It is distributed as a single file module and has no dependencies other than
|
It is distributed as a single file module and has no dependencies other than
|
||||||
the Python Standard Library.
|
the Python Standard Library.
|
||||||
|
|
||||||
%package -n python2-bottle
|
|
||||||
Summary: WSGI micro web-framework for Python.
|
|
||||||
%{?python_provide:%python_provide python2-%bottle}
|
|
||||||
|
|
||||||
%description -n python2-bottle
|
|
||||||
Bottle is a fast, simple and lightweight WSGI micro web-framework for Python.
|
|
||||||
It is distributed as a single file module and has no dependencies other than
|
|
||||||
the Python Standard Library.
|
|
||||||
|
|
||||||
%package -n python3-bottle
|
%package -n python3-bottle
|
||||||
Summary: WSGI micro web-framework for Python.
|
Summary: WSGI micro web-framework for Python.
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-bottle}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-bottle}
|
||||||
@ -36,29 +27,24 @@ the Python Standard Library.
|
|||||||
sed -i '/^#!/d' bottle.py
|
sed -i '/^#!/d' bottle.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%__python2 test/testall.py verbose
|
|
||||||
%__python3 test/testall.py verbose || :
|
%__python3 test/testall.py verbose || :
|
||||||
|
|
||||||
%files -n python2-bottle
|
|
||||||
%license LICENSE
|
|
||||||
%doc AUTHORS README.rst
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
%exclude %{_bindir}/bottle.py
|
|
||||||
|
|
||||||
%files -n python3-bottle
|
%files -n python3-bottle
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS README.rst
|
%doc AUTHORS README.rst
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
%exclude %{_bindir}/bottle.py
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 0.12.13-8
|
||||||
|
- Modify url and remove subpackage python2-bottle
|
||||||
|
|
||||||
* Tue Nov 26 2019 zhujunhao <zhujunhao5@huawei.com> - 0.12.13-7
|
* Tue Nov 26 2019 zhujunhao <zhujunhao5@huawei.com> - 0.12.13-7
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user