%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: fuse-python Version: 0.2 Release: 5%{?dist} Summary: Python bindings for FUSE - filesystem in userspace Group: System Environment/Base License: LGPLv2 URL: http://fuse.sourceforge.net/wiki/index.php/FusePython Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Provides: python-fuse = %{version}-%{release} BuildRequires: pkgconfig BuildRequires: fuse-devel # Must have setuptools to build the package # The build portions moved to a subpackage in F-8 %if 0%{?fedora} >= 8 BuildRequires: python-setuptools-devel %else BuildRequires: python-setuptools %endif %description This package provides python bindings for FUSE. FUSE makes it possible to implement a filesystem in a userspace program. %prep %setup -q %build python setup.py build mv -f Changelog Changelog.old iconv -f iso8859-1 -t utf-8 < Changelog.old > Changelog %install rm -rf $RPM_BUILD_ROOT python setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING Changelog FAQ README.new_fusepy_api README.new_fusepy_api.html README.package_maintainers %{python_sitearch}/* %changelog * Fri Oct 5 2007 Peter Lemenkov 0.2-5 - Removed BR: python-devel (excessive since we BR: python-setuptool) - Cleaned up mixed usage of macros and explicit commands ( __python and python) * Fri Oct 5 2007 Peter Lemenkov 0.2-4 - Changes according to http://fedoraproject.org/wiki/Packaging/Python/Eggs * Sun Sep 9 2007 Jan ONDREJ (SAL) 0.2-3 - removed non used macros - Changelog file converted to UTF-8 * Thu Sep 6 2007 Jan ONDREJ (SAL) 0.2-2 - changed permissions for sitearch files to 644 - added fuseparts dir to package - added egg-info directory with it's content - license changed to LGPLv2, according to documentation and sources - added provides for python-fuse (remove it on rename) * Sun Aug 5 2007 Peter Lemenkov 0.2-1 - Ver. 0.2 - Cleanups * Tue Jun 26 2007 Robin Norwood - 0.2-pre3-2 - Put everything in python_sitearch, which should allow x86_64 builds * Fri Jun 22 2007 Robin Norwood - 0.2-pre3-1 - Initial build