From c4d759b5b88261b48fbd4b12deffb121c6317eff248aa2221dc114ae1b1de4d1 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 15 Mar 2013 08:51:54 +0000 Subject: [PATCH] - Add provides/obsoletes for pyxattr which just got deleted - Some minor cleanup OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xattr?expand=0&rev=11 --- python-xattr.changes | 6 ++++++ python-xattr.spec | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-xattr.changes b/python-xattr.changes index 4c601a7..6c3e010 100644 --- a/python-xattr.changes +++ b/python-xattr.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 15 08:49:50 UTC 2013 - speilicke@suse.com + +- Add provides/obsoletes for pyxattr which just got deleted +- Some minor cleanup + ------------------------------------------------------------------- Fri Jun 22 01:13:30 UTC 2012 - os-dev@jacraig.com diff --git a/python-xattr.spec b/python-xattr.spec index 46de651..7388f87 100644 --- a/python-xattr.spec +++ b/python-xattr.spec @@ -1,7 +1,7 @@ # # spec file for package python-xattr # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 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 @@ -27,10 +27,11 @@ Source: xattr-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-distribute BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} -%py_requires -%endif +Provides: pyxattr = %{version} +Obsoletes: pyxattr < %{version} +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif %description Extended attributes extend the basic attributes of files and directories @@ -42,10 +43,10 @@ and Linux 2.6+. Experimental support is included for Solaris and FreeBSD. %prep %setup -q -n xattr-%{version} -sed -i "1d" xattr/tool.py # Fix executable-bit rpmlint warning +sed -i "/#\!\/usr\/bin\/env python/d" xattr/tool.py # Fix executable-bit rpmlint warning %build -CFLAGS="%{optflags}" python setup.py build +python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot}