[suggest] RPM spec: python-fuse

Troy Engel tengel at fluid.com
Mon Apr 7 21:08:03 CEST 2008

RHEL5/CentOS5 python-fuse SPEC, this module is needed to use the 
ElasticDrive solution (http://www.elasticdrive.com); I could find no 
package out there yet for these platforms.

Original spec taken from some random source that wasn't compatible and 

== BEGIN ==

## RHEL5/CentOS5 oriented spec file

%define name python-fuse
%define version 0.2
%define release 1.te

%define pyfroot %{_builddir}/%{name}-%{version}
%define py_sitedir %(%{__python} -c "from distutils.sysconfig import 
get_python_lib; print get_python_lib()")
%define py_ver %(%{__python} -c "import sys; v=sys.version_info[:2]; 
print '%d.%d'%v")

Name:           %{name}
Version:        %{version}
Release:        %{release}
Summary:        Python Bindings for the FUSE Filesystem
Source:         fuse-python-%{version}.tar.gz
URL:            http://fuse.sourceforge.net/wiki/index.php/FusePython
Group:          Development/Libraries/Python
License:        GNU General Public License version 2.1 (GPL 2)
BuildRequires:  python python-devel fuse fuse-devel
BuildRequires:  pkgconfig gcc glibc-devel
BuildRoot:      %{_tmppath}/build-%{name}-%{version}-root

Python bindings for the FUSE filesystem.

%setup -q -n "fuse-python-%{version}"

CFLAGS="%{optflags}" \
         %{__python} ./setup.py build

[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%{__python} ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}"

[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
[ "%{pyfroot}" != "/" ] && rm -rf %{pyfroot}

%attr(0644,root,root) %doc AUTHORS Changelog COPYING FAQ README*
%attr(-,root,root) %{py_sitedir}/fuseparts/*
%attr(-,root,root) %{py_sitedir}/fuse.py*

* Mon Mar 31 2008 Troy Engel <tengel at fluid.com> 0.2-1.te
- create RHEL oriented package
- define py_sitedir and py_ver
- get rid of 'egg' filedef

* Wed Aug 29 2007 Pascal Bleser <guru at unixtech.be> 0.2-1
- new package

== END ==


Troy Engel | Systems Engineer
Fluid, Inc | http://www.fluid.com

More information about the users mailing list