%define real_name xattr Summary: Extended attributes for python Name: python-xattr Version: 0.6.4 Release: %mkrel 2 License: GPL Group: Development/Python URL: http://pypi.python.org/pypi/xattr Source: http://pypi.python.org/packages/source/x/xattr/xattr-%{version}.tar.gz Provides: pyxattr = %{version}-%{release} BuildRequires: libattr-devel BuildRequires: python-setuptools %description python-xattr is a C extension module for Python which implements extended attributes manipulation. It is a wrapper on top of the attr C library - see attr(5). %prep %setup -q -n %{real_name}-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install rm -rf %{buildroot} python setup.py install --skip-build --root="%{buildroot}" --prefix="%{_prefix}" %files %defattr(-,root,root) %{python_sitearch}/* %{_bindir}/xattr %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.6.4-2.mga3 + Revision: 379693 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Feb 21 2012 philippem <philippem> 0.6.4-1.mga2 + Revision: 211549 - Update to 0.6.4. * Wed Oct 26 2011 philippem <philippem> 0.6.2-1.mga2 + Revision: 158251 - New upstream 0.6.2 * Thu Apr 14 2011 ahmad <ahmad> 0.6.1-4.mga1 + Revision: 85428 - install with --skip-build - use upstream %%{python_sitearch} - imported package python-xattr