1 # Your kernel version, tries to auto-detect here
2 %define kernelversion %(uname -r)
4 Summary: lufs - Linux Userland File System
10 Source0: @PACKAGE@-@VERSION@.tar.gz
11 Patch1: @PACKAGE@-@VERSION@-captive.patch
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: libtool
16 #BuildRequires: kernel-source = %{kernelversion}
18 #Requires: kernel = %{kernelversion}
20 BuildRoot: /tmp/buildroot-@PACKAGE@-@VERSION@
23 LUFS is a hybrid userspace filesystem framework supporting many filesystems:
24 sshfs, ftpfs, localfs, locasefs, gvfs, cardfs, cefs, etc. Lots of other
25 "exotic" filesystems are in the planning phase: socketfs, httpfs, freenetfs
36 %{__libtoolize} --force
38 %{__automake} --add-missing
41 # --with-kernel=%{kernelversion} \
42 # --with-kheaders=/lib/modules/%{kernelversion}/build/include
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
56 ln -s /usr/bin/auto.sshfs /etc/auto.sshfs
57 ln -s /usr/bin/auto.ftpfs /etc/auto.ftpfs
58 ln -s /usr/bin/lufsd /sbin/mount.lufs
62 if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
68 if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
76 rm -f /sbin/mount.lufs
80 %defattr(644,root,root)
82 /lib/modules/%{kernelversion}/kernel/fs/lufs/lufs.o
85 %defattr(755,root,root)
94 # These are SUID root...
96 %defattr(4755,root,root)
102 * Sun Nov 24 2002 Dave Wilson <dave@...>