# Conditional build:
%bcond_without python2 # build python 2 module
%bcond_without python3 # build python 3 module
-%bcond_with tests # unit/functional tests [a few fail as of 0.12.13]
+%bcond_with tests # unit/functional tests [one fails on py3 as of 0.12.18, probably network is used]
#
%define module bottle
#
Summary: Fast and simple WSGI-framework for small web-applications
Summary(pl.UTF-8): Szybki i prosty szkielet WSGI dla maĆych aplikacji sieciowych
Name: python-%{module}
-Version: 0.12.13
-Release: 2
+Version: 0.12.18
+Release: 1
License: MIT
Group: Development/Languages/Python
#Source0Download: https://pypi.org/simple/bottle/
Source0: https://files.pythonhosted.org/packages/source/b/bottle/%{module}-%{version}.tar.gz
-# Source0-md5: d2fe1b48c1d49217e78bf326b1cad437
+# Source0-md5: a00b7e9a1ab3be7c19c1235fea2ccb40
URL: http://bottlepy.org/
%if %{with python2}
BuildRequires: python-modules >= 1:2.5
BuildRequires: python-setuptools
%endif
%if %{with python3}
-#BuildRequires: python3-2to3 >= 1:3.2
BuildRequires: python3-devel >= 1:3.2
BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-setuptools
%py_build
%if %{with tests}
-%{__python} -m unittest discover -s test
+%{__python} test/testall.py
%endif
%endif
%py3_build
%if %{with tests}
-%{__python3} -m unittest discover -s test
+%{__python3} test/testall.py
%endif
%endif
%doc README.rst
%attr(755,root,root) %{_bindir}/bottle-2
%{py_sitescriptdir}/bottle.py[co]
-%{py_sitescriptdir}/bottle-%{version}-*.egg-info
+%{py_sitescriptdir}/bottle-%{version}-py*.egg-info
%endif
%if %{with python3}
%attr(755,root,root) %{_bindir}/bottle-3
%{py3_sitescriptdir}/bottle.py
%{py3_sitescriptdir}/__pycache__/bottle.cpython-*.py[co]
-%{py3_sitescriptdir}/bottle-%{version}-*.egg-info
+%{py3_sitescriptdir}/bottle-%{version}-py*.egg-info
%endif