[python-jinja2-26] Adapt Fedora .spec file for EL6.

Thomas Moschny thm at fedoraproject.org
Tue Nov 29 14:24:14 UTC 2011


commit 3fd5150c632102168be1107bd070bce834cdca76
Author: Thomas Moschny <thm at fedoraproject.org>
Date:   Tue Nov 29 15:20:01 2011 +0100

    Adapt Fedora .spec file for EL6.

 .gitignore            |    1 +
 README.Fedora         |   12 +++
 python-jinja2-26.spec |  189 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 4 files changed, 203 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0f312a7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Jinja2-2.6.tar.gz
diff --git a/README.Fedora b/README.Fedora
new file mode 100644
index 0000000..069e7f1
--- /dev/null
+++ b/README.Fedora
@@ -0,0 +1,12 @@
+This is a package of the Jinja2-2.6.X series for EPEL6. It is designed
+to be parallel-installable with the version of Sphinx that ships with
+RHEL6.
+
+In order to import the module, you have to modify sys.path as such:
+
+>>> import sys
+>>> sys.path.insert(0, '/usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg')
+>>> import jinja2
+
+For more details, see
+https://fedoraproject.org/wiki/Packaging:Python_Eggs#Multiple_Versions
diff --git a/python-jinja2-26.spec b/python-jinja2-26.spec
new file mode 100644
index 0000000..e48c18f
--- /dev/null
+++ b/python-jinja2-26.spec
@@ -0,0 +1,189 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+# Enable building without docs to avoid a circular dependency between this
+# and python-sphinx:
+%global with_docs 1
+
+Name:		python-jinja2-26
+Version:	2.6
+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
+Source1:	README.Fedora
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:	noarch
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+BuildRequires:	python-markupsafe
+%if 0%{?with_docs}
+BuildRequires:	python-sphinx10
+%endif # with_docs
+Requires:	python-babel >= 0.8
+Requires:	python-markupsafe
+BuildRequires:	python-setuptools
+
+
+%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}
+cp -p %{SOURCE1} .
+
+# cleanup
+find . -name '*.pyo' -o -name '*.pyc' -delete
+
+# fix EOL
+sed -i 's|\r$||g' LICENSE
+
+
+%build
+%{__python} setup.py bdist_egg
+
+%if 0%{?with_docs}
+make -C docs html SPHINXBUILD=sphinx-1.0-build
+%endif # with_docs
+
+
+%install
+rm -rf %{buildroot}
+
+# older versions of easy_install can't recreate path
+mkdir -p %{buildroot}%{python_sitelib}
+
+easy_install -m -O1 --prefix %{buildroot}%{_usr} dist/*.egg
+
+# fix permissions
+find %{buildroot}%{python_sitelib}/Jinja2-%{version}-py*.egg -type f \
+     -exec chmod a-x {} \;
+
+# remove hidden file
+rm -rf docs/_build/html/.buildinfo
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%check
+make test
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS CHANGES LICENSE README.Fedora
+%if 0%{?with_docs}
+%doc docs/_build/html
+%endif # with_docs
+%doc ext
+%doc examples
+%{python_sitelib}/*
+%exclude %{python_sitelib}/*/jinja2/_debugsupport.c
+
+
+%changelog
+* Mon Nov 28 2011 Thomas Moschny <thomas.moschny at gmx.de> - 2.6-2
+- Adapt Fedora .spec file for EL6.
+
+* Mon Jul 25 2011 Thomas Moschny <thomas.moschny at gmx.de> - 2.6-1
+- Update to 2.6.
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.5.5-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Tue Jan 18 2011 Thomas Moschny <thomas.moschny at gmx.de> - 2.5.5-3
+- Re-enable html doc generation.
+- Remove conditional for F-12 and below.
+- Do not silently fail the testsuite for with py3k.
+
+* Mon Nov  1 2010 Michel Salim <salimma at fedoraproject.org> - 2.5.5-2
+- Move python3 runtime requirements to python3 subpackage
+
+* Wed Oct 27 2010 Thomas Moschny <thomas.moschny at gmx.de> - 2.5.5-1
+- Update to 2.5.5.
+
+* Wed Aug 25 2010 Thomas Moschny <thomas.moschny at gmx.de> - 2.5.2-4
+- Revert to previous behavior: fail the build on failed test.
+- Rebuild for Python 3.2.
+
+* Wed Aug 25 2010 Dan Horák <dan[at]danny.cz> - 2.5.2-3
+- %%ifnarch doesn't work on noarch package so don't fail the build on failed tests
+
+* Wed Aug 25 2010 Dan Horák <dan[at]danny.cz> - 2.5.2-2
+- disable the testsuite on s390(x)
+
+* Thu Aug 19 2010 Thomas Moschny <thomas.moschny at gmx.de> - 2.5.2-1
+- Update to upstream version 2.5.2.
+- Package depends on python-markupsafe and is noarch now.
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 2.5-4
+- add explicit build-requirement on python-setuptools
+- fix doc disablement for python3 subpackage
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 2.5-3
+- support disabling documentation in the build to break a circular build-time
+dependency with python-sphinx; disable docs for now
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 2.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* 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.
+
+* Tue Apr 13 2010 Thomas Moschny <thomas.moschny at gmx.de> - 2.4-1
+- Update to 2.4.
+
+* Tue Feb 23 2010 Thomas Moschny <thomas.moschny at 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 at gmx.de> - 2.2.1-1
+- Update to 2.2.1, mainly a bugfix release.
+- Remove patch no longer needed.
+- Remove conditional for FC-8.
+- Compilation of speedup module has to be explicitly requested now.
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Jan 10 2009 Thomas Moschny <thomas.moschny at gmx.de> - 2.1.1-1
+- Update to 2.1.1 (bugfix release).
+
+* Thu Dec 18 2008 Thomas Moschny <thomas.moschny at 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 at gmail.com> - 2.0-3
+- Rebuild for Python 2.6
+
+* Tue Jul 22 2008 Thomas Moschny <thomas.moschny at gmx.de> - 2.0-2
+- Use rpm buildroot macro instead of RPM_BUILD_ROOT.
+
+* Sun Jul 20 2008 Thomas Moschny <thomas.moschny at gmx.de> - 2.0-1
+- Upstream released 2.0.
+
+* Sun Jun 29 2008 Thomas Moschny <thomas.moschny at gmx.de> - 2.0-0.1.rc1
+- Modified specfile from the existing python-jinja package.
diff --git a/sources b/sources
index e69de29..542d56c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1c49a8825c993bfdcf55bb36897d28a2  Jinja2-2.6.tar.gz


More information about the scm-commits mailing list