1 |
%define real_name xattr |
2 |
# we don't want to provide private python extension libs |
3 |
%define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so |
4 |
|
5 |
Summary: Extended attributes for python |
6 |
Name: python-xattr |
7 |
Version: 0.7.2 |
8 |
Release: %mkrel 4 |
9 |
License: GPL |
10 |
Group: Development/Python |
11 |
URL: http://pypi.python.org/pypi/xattr |
12 |
Source: http://pypi.python.org/packages/source/x/xattr/xattr-%{version}.tar.gz |
13 |
Provides: pyxattr = %{version}-%{release} |
14 |
BuildRequires: libattr-devel |
15 |
BuildRequires: python-setuptools |
16 |
BuildRequires: pkgconfig(libffi) |
17 |
BuildRequires: pkgconfig(python) |
18 |
|
19 |
%description |
20 |
python-xattr is a C extension module for Python which implements |
21 |
extended attributes manipulation. It is a wrapper on top of the |
22 |
attr C library - see attr(5). |
23 |
|
24 |
%prep |
25 |
%setup -q -n %{real_name}-%{version} |
26 |
rm -rf xattr.egg-info |
27 |
|
28 |
%build |
29 |
CFLAGS="%{optflags}" %{__python} setup.py build |
30 |
|
31 |
%install |
32 |
%{__python} setup.py install --skip-build --root="%{buildroot}" --install-purelib=%{python_sitearch} |
33 |
|
34 |
|
35 |
%files |
36 |
%{_bindir}/xattr |
37 |
%{python_sitearch}/* |