commit f3362331a0934b891a8c1582e0d5caa283eb97e5
Author: Jakub Bogusz <[email protected]>
Date:   Fri Jul 20 15:48:50 2018 +0200

    - updated to 0.12.13

 python-bottle.spec | 56 ++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 37 insertions(+), 19 deletions(-)
---
diff --git a/python-bottle.spec b/python-bottle.spec
index 6b2f7cd..6fe1937 100644
--- a/python-bottle.spec
+++ b/python-bottle.spec
@@ -1,31 +1,35 @@
+# TODO: fix tests
 #
 # 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]
 #
 %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.9
-Release:       5
+Version:       0.12.13
+Release:       1
 License:       MIT
 Group:         Development/Languages/Python
-Source0:       
http://pypi.python.org/packages/source/b/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5: f5850258a86224a791171e8ecbb66d99
-URL:           http://bottlepy.org
+#Source0Download: https://pypi.org/simple/bottle/
+Source0:       
https://files.pythonhosted.org/packages/source/b/bottle/%{module}-%{version}.tar.gz
+# Source0-md5: d2fe1b48c1d49217e78bf326b1cad437
+URL:           http://bottlepy.org/
 %if %{with python2}
 BuildRequires: python-modules >= 1:2.5
+BuildRequires: python-setuptools
 %endif
 %if %{with python3}
-BuildRequires: python3-2to3
-BuildRequires: python3-devel
-BuildRequires: python3-modules
+#BuildRequires:        python3-2to3 >= 1:3.2
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
 %endif
 BuildRequires: rpm-pythonprov
-# if py_postclean is used
-BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: rpmbuild(macros) >= 1.714
 Requires:      python-modules >= 1:2.5
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -72,10 +76,18 @@ standardowej biblioteki Pythona.
 %build
 %if %{with python2}
 %py_build
+
+%if %{with tests}
+%{__python} -m unittest discover -s test
+%endif
 %endif
 
 %if %{with python3}
 %py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s test
+%endif
 %endif
 
 %install
@@ -84,13 +96,16 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %py_install
 
-%py_ocomp $RPM_BUILD_ROOT%%{py_sitescriptdir}
-%py_comp $RPM_BUILD_ROOT%%{py_sitescriptdir}
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/{bottle.py,bottle-2}
+
 %py_postclean
 %endif
 
 %if %{with python3}
 %py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/{bottle.py,bottle-3}
+ln -s bootle-3 $RPM_BUILD_ROOT%{_bindir}/bottle
 %endif
 
 %clean
@@ -99,16 +114,19 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%{py_sitescriptdir}/*.py[co]
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/%{module}-*.egg-info
-%endif
+%doc README.rst
+%attr(755,root,root) %{_bindir}/bottle-2
+%{py_sitescriptdir}/bottle.py[co]
+%{py_sitescriptdir}/bottle-%{version}-*.egg-info
 %endif
 
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%{py3_sitescriptdir}/*.py
-%{py3_sitescriptdir}/__pycache__
-%{py3_sitescriptdir}/%{module}-*.egg-info
+%doc README.rst
+%attr(755,root,root) %{_bindir}/bottle
+%attr(755,root,root) %{_bindir}/bottle-3
+%{py3_sitescriptdir}/bottle.py
+%{py3_sitescriptdir}/__pycache__/bottle.cpython-*.py[co]
+%{py3_sitescriptdir}/bottle-%{version}-*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-bottle.git/commitdiff/f3362331a0934b891a8c1582e0d5caa283eb97e5

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to