From 694df96fdc56a807144b69788c7f033f7621fbed06a7c1c65e7e2330b79b0669 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 23 Nov 2012 14:05:26 +0000 Subject: [PATCH] - Correctly provide/obsolete python-daemon - Spec file cleanup OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=7 --- python-python-daemon.changes | 6 ++++++ python-python-daemon.spec | 15 +++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/python-python-daemon.changes b/python-python-daemon.changes index b71431f..7772794 100644 --- a/python-python-daemon.changes +++ b/python-python-daemon.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 23 14:03:24 UTC 2012 - saschpe@suse.de + +- Correctly provide/obsolete python-daemon +- Spec file cleanup + ------------------------------------------------------------------- Wed Apr 18 09:00:59 UTC 2012 - bwiedemann@suse.com diff --git a/python-python-daemon.spec b/python-python-daemon.spec index f61f85f..767d5d3 100644 --- a/python-python-daemon.spec +++ b/python-python-daemon.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-daemon # -# 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 @@ -28,16 +28,15 @@ Source: python-daemon-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute -BuildRequires: python-minimock -Provides: python-daemon +BuildRequires: python-MiniMock Requires: python-lockfile -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +Provides: python-daemon = %{version} +Obsoletes: python-daemon < %{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()")} +%else BuildArch: noarch %endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description This library implements the well-behaved daemon specification of PEP 3143, "Standard daemon