From 0cda00d934c2864dba04e50a7ced51d46cde675b4a08eddd2d7672f5c0fc32b3 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 23 Feb 2012 13:44:43 +0000 Subject: [PATCH] - Simplified macro usage OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=11 --- python-Jinja2.changes | 5 +++++ python-Jinja2.spec | 24 ++++++++++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/python-Jinja2.changes b/python-Jinja2.changes index 4d10202..1fdcc83 100644 --- a/python-Jinja2.changes +++ b/python-Jinja2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 23 13:44:50 UTC 2012 - saschpe@suse.de + +- Simplified macro usage + ------------------------------------------------------------------- Thu Sep 22 12:00:51 UTC 2011 - saschpe@suse.de diff --git a/python-Jinja2.spec b/python-Jinja2.spec index 30a603b..a8bc7dd 100644 --- a/python-Jinja2.spec +++ b/python-Jinja2.spec @@ -1,7 +1,7 @@ # # spec file for package python-Jinja2 # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 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 @@ -16,30 +16,25 @@ # - Name: python-Jinja2 Version: 2.6 Release: 0 -Url: http://jinja.pocoo.org/ Summary: A fast and easy to use template engine written in pure Python License: BSD-3-Clause Group: Development/Languages/Python +Url: http://jinja.pocoo.org/ Source: http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: fdupes BuildRequires: python-devel BuildRequires: python-distribute -%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} Obsoletes: python-jinja2 < %{version} -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif %description Jinja2 is a template engine written in pure Python. It provides a Django @@ -58,6 +53,7 @@ sandboxed environment. Here a small example of a Jinja template: %package vim Summary: Jinja2 syntax files for Vim +License: BSD-3-Clause Group: Productivity/Text/Editors Requires: %{name} = %{version}