2011-06-02 09:50:49 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-xattr
|
|
|
|
#
|
2012-06-22 11:04:32 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-06-02 09:50:49 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2012-06-22 11:04:32 +00:00
|
|
|
|
2011-06-02 09:50:49 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2009-05-08 16:44:29 +00:00
|
|
|
|
|
|
|
|
2011-06-02 09:50:49 +00:00
|
|
|
Name: python-xattr
|
2012-06-22 11:04:32 +00:00
|
|
|
Version: 0.6.4
|
2011-06-02 09:50:49 +00:00
|
|
|
Release: 0
|
2011-11-28 15:24:41 +00:00
|
|
|
Summary: Python wrapper for extended filesystem attributes
|
2012-06-22 11:04:32 +00:00
|
|
|
License: MIT
|
2011-06-02 09:50:49 +00:00
|
|
|
Group: Development/Languages/Python
|
2012-06-22 11:04:32 +00:00
|
|
|
Url: http://github.com/xattr/xattr
|
2011-09-23 10:32:51 +00:00
|
|
|
Source: xattr-%{version}.tar.gz
|
2011-06-02 09:50:49 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-distribute
|
2011-11-28 15:24:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-06-02 09:50:49 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%py_requires
|
|
|
|
%endif
|
2011-11-28 15:24:41 +00:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2009-05-08 16:44:29 +00:00
|
|
|
|
2011-06-02 09:50:49 +00:00
|
|
|
%description
|
|
|
|
Extended attributes extend the basic attributes of files and directories
|
|
|
|
in the file system. They are stored as name:data pairs associated with
|
|
|
|
file system objects (files, directories, symlinks, etc).
|
2009-05-08 16:44:29 +00:00
|
|
|
|
2011-06-02 09:50:49 +00:00
|
|
|
Extended attributes are currently only available on Darwin 8.0+ (Mac OS X 10.4)
|
|
|
|
and Linux 2.6+. Experimental support is included for Solaris and FreeBSD.
|
2009-05-08 16:44:29 +00:00
|
|
|
|
|
|
|
%prep
|
2011-06-02 09:50:49 +00:00
|
|
|
%setup -q -n xattr-%{version}
|
2011-09-23 10:32:51 +00:00
|
|
|
sed -i "1d" xattr/tool.py # Fix executable-bit rpmlint warning
|
2009-05-08 16:44:29 +00:00
|
|
|
|
|
|
|
%build
|
2011-09-23 10:32:51 +00:00
|
|
|
CFLAGS="%{optflags}" python setup.py build
|
2009-05-08 16:44:29 +00:00
|
|
|
|
|
|
|
%install
|
2011-06-02 09:50:49 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2009-05-08 16:44:29 +00:00
|
|
|
|
2011-06-02 09:50:49 +00:00
|
|
|
%files
|
2012-06-22 11:04:32 +00:00
|
|
|
%defattr(-,root,root)
|
2011-09-23 10:32:51 +00:00
|
|
|
%doc CHANGES.txt LICENSE.txt README.txt TODO.txt
|
2011-06-02 09:50:49 +00:00
|
|
|
%{_bindir}/xattr
|
|
|
|
%{python_sitearch}/*
|
2009-05-08 16:44:29 +00:00
|
|
|
|
|
|
|
%changelog
|