%define majver %(echo %version | cut -d. -f 1-2) %define minver %(echo %version | cut -d. -f 3) Name: libfusd Version: 1.10.11 Release: 3mamba Summary: A Linux framework for proxying device file callbacks into user-space Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.circlemud.org/~jelson/software/fusd/ Source: http://fort.xdas.com/~kor/oss2jack/fusd-kor-%{majver}-%{minver}.tar.gz Patch: libfusd-1.10-10-Makefile.patch Patch1: libfusd-1.10.11-kernel2.6.26.patch Patch2: libfusd-1.10.11-flag-for-more-data.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root %description FUSD (pronounced fused) is a Linux framework for proxying device file callbacks into user-space, allowing device files to be implemented by daemons instead of kernel code. Despite being implemented in user-space, FUSD devices can look and act just like any other file under /dev which is implemented by kernel callbacks. %package devel Group: Development/Libraries Summary: A Linux framework for proxying device file callbacks into user-space %description devel FUSD (pronounced fused) is a Linux framework for proxying device file callbacks into user-space, allowing device files to be implemented by daemons instead of kernel code. Despite being implemented in user-space, FUSD devices can look and act just like any other file under /dev which is implemented by kernel callbacks. This package contains the static library libfusd.a to be used for development. %prep %setup -q -n fusd-kor-%{majver}-%{minver} %patch2 -p1 %build sed -i "s|/usr/local|%{buildroot}%{_prefix}|" Makefile %make obj.i686-linux/libfusd.a %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} install -d -m0755 %{buildroot}%{_libdir} cp obj.i686-linux/libfusd.a %{buildroot}%{_libdir}/ install -d -m0755 %{buildroot}%{_includedir} cp include/*.h %{buildroot}%{_includedir}/ %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/libfusd.a %doc ChangeLog LICENSE README %changelog * Sat Aug 31 2013 Automatic Build System 1.10.11-3mamba - automatic rebuild by autodist * Sat Nov 29 2008 Silvan Calarco 1.10.11-2mamba - added flag-for-more-data patch * Fri Nov 28 2008 Silvan Calarco 1.10.11-1mamba - update to 1.10.11 * Sat Nov 19 2005 Silvan Calarco 10-1qilnx - package created by autospec