Partial update for new 'foreign' RPM build of AutoGen.
[lufs.git] / lufs.spec.in
1 # Your kernel version, tries to auto-detect here
2 %define kernelversion %(uname -r)
3
4 Summary:        lufs - Linux Userland File System
5 Name:           @PACKAGE@
6 Version:        @VERSION@
7 Release:        1
8 License:        GPL
9 Group:          Base
10 Source0:        @PACKAGE@-@VERSION@.tar.gz
11 Patch1:         @PACKAGE@-@VERSION@-captive.patch
12
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 #BuildRequires: kernel-source = %{kernelversion}
17
18 #Requires:   kernel = %{kernelversion}
19
20 BuildRoot:      /tmp/buildroot-@PACKAGE@-@VERSION@
21
22 %description
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
26 and others.
27
28
29 %prep
30 %setup -q
31
32 %patch1 -p1
33
34 %build
35 %{__aclocal}
36 %{__libtoolize} --force
37 %{__autoheader}
38 %{__automake} --add-missing
39 %{__autoconf}
40 %configure
41 #       --with-kernel=%{kernelversion} \
42 #       --with-kheaders=/lib/modules/%{kernelversion}/build/include 
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post
55
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
59
60 depmod -a
61
62 if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
63
64 modprobe lufs
65
66 %preun
67
68 if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
69
70 %postun
71
72 depmod -a
73
74 rm -f /etc/auto.sshfs
75 rm -f /etc/auto.ftpfs
76 rm -f /sbin/mount.lufs
77
78
79 %files
80 %defattr(644,root,root)
81
82 /lib/modules/%{kernelversion}/kernel/fs/lufs/lufs.o
83 /etc/lufsd.conf
84
85 %defattr(755,root,root)
86
87 /usr/bin/lufsd
88 /usr/bin/lussh
89 /usr/bin/lufsmount
90
91 /usr/bin/auto.sshfs
92 /usr/bin/auto.ftpfs
93
94 # These are SUID root...
95
96 %defattr(4755,root,root)
97 /usr/bin/lufsmnt
98 /usr/bin/lufsumount
99
100
101 %changelog
102 * Sun Nov 24 2002 Dave Wilson <dave@...>
103 - initial version