Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
315d36f73d | ||
|
|
92cb526c82 | ||
|
|
827d124813 |
6 changed files with 23 additions and 34 deletions
|
|
@ -1 +0,0 @@
|
||||||
Jinja2-2.2.1.tar.gz
|
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Jinja2-2.3.1.tar.gz
|
||||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: python-jinja2
|
|
||||||
# $Id: Makefile,v 1.1 2008/07/23 03:02:27 kevin Exp $
|
|
||||||
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 $$d/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)
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
python-jinja2-2_0-2_fc9:HEAD:python-jinja2-2.0-2.fc9.src.rpm:1216886150
|
|
||||||
python-jinja2-2_1-1_fc10:HEAD:python-jinja2-2.1-1.fc10.src.rpm:1229610786
|
|
||||||
python-jinja2-2_1_1-1_fc10:HEAD:python-jinja2-2.1.1-1.fc10.src.rpm:1231601194
|
|
||||||
python-jinja2-2_2_1-1_fc11:HEAD:python-jinja2-2.2.1-1.fc11.src.rpm:1253462191
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
Name: python-jinja2
|
Name: python-jinja2
|
||||||
Version: 2.2.1
|
Version: 2.3.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: General purpose template engine
|
Summary: General purpose template engine
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
|
@ -11,8 +11,10 @@ Source0: http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.g
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools-devel
|
BuildRequires: python-setuptools-devel
|
||||||
|
BuildRequires: python-sphinx
|
||||||
Requires: python-babel >= 0.8
|
Requires: python-babel >= 0.8
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Jinja2 is a template engine written in pure Python. It provides a
|
Jinja2 is a template engine written in pure Python. It provides a
|
||||||
Django inspired non-XML syntax but supports inline expressions and an
|
Django inspired non-XML syntax but supports inline expressions and an
|
||||||
|
|
@ -28,9 +30,13 @@ environments.
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Jinja2-%{version}
|
%setup -q -n Jinja2-%{version}
|
||||||
|
|
||||||
|
# fix EOL
|
||||||
|
sed -i 's|\r$||g' LICENSE
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py --with-speedups build
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py --with-speedups build
|
||||||
|
make -C docs html
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
@ -38,9 +44,6 @@ rm -rf %{buildroot}
|
||||||
%{__python} setup.py --with-speedups install -O1 --skip-build \
|
%{__python} setup.py --with-speedups install -O1 --skip-build \
|
||||||
--root %{buildroot}
|
--root %{buildroot}
|
||||||
|
|
||||||
# fix EOL
|
|
||||||
sed -i 's|\r$||g' LICENSE
|
|
||||||
|
|
||||||
# ensure correct permission
|
# ensure correct permission
|
||||||
chmod 0755 %{buildroot}%{python_sitearch}/jinja2/_speedups.so
|
chmod 0755 %{buildroot}%{python_sitearch}/jinja2/_speedups.so
|
||||||
|
|
||||||
|
|
@ -52,14 +55,25 @@ rm -rf docs/_build/html/.buildinfo
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS CHANGES LICENSE TODO
|
%doc AUTHORS CHANGES LICENSE
|
||||||
%doc docs/_build/html ext
|
%doc docs/_build/html
|
||||||
|
%doc ext
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
%exclude %{python_sitearch}/jinja2/_speedups.c
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 23 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.1-1
|
||||||
|
- Update to 2.3.1.
|
||||||
|
- Docs are built using Sphinx now.
|
||||||
|
- Run the testsuite.
|
||||||
|
|
||||||
* Sat Sep 19 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.1-1
|
* Sat Sep 19 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.1-1
|
||||||
- Update to 2.2.1, mainly a bugfix release.
|
- Update to 2.2.1, mainly a bugfix release.
|
||||||
- Remove patch no longer needed.
|
- Remove patch no longer needed.
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
fea849d68891218eb0b21c170f1c32d5 Jinja2-2.2.1.tar.gz
|
391c7dd06c62dfe7e30ebaad7af0a401 Jinja2-2.3.1.tar.gz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue