commit 87683445f53d39941e0f8d03da932d5621a7fd1bc20cc431575d05028a4dc472 Author: Sascha Peilicke Date: Wed Jul 20 20:33:49 2011 +0000 - Renamed to python-Jinja2 - Fix wrong EOL encodings - Do not require python-setuptools, buildrequires is sufficient - Removed authors from description - Changed license to BSD3c - rpmlint issues cleanup * fdupes, tar.bz2 tarball, ... - package docs again (lost with last revision) - re-generated spec file with py2pack * now builds for Fedora and Mandriva - Update to 2.2.1; - Fixed changes file name. - initial package (2.1.1) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Jinja2-2.5.5.tar.gz b/Jinja2-2.5.5.tar.gz new file mode 100644 index 0000000..0c837a7 --- /dev/null +++ b/Jinja2-2.5.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22f9675e42dc640c4469d4f7d210baecb5e695823af954c813d51c930235675d +size 438586 diff --git a/python-Jinja2.changes b/python-Jinja2.changes new file mode 100644 index 0000000..b2401ca --- /dev/null +++ b/python-Jinja2.changes @@ -0,0 +1,37 @@ +------------------------------------------------------------------- +Wed Jul 20 20:27:08 UTC 2011 - saschpe@gmx.de + +- Renamed to python-Jinja2 +- Fix wrong EOL encodings + +------------------------------------------------------------------- +Thu Apr 7 14:56:33 UTC 2011 - saschpe@suse.de + +- Do not require python-setuptools, buildrequires is sufficient +- Removed authors from description +- Changed license to BSD3c + +------------------------------------------------------------------- +Sun Dec 12 17:45:39 UTC 2010 - saschpe@gmx.de + +- rpmlint issues cleanup + * fdupes, tar.bz2 tarball, ... +- package docs again (lost with last revision) + +------------------------------------------------------------------- +Sat Dec 11 23:23:05 UTC 2010 - saschpe@gmx.de + +- re-generated spec file with py2pack + * now builds for Fedora and Mandriva + +------------------------------------------------------------------- +Thu Sep 17 20:33:11 UTC 2009 - alexandre@exatati.com.br + +- Update to 2.2.1; +- Fixed changes file name. + +------------------------------------------------------------------- +Mon Jun 8 14:05:51 CEST 2009 - poeml@suse.de + +- initial package (2.1.1) + diff --git a/python-Jinja2.spec b/python-Jinja2.spec new file mode 100644 index 0000000..3da1584 --- /dev/null +++ b/python-Jinja2.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-Jinja2 +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: python-Jinja2 +Version: 2.5.5 +Release: 0 +Url: http://jinja.pocoo.org/ +Summary: A fast and easy to use template engine written in pure Python +License: BSD +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel +BuildRequires: python-setuptools +%if 0%{?suse_version} +%py_requires +%if 0%{?suse_version} > 1010 +BuildRequires: fdupes +%endif +%if 0%{?suse_version} > 1110 +BuildArch: noarch +%endif +%endif +Provides: python-jinja2 = %{version} +# TODO: Change back to '<' after next version update: +Obsoletes: python-jinja2 <= %{version} +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%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. Here a small example of a Jinja template: + + {% extends 'base.html' %} + {% block title %}Memberlist{% endblock %} + {% block content %} + + {% endblock %} + +%prep +%setup -q -n Jinja2-%{version} + +%build +python setup.py build +sed -i 's/\r$//' LICENSE # Fix wrong EOL encoding + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if 0%{?suse_version} > 1010 +%fdupes %{buildroot}%{_prefix} +%endif + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc AUTHORS CHANGES LICENSE artwork examples ext +%{python_sitelib}/* + +%changelog