]> git.pld-linux.org Git - packages/python-jinja2.git/commitdiff
- updated to 2.3.1 auto/th/python-jinja2-2_3_1-1
authorArtur Frysiak <artur@frysiak.net>
Sun, 28 Feb 2010 15:57:58 +0000 (15:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- build and package html docs

Changed files:
    python-jinja2.spec -> 1.4

python-jinja2.spec

index 752606e11719ce113e3ed50b5659125c7dad7cd9..944dc9a8cbb61ca5f3cc50407bf00fe1238453e1 100644 (file)
@@ -1,16 +1,20 @@
-# TODO: package /usr/docs/*
+%bcond_without doc
 %define module jinja2
 Summary:       Template engine
 Summary(pl.UTF-8):     Silnik szablonów
 Name:          python-%{module}
-Version:       2.2.1
+Version:       2.3.1
 Release:       1
 License:       BSD
 Group:         Development/Languages/Python
 Source0:       http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
-# Source0-md5: fea849d68891218eb0b21c170f1c32d5
+# Source0-md5: 391c7dd06c62dfe7e30ebaad7af0a401
 URL:           http://pypi.python.org/pypi/Jinja2
 BuildRequires: python-devel
+%if %{with doc}
+BuildRequires: sphinx-pdg
+%endif
+%bcond_without doc
 %pyrequires_eq python-modules
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -31,6 +35,11 @@ ograniczonym środowisku.
 
 %build
 %{__python} setup.py build
+%if %{with doc}
+cd docs
+make html
+rm -rf _build/html/_sources
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -46,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc PKG-INFO TODO AUTHORS
+%doc PKG-INFO AUTHORS CHANGES
+%if %{with doc}
+%doc docs/_build/html
+%endif
 %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/*Jinja*.egg*
This page took 0.063567 seconds and 4 git commands to generate.