]> git.pld-linux.org Git - packages/python3-jinja2.git/commitdiff
- Python 3.x version auto/th/python3-jinja2-2_3_1-1
authorArtur Frysiak <artur@frysiak.net>
Sun, 28 Feb 2010 16:17:46 +0000 (16:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python3-jinja2.spec -> 1.1

python3-jinja2.spec [new file with mode: 0644]

diff --git a/python3-jinja2.spec b/python3-jinja2.spec
new file mode 100644 (file)
index 0000000..0135b13
--- /dev/null
@@ -0,0 +1,62 @@
+%bcond_without doc
+%define module jinja2
+Summary:       Template engine
+Summary(pl.UTF-8):     Silnik szablonów
+Name:          python3-%{module}
+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: 391c7dd06c62dfe7e30ebaad7af0a401
+URL:           http://pypi.python.org/pypi/Jinja2
+BuildRequires: python3-devel
+%if %{with doc}
+BuildRequires: sphinx-pdg
+%endif
+%pyrequires_eq python3-modules
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 -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.
+
+%prep
+%setup -q -n Jinja2-%{version}
+
+%build
+%{__python3} setup.py build
+%if %{with doc}
+cd docs
+make html
+rm -rf _build/html/_sources
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__python3} setup.py install \
+               --optimize=2 \
+               --root=$RPM_BUILD_ROOT
+
+%py3_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc PKG-INFO AUTHORS CHANGES
+%if %{with doc}
+%doc docs/_build/html
+%endif
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/*Jinja*.egg*
This page took 0.240123 seconds and 4 git commands to generate.