/[packages]/cauldron/python-xattr/current/SPECS/python-xattr.spec
ViewVC logotype

Annotation of /cauldron/python-xattr/current/SPECS/python-xattr.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 85428 - (hide annotations) (download)
Thu Apr 14 19:29:46 2011 UTC (13 years ago) by ahmad
File size: 863 byte(s)
- install with --skip-build
- use upstream %%{python_sitearch}

1 ahmad 85416 %define real_name xattr
2    
3     Summary: Extended attributes for python
4     Name: python-xattr
5     Version: 0.6.1
6 ahmad 85428 Release: %mkrel 4
7 ahmad 85416 License: GPL
8     Group: Development/Python
9     URL: http://pypi.python.org/pypi/xattr
10     Source: http://pypi.python.org/packages/source/x/xattr/xattr-%{version}.tar.gz
11     Provides: pyxattr = %{version}-%{release}
12     BuildRequires: libattr-devel
13     BuildRequires: python-setuptools
14    
15     %description
16     python-xattr is a C extension module for Python which implements
17     extended attributes manipulation. It is a wrapper on top of the
18     attr C library - see attr(5).
19    
20     %prep
21     %setup -q -n %{real_name}-%{version}
22    
23     %build
24     CFLAGS="%{optflags}" %{__python} setup.py build
25    
26     %install
27     rm -rf %{buildroot}
28 ahmad 85428 python setup.py install --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
29 ahmad 85416
30     %clean
31     %{__rm} -rf %{buildroot}
32    
33     %files
34     %defattr(-,root,root)
35 ahmad 85428 %{python_sitearch}/*
36 ahmad 85416 %{_bindir}/xattr

  ViewVC Help
Powered by ViewVC 1.1.30