forked from pool/python-xattr
62 lines
1.4 KiB
RPMSpec
62 lines
1.4 KiB
RPMSpec
![]() |
# norootforbuild
|
||
|
|
||
|
Name: python-xattr
|
||
|
Version: 0.5
|
||
|
Release: 0
|
||
|
Summary: Python Wrapper for Extended Filesytem Attributes
|
||
|
# http://svn.red-bean.com/bob/xattr/releases/xattr-%{version}/
|
||
|
Source: xattr-%{version}.tar.bz2
|
||
|
Source1: http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c9-py2.5.egg
|
||
|
URL: http://www.undefined.org/python/#xattr
|
||
|
Group: Development/Libraries/Python
|
||
|
License: MIT License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
BuildRequires: python python-devel glibc-devel gcc
|
||
|
%py_requires
|
||
|
|
||
|
%description
|
||
|
xattr is a Python wrapper for Darwin, Linux, and FreeBSD extended filesystem
|
||
|
attributes.
|
||
|
|
||
|
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).
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
Bob Ippolito <bob@redivi.com>
|
||
|
|
||
|
%debug_package
|
||
|
%prep
|
||
|
%setup -q -n "xattr-%{version}"
|
||
|
%__cp "%{SOURCE1}" .
|
||
|
|
||
|
%build
|
||
|
CFLAGS="%{optflags}" \
|
||
|
%__python ./setup.py build
|
||
|
|
||
|
%install
|
||
|
%__python ./setup.py install \
|
||
|
--prefix="%{_prefix}" \
|
||
|
--root="%{buildroot}" \
|
||
|
--record-rpm=files.lst
|
||
|
|
||
|
%clean
|
||
|
%__rm -rf "%{buildroot}"
|
||
|
|
||
|
%files -f files.lst
|
||
|
%defattr(-,root,root)
|
||
|
%doc README.txt LICENSE.txt TODO.txt
|
||
|
|
||
|
%changelog
|
||
|
* Fri May 8 2009 Pascal Bleser <pascal.bleser@opensuse.org> 0.5
|
||
|
- new package
|
||
|
|
||
|
# Local Variables:
|
||
|
# mode: rpm-spec
|
||
|
# tab-width: 3
|
||
|
# End:
|