rpms/python-jinja2/devel .cvsignore, 1.8, 1.9 import.log, 1.7, 1.8 python-jinja2.spec, 1.10, 1.11 sources, 1.8, 1.9

Thomas Moschny thm at fedoraproject.org
Tue Jul 13 22:21:52 UTC 2010


Author: thm

Update of /cvs/pkgs/rpms/python-jinja2/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv10327/devel

Modified Files:
	.cvsignore import.log python-jinja2.spec sources 
Log Message:
- Update to upstream version 2.5.
- Create python3 subpackage.



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-jinja2/devel/.cvsignore,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- .cvsignore	21 Apr 2010 11:13:48 -0000	1.8
+++ .cvsignore	13 Jul 2010 22:21:51 -0000	1.9
@@ -1 +1 @@
-Jinja2-2.4.1.tar.gz
+Jinja2-2.5.tar.gz


Index: import.log
===================================================================
RCS file: /cvs/pkgs/rpms/python-jinja2/devel/import.log,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- import.log	21 Apr 2010 11:13:48 -0000	1.7
+++ import.log	13 Jul 2010 22:21:51 -0000	1.8
@@ -5,3 +5,4 @@ python-jinja2-2_2_1-1_fc11:HEAD:python-j
 python-jinja2-2_3_1-1_fc12:HEAD:python-jinja2-2.3.1-1.fc12.src.rpm:1266965250
 python-jinja2-2_4-1_fc12:HEAD:python-jinja2-2.4-1.fc12.src.rpm:1271178578
 python-jinja2-2_4_1-1_fc12:HEAD:python-jinja2-2.4.1-1.fc12.src.rpm:1271848385
+python-jinja2-2_5-1_fc13:HEAD:python-jinja2-2.5-1.fc13.src.rpm:1279059589


Index: python-jinja2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-jinja2/devel/python-jinja2.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- python-jinja2.spec	21 Apr 2010 11:13:48 -0000	1.10
+++ python-jinja2.spec	13 Jul 2010 22:21:52 -0000	1.11
@@ -1,7 +1,11 @@
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%else
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%endif
 
 Name:		python-jinja2
-Version:	2.4.1
+Version:	2.5
 Release:	1%{?dist}
 Summary:	General purpose template engine
 Group:		Development/Languages
@@ -10,9 +14,18 @@ URL:		http://jinja.pocoo.org/
 Source0:	http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:	python-devel
-BuildRequires:	python-setuptools-devel
 BuildRequires:	python-sphinx
 Requires:	python-babel >= 0.8
+%if 0%{?with_python3}
+BuildRequires:	python3-devel
+BuildRequires:	python3-setuptools
+# babel isn't py3k ready yet, and is only a weak dependency
+#Requires:	 python3-babel >= 0.8
+%endif # with_python3
+
+%if 0%{?fedora} < 13
+BuildRequires:	python-setuptools-devel
+%endif 
 
 
 %description
@@ -27,17 +40,49 @@ principles and adding functionality usef
 environments.
 
 
+%if 0%{?with_python3}
+%package -n python3-jinja2
+Summary:	General purpose template engine
+Group:		Development/Languages
+
+
+%description -n python3-jinja2
+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.
+%endif # with_python3
+
+
 %prep
 %setup -q -n Jinja2-%{version}
 
 # fix EOL
 sed -i 's|\r$||g' LICENSE
 
+%if 0%{?with_python3}
+cp -a . %{py3dir}
+%endif # with_python3
+
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py --with-speedups build
+CFLAGS="%{optflags}" %{__python} setup.py --with-speedups build
+
+# for now, we build docs using Python 2.x and use that for both
+# packages.
 make -C docs html
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+CFLAGS="%{optflags}" %{__python3} setup.py --with-speedups build
+popd
+%endif # with_python3
+
 
 %install
 rm -rf %{buildroot}
@@ -50,6 +95,15 @@ chmod 0755 %{buildroot}%{python_sitearch
 # remove hidden file
 rm -rf docs/_build/html/.buildinfo
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py --with-speedups install -O1 --skip-build \
+	    --root %{buildroot}
+
+# ensure correct permission
+chmod 0755 %{buildroot}%{python3_sitearch}/jinja2/_speedups.so
+%endif # with_python3
+
 
 %clean
 rm -rf %{buildroot}
@@ -59,16 +113,43 @@ rm -rf %{buildroot}
 make test
 
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+make test
+popd
+%endif # with_python3
+
+
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS CHANGES LICENSE
 %doc docs/_build/html
 %doc ext
+%doc examples
 %{python_sitearch}/*
 %exclude %{python_sitearch}/jinja2/_speedups.c
 
 
+%if 0%{?with_python3}
+%files -n python3-jinja2
+%defattr(-,root,root,-)
+%doc AUTHORS CHANGES LICENSE
+%doc docs/_build/html
+%doc ext
+%doc examples
+%{python3_sitearch}/*
+%exclude %{python3_sitearch}/jinja2/_speedups.c
+%endif # with_python3
+
+
 %changelog
+* Tue Jul 13 2010 Thomas Moschny <thomas.moschny at gmx.de> - 2.5-1
+- Update to upstream version 2.5.
+- Create python3 subpackage. 
+- Minor specfile fixes.
+- Add examples directory.
+- Thanks to Gareth Armstrong for additional hints.
+
 * Wed Apr 21 2010 Thomas Moschny <thomas.moschny at gmx.de> - 2.4.1-1
 - Update to 2.4.1.
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-jinja2/devel/sources,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- sources	21 Apr 2010 11:13:48 -0000	1.8
+++ sources	13 Jul 2010 22:21:52 -0000	1.9
@@ -1 +1 @@
-e0cf5af057fac63ac9689b86c8b31ce6  Jinja2-2.4.1.tar.gz
+d02f82e33afe918cef8a9abcd23ccd78  Jinja2-2.5.tar.gz



More information about the scm-commits mailing list