forked from pool/python-xattr
Accepting request 159513 from devel:languages:python
- Add provides/obsoletes for pyxattr which just got deleted - Some minor cleanup OBS-URL: https://build.opensuse.org/request/show/159513 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xattr?expand=0&rev=6
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user