packages: python-jinja2/python-jinja2.spec - updated to 2.5.5 - added pytho...
wiget
wiget at pld-linux.org
Fri Nov 12 19:15:47 CET 2010
Author: wiget Date: Fri Nov 12 18:15:47 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- updated to 2.5.5
- added python3 subpackage (based on python3-jinja2.spec)
- added apidoc subpackage
---- Files affected:
packages/python-jinja2:
python-jinja2.spec (1.11 -> 1.12)
---- Diffs:
================================================================
Index: packages/python-jinja2/python-jinja2.spec
diff -u packages/python-jinja2/python-jinja2.spec:1.11 packages/python-jinja2/python-jinja2.spec:1.12
--- packages/python-jinja2/python-jinja2.spec:1.11 Fri Jul 9 17:30:09 2010
+++ packages/python-jinja2/python-jinja2.spec Fri Nov 12 19:15:42 2010
@@ -1,23 +1,32 @@
# $Revision$, $Date$
%bcond_without doc
+%bcond_without python2
+%bcond_without python3
%define module jinja2
Summary: Template engine
Summary(pl.UTF-8): Silnik szablonów
Name: python-%{module}
-Version: 2.3.1
-Release: 6
+Version: 2.5.5
+Release: 1
License: BSD
Group: Development/Languages/Python
Source0: http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
-# Source0-md5: 391c7dd06c62dfe7e30ebaad7af0a401
-URL: http://pypi.python.org/pypi/Jinja2
+# Source0-md5: 83b20c1eeb31f49d8e6392efae91b7d5
+URL: http://jinja.pocoo.org/
+%if %{with python2}
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: rpm-pythonprov
+%pyrequires_eq python-modules
+%endif
+%if %{with python3}
+BuildRequires: python3-devel
+BuildRequires: python3-distribute
+%pyrequires_eq python3-modules
+%endif
%if %{with doc}
BuildRequires: sphinx-pdg
%endif
-%pyrequires_eq python-modules
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -25,18 +34,46 @@
in pure python. Provides a Django inspired non-XML syntax but supports
inline expressions and an optional sandboxed environment.
-
%description -l pl.UTF-8
Mały ale szybkie i łatwy w użyciu samodzielny silnik szablonów
napisany w czystym Pythonie. Dostarcza podobne do Django, o odmiennej
od XMLa składni i kompliowane do kodu Pythona szablony w opcjonalnie
ograniczonym środowisku.
+%package -n python3-%{module}
+Summary: Template engine
+Summary(pl.UTF-8): Silnik szablonów
+Group: Development/Languages/Python
+
+%description
+A small but fast and easy to use stand-alone template engine written
+in pure python. Provides a Django inspired non-XML syntax but supports
+inline expressions and an optional sandboxed environment.
+
+%description -n python3-%{module} -l pl.UTF-8
+Mały ale szybkie i łatwy w użyciu samodzielny silnik szablonów
+napisany w czystym Pythonie. Dostarcza podobne do Django, o odmiennej
+od XMLa składni i kompliowane do kodu Pythona szablony w opcjonalnie
+ograniczonym środowisku.
+
+%package apidoc
+Summary: Jinja2 template engine API documentation
+Group: Development/Languages/Python
+
+%description apidoc
+API documentation for Jinja2 template engine
+
%prep
%setup -q -n Jinja2-%{version}
%build
-%{__python} setup.py build
+%if %{with python2}
+%{__python} setup.py build --build-base py2
+%endif
+%if %{with python3}
+%{__python3} setup.py build --build-base py3
+%endif
+
%if %{with doc}
cd docs
%{__make} -j1 html
@@ -46,24 +83,50 @@
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%if %{with python2}
+%{__python} setup.py \
+ build --build-base py2 \
+ install \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
%py_postclean
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+ build --build-base py3 \
+ install \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+%py3_postclean
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
%files
%defattr(644,root,root,755)
%doc PKG-INFO AUTHORS CHANGES
-%if %{with doc}
-%doc docs/_build/html
-%endif
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/*Jinja*.egg*
+%endif
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc PKG-INFO AUTHORS CHANGES
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/*Jinja*.egg*
+%endif
+
+%if %{with doc}
+%files apidoc
+%defattr(644,root,root,755)
+%doc docs/_build/html
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -71,6 +134,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.12 2010/11/12 18:15:42 wiget
+- updated to 2.5.5
+- added python3 subpackage (based on python3-jinja2.spec)
+- added apidoc subpackage
+
Revision 1.11 2010/07/09 15:30:09 wiget
- build with doc
- rel. 6
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-jinja2/python-jinja2.spec?r1=1.11&r2=1.12&f=u
More information about the pld-cvs-commit
mailing list