Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc762da51f | ||
|
|
cc95fa7b1b | ||
|
|
efa9e0f157 | ||
|
|
65abce52aa |
6 changed files with 89 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Jinja2-2.0.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: python-jinja2
|
||||
# $Id$
|
||||
NAME := python-jinja2
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
12
python-jinja2-docs.patch
Normal file
12
python-jinja2-docs.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -up Jinja2-2.0rc1/setup.py.orig Jinja2-2.0rc1/setup.py
|
||||
--- Jinja2-2.0rc1/setup.py.orig 2008-06-29 01:44:48.000000000 +0200
|
||||
+++ Jinja2-2.0rc1/setup.py 2008-06-29 01:48:00.000000000 +0200
|
||||
@@ -51,7 +51,7 @@ from distutils.errors import CCompilerEr
|
||||
|
||||
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('.'):
|
||||
75
python-jinja2.spec
Normal file
75
python-jinja2.spec
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
Name: python-jinja2
|
||||
Version: 2.0
|
||||
Release: 2%{?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
|
||||
* 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 @@
|
|||
19fe3ee10ee94a6003c53374112f2403 Jinja2-2.0.tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue