From bc74e145c5ececbf5ed1ac1c14183a33f0911c68555347b70fb814c6799c40b4 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 26 Jun 2012 09:56:48 +0000 Subject: [PATCH] - Spec file cleanup OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-GitPython?expand=0&rev=4 --- python-GitPython.changes | 5 +++++ python-GitPython.spec | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/python-GitPython.changes b/python-GitPython.changes index 1a4bdb4..92467a6 100644 --- a/python-GitPython.changes +++ b/python-GitPython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 26 09:55:59 UTC 2012 - saschpe@suse.de + +- Spec file cleanup + ------------------------------------------------------------------- Wed Jul 6 20:34:02 UTC 2011 - alexandre@exatati.com.br diff --git a/python-GitPython.spec b/python-GitPython.spec index be70ad9..4a52c49 100644 --- a/python-GitPython.spec +++ b/python-GitPython.spec @@ -1,7 +1,7 @@ # # spec file for package python-GitPython # -# 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,7 +16,6 @@ # - Name: python-GitPython Version: 0.3.2.RC1 Release: 0 @@ -29,13 +28,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute Requires: python-gitdb -%if 0%{?suse_version} +%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 -%if 0%{?suse_version} > 1110 +%else BuildArch: noarch %endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description GitPython is a python library used to interact with Git repositories.