[packages/python-jinja2] - updated to 2.10.3

qboosh qboosh at pld-linux.org
Sun Dec 29 09:05:19 CET 2019


commit 1cb8c72c8030a19c9e2f2e7def5579feb1bd8132
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 29 09:05:29 2019 +0100

    - updated to 2.10.3

 python-jinja2.spec | 40 ++++++++++++++++++++++++++++------------
 1 file changed, 28 insertions(+), 12 deletions(-)
---
diff --git a/python-jinja2.spec b/python-jinja2.spec
index 70a52a2..900e664 100644
--- a/python-jinja2.spec
+++ b/python-jinja2.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without	doc	# API documentation
+%bcond_without	tests	# unit tests
 %bcond_without	python2	# Python 2.x modules
 %bcond_without	python3	# Python 3.x modules
 
@@ -8,30 +9,37 @@
 Summary:	Jinja2 Template engine for Python 2.x
 Summary(pl.UTF-8):	Silnik szablonów Jinja2 dla Pythona 2.x
 Name:		python-%{module}
-Version:	2.10
-Release:	3
+Version:	2.10.3
+Release:	1
 License:	BSD
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/Jinja2
 Source0:	https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
-# Source0-md5:	61ef1117f945486472850819b8d1eb3d
+# Source0-md5:	7883559bc5cc3e2781d94b4be61cfdcd
 URL:		http://jinja.pocoo.org/
 BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	rpm-pythonprov
 %if %{with python2}
-BuildRequires:	python-devel >= 1:2.6
+BuildRequires:	python-devel >= 1:2.7
 BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-markupsafe >= 0.23
+BuildRequires:	python-pytest
+%endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-devel >= 1:3.3
-BuildRequires:	python3-modules >= 1:3.3
+BuildRequires:	python3-devel >= 1:3.5
+BuildRequires:	python3-modules >= 1:3.5
 BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-markupsafe >= 0.23
+BuildRequires:	python3-pytest
+%endif
 %endif
 %if %{with doc}
 BuildRequires:	sphinx-pdg
 %endif
-Requires:	python-markupsafe
-Requires:	python-modules >= 1:2.6
+Requires:	python-modules >= 1:2.7
 Obsoletes:	python-Jinja2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -51,8 +59,7 @@ ograniczonym środowisku.
 Summary:	Template engine Jinja2 for Python 3.x
 Summary(pl.UTF-8):	Silnik szablonów Jinja2 dla Pythona 3.x
 Group:		Development/Languages/Python
-Requires:	python3-markupsafe
-Requires:	python3-modules >= 1:3.3
+Requires:	python3-modules >= 1:3.5
 
 %description -n python3-%{module}
 A small but fast and easy to use stand-alone template engine written
@@ -82,9 +89,18 @@ Dokumentacja API silnika szablonów Jinja2.
 %build
 %if %{with python2}
 %py_build
+
+%if %{with tests}
+%{__python} -m pytest tests
+%endif
 %endif
+
 %if %{with python3}
 %py3_build
+
+%if %{with tests}
+%{__python3} -m pytest tests
+%endif
 %endif
 
 %if %{with doc}
@@ -112,7 +128,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS CHANGES.rst LICENSE README.rst
+%doc CHANGES.rst LICENSE.rst README.rst
 %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/Jinja2-%{version}-py*.egg-info
 %endif
@@ -120,7 +136,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc AUTHORS CHANGES.rst LICENSE README.rst
+%doc CHANGES.rst LICENSE.rst README.rst
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/Jinja2-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-jinja2.git/commitdiff/1cb8c72c8030a19c9e2f2e7def5579feb1bd8132



More information about the pld-cvs-commit mailing list