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