# python-fuse.spec %define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') %define real_name python-fuse Summary: Extended attributes for python Name: python-fuse Version: 0.2_pre3 Release: dm1 License: GPL Group: Development/Libraries URL: http://fuse.sourceforge.net/ Source: fuse-python-0.2-pre3.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Obsoletes: python-fuse <= %{version}-%{release} BuildRequires: python >= 2.2, libattr-devel, python-devel Requires: python >= 2.2, libattr %description python-fuse 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 tar xzf ../SOURCES/fuse-python-0.2-pre3.tar.gz cd fuse-python-0.2-pre3 %build cd fuse-python-0.2-pre3 CFLAGS="%{optflags}" %{__python} setup.py build %install cd fuse-python-0.2-pre3 %{__rm} -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" %clean cd fuse-python-0.2-pre3 %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc fuse-python-0.2-pre3/AUTHORS fuse-python-0.2-pre3/COPYING fuse-python-0.2-pre3/Changelog fuse-python-0.2-pre3/FAQ fuse-python-0.2-pre3/INSTALL fuse-python-0.2-pre3/MANIFEST.in fuse-python-0.2-pre3/PKG-INFO fuse-python-0.2-pre3/README.* %{python_sitearch} %changelog * Wed Jun 13 2007 Durval Menezes 0.2_pre3-dm1 - Initial package.