Compare commits
3 commits
rawhide
...
python-jin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fd0613f96 | ||
|
|
eb4d08a330 | ||
|
|
035a3f7d68 |
6 changed files with 99 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
||||||
|
Jinja2-2.1.tar.gz
|
||||||
1
branch
Normal file
1
branch
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
F-9
|
||||||
2
import.log
Normal file
2
import.log
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
python-jinja2-2_0-2_fc10:F-9:python-jinja2-2.0-2.fc10.src.rpm:1216886790
|
||||||
|
python-jinja2-2_1-1_fc11:F-9:python-jinja2-2.1-1.fc11.src.rpm:1229630281
|
||||||
12
python-jinja2-docs.patch
Normal file
12
python-jinja2-docs.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
diff -up Jinja2-2.1/setup.py.orig Jinja2-2.1/setup.py
|
||||||
|
--- Jinja2-2.1/setup.py.orig 2008-11-23 13:08:17.000000000 +0100
|
||||||
|
+++ Jinja2-2.1/setup.py 2008-12-18 15:14:22.000000000 +0100
|
||||||
|
@@ -54,7 +54,7 @@ VERSION = '2.1'
|
||||||
|
|
||||||
|
data_files = []
|
||||||
|
documentation_path = 'docs/_build/html'
|
||||||
|
-if os.path.exists(documentation_path):
|
||||||
|
+if os.path.exists(documentation_path) and False:
|
||||||
|
documentation_files = []
|
||||||
|
for fn in os.listdir(documentation_path):
|
||||||
|
if not fn.startswith('.'):
|
||||||
82
python-jinja2.spec
Normal file
82
python-jinja2.spec
Normal file
|
|
@ -0,0 +1,82 @@
|
||||||
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
|
Name: python-jinja2
|
||||||
|
Version: 2.1
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: General purpose template engine
|
||||||
|
|
||||||
|
Group: Development/Languages
|
||||||
|
License: BSD
|
||||||
|
URL: http://jinja.pocoo.org/
|
||||||
|
Source0: http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
|
||||||
|
Patch0: %{name}-docs.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
BuildRequires: python-devel
|
||||||
|
|
||||||
|
%if 0%{?fedora} >= 8
|
||||||
|
BuildRequires: python-setuptools-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: python-setuptools
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Requires: python-babel >= 0.8
|
||||||
|
|
||||||
|
%description
|
||||||
|
Jinja2 is a template engine written in pure Python. It provides a
|
||||||
|
Django inspired non-XML syntax but supports inline expressions and an
|
||||||
|
optional sandboxed environment.
|
||||||
|
|
||||||
|
If you have any exposure to other text-based template languages, such
|
||||||
|
as Smarty or Django, you should feel right at home with Jinja2. It's
|
||||||
|
both designer and developer friendly by sticking to Python's
|
||||||
|
principles and adding functionality useful for templating
|
||||||
|
environments.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n Jinja2-%{version}
|
||||||
|
%patch0 -p1 -b .docs
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
|
|
||||||
|
# fix EOL
|
||||||
|
sed -i 's|\r$||g' LICENSE
|
||||||
|
|
||||||
|
# fix wrong permission
|
||||||
|
%{__chmod} 0755 %{buildroot}%{python_sitearch}/jinja2/_speedups.so
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc AUTHORS CHANGES LICENSE TODO
|
||||||
|
%doc docs/_build/html ext
|
||||||
|
%{python_sitearch}/*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Dec 18 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.1-1
|
||||||
|
- Update to 2.1, which fixes a number of bugs.
|
||||||
|
See http://jinja.pocoo.org/2/documentation/changelog#version-2-1.
|
||||||
|
|
||||||
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0-3
|
||||||
|
- Rebuild for Python 2.6
|
||||||
|
|
||||||
|
* Tue Jul 22 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-2
|
||||||
|
- Use rpm buildroot macro instead of RPM_BUILD_ROOT.
|
||||||
|
|
||||||
|
* Sun Jul 20 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-1
|
||||||
|
- Upstream released 2.0.
|
||||||
|
|
||||||
|
* Sun Jun 29 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-0.1.rc1
|
||||||
|
- Modified specfile from the existing python-jinja package.
|
||||||
|
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
c7a31931c95a7ae5e1baf21074fdd576 Jinja2-2.1.tar.gz
|
||||||
Loading…
Add table
Add a link
Reference in a new issue