commit 15f19fc91e94b6da9ae832c3f5b4808ea87bb9d2 Author: compile_success <980965867@qq.com> Date: Thu Nov 28 11:47:53 2019 +0800 add diff --git a/bottle-0.12.13.tar.gz b/bottle-0.12.13.tar.gz new file mode 100644 index 0000000..66c0063 Binary files /dev/null and b/bottle-0.12.13.tar.gz differ diff --git a/python-bottle.spec b/python-bottle.spec new file mode 100644 index 0000000..d209c16 --- /dev/null +++ b/python-bottle.spec @@ -0,0 +1,64 @@ +Name: python-bottle +Version: 0.12.13 +Release: 7 +Summary: WSGI micro web-framework for Python. +License: MIT +URL: http://bottlepy.org +Source0: https://github.com/bottlepy/bottle/archive/%{version}/bottle-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools + +%description +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 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 +Summary: WSGI micro web-framework for Python. +%{?python_provide:%python_provide python%{python3_pkgversion}-bottle} + +%description -n python3-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. + +%prep +%autosetup -n bottle-%{version} +sed -i '/^#!/d' bottle.py + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%__python2 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 +%license LICENSE +%doc AUTHORS README.rst +%{python3_sitelib}/* + +%changelog +* Tue Nov 26 2019 zhujunhao - 0.12.13-7 +- Package init +