+Short 'Bleeding Edge' checkout doc.
[lufs.git] / lufs.spec.in
1 Summary:        lufs - Linux Userland File System
2 Name:           @PACKAGE@
3 Version:        @VERSION@
4 Release:        1captive
5 License:        GPL
6 Group:          Base
7 Source0:        @PACKAGE@-@VERSION@.tar.gz
8 Patch1:         @PACKAGE@-@VERSION@-captive.patch
9 BuildRequires:  autoconf
10 BuildRequires:  automake
11 BuildRequires:  libtool
12 BuildRequires:  perl
13 Requires:       perl
14 BuildRoot:      /tmp/buildroot-@PACKAGE@-@VERSION@
15
16 %description
17 LUFS is a hybrid userspace filesystem framework supporting many filesystems:
18 sshfs, ftpfs, localfs, locasefs, gvfs, cardfs, cefs, etc.  Lots of other 
19 "exotic" filesystems are in the planning phase: socketfs, httpfs, freenetfs
20 and others.
21
22 %package devel
23 Summary:        lufs - Linux Userland File System files for filesystems development
24 Group:          Development/Base
25 Requires:       lufs = %{PACKAGE_VERSION}
26
27 %description devel
28 Support for development of 3rd party filesystem modules for LUFS - a hybrid
29 userspace filesystem framework supporting many filesystems: sshfs, ftpfs,
30 localfs, locasefs, gvfs, cardfs, cefs, etc.
31
32 %prep
33 %setup -q
34
35 %patch1 -p1
36
37 %build
38 %{__aclocal}
39 %{__libtoolize} --force
40 %{__autoheader}
41 %{__automake} --add-missing
42 %{__autoconf}
43 %configure
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 %{__make} install DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 ln -s %{_bindir}/auto.sshfs /etc/auto.sshfs
55 ln -s %{_bindir}/auto.ftpfs /etc/auto.ftpfs
56 ln -s %{_bindir}/lufsd /sbin/mount.lufs
57 depmod -a
58 if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
59 modprobe lufs
60
61 %preun
62 if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
63
64 %postun
65 depmod -a
66 rm -f /etc/auto.sshfs
67 rm -f /etc/auto.ftpfs
68 rm -f /sbin/mount.lufs
69
70 %files
71 %defattr(644,root,root)
72 /etc/lufsd.conf
73 %{_datadir}/lufs
74 %defattr(755,root,root)
75 %{_bindir}/lufsd
76 %{_bindir}/lussh
77 %{_bindir}/lufsmount
78 %{_bindir}/lufsmnt
79 %{_bindir}/auto.sshfs
80 %{_bindir}/auto.ftpfs
81 %{_libdir}/lib*.so*
82 %{_mandir}/man*/lufs*
83 # These are SUID root...
84 %defattr(4755,root,root)
85 %{_bindir}/lufsmnt-bin
86 %{_bindir}/lufsumount
87
88 %files devel
89 %defattr(644,root,root)
90 %{_includedir}/lufs
91 %{_libdir}/lib*.la
92
93 %changelog
94 * Wed Aug 20 2003 Jan Kratochvil <project-captive@jankratochvil.net>
95 - rewritten for AutoGen as a support subsystem of Captive project
96
97 * Sun Nov 24 2002 Dave Wilson <dave@...>
98 - initial version