From d9694358f0db40c3f97bac5cf7de8237695b52213bc7b93fa719814a6ca57fbe Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 2 Jul 2012 07:38:43 +0000 Subject: [PATCH] - Only SLE-11 needs %pyrequires and there it is not noarch - Explicit dependency on Python >= 2.4 isn't needed, %py_requires does that for SLE-11 (>2.6) and a more recent RPM does it automatically OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastimport?expand=0&rev=2 --- python-fastimport.changes | 7 +++++++ python-fastimport.spec | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-fastimport.changes b/python-fastimport.changes index 9c4e141..76621da 100644 --- a/python-fastimport.changes +++ b/python-fastimport.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jul 2 07:37:20 UTC 2012 - saschpe@suse.de + +- Only SLE-11 needs %pyrequires and there it is not noarch +- Explicit dependency on Python >= 2.4 isn't needed, %py_requires does that + for SLE-11 (>2.6) and a more recent RPM does it automatically + ------------------------------------------------------------------- Wed Jun 27 11:26:03 UTC 2012 - jengelh@inai.de diff --git a/python-fastimport.spec b/python-fastimport.spec index de50a2a..36763c1 100644 --- a/python-fastimport.spec +++ b/python-fastimport.spec @@ -23,13 +23,14 @@ Summary: Fastimport parser in Python License: GPL-2.0+ Group: Development/Libraries/Python Url: http://launchpad.net/python-fastimport - Source: %name-%version.tar.bz2 - BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python >= 2.4 -BuildArch: noarch +%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()")} %py_requires +%else +BuildArch: noarch +%endif %description This is the Python parser that was originally developed for