Release marked as 'captivecvs'.
[lufs.git] / lufs.spec.in
1 Summary:        lufs - Linux Userland File System
2 Name:           @PACKAGE@
3 Version:        @VERSION@
4 Release:        1captivecvs
5 License:        GPL
6 Group:          Base
7 Source0:        @PACKAGE@-@VERSION@.tar.gz
8 Patch1:         @PACKAGE@-@VERSION@-captive.patch
9 BuildRequires:  autoconf
10 BuildRequires:  automake >= 1.6
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 %prep
23 %setup -q
24
25 %patch1 -p1
26 # Permissions are not restored by patch(1):
27 chmod +x kernel/Linux/prepmod.in
28
29 %build
30 %{__aclocal}
31 %{__libtoolize} --force
32 %{__autoheader}
33 %{__automake} --add-missing
34 %{__autoconf}
35 patch configure <<CONFIGURE_SUBST_X_EOF
36 --- configure-orig      Wed Aug 20 12:10:37 2003
37 +++ configure   Wed Aug 20 13:22:51 2003
38 @@ -21590,6 +21590,11 @@
39    rm -f \$tmp/stdin
40    if test x"\$ac_file" != x-; then
41      mv \$tmp/out \$ac_file
42 +    for f in \$ac_file_inputs; do
43 +      if test -x \$f; then
44 +        chmod +x \$ac_file
45 +      fi
46 +    done
47    else
48      cat \$tmp/out
49      rm -f \$tmp/out
50 CONFIGURE_SUBST_X_EOF
51 %configure
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 %{__make} install DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 ln -s %{_bindir}/auto.sshfs /etc/auto.sshfs
63 ln -s %{_bindir}/auto.ftpfs /etc/auto.ftpfs
64 ln -s %{_bindir}/lufsd /sbin/mount.lufs
65 depmod -aq
66
67 %preun
68 rmmod 2>/dev/null lufs
69 rm -f %{_localstatedir}/lib/lufs/*.o
70
71 %postun
72 depmod -aq
73 rm -f /etc/auto.sshfs
74 rm -f /etc/auto.ftpfs
75 rm -f /sbin/mount.lufs
76
77 # We need 'devel' files for kernel module compilation of the standard package.
78 %files
79 %defattr(-,root,root)
80 %{_datadir}/lufs
81 %{_includedir}/lufs
82 %defattr(644,root,root)
83 /etc/lufsd.conf
84 %{_libdir}/lib*.la
85 %defattr(755,root,root)
86 %{_bindir}/lufsd
87 %{_bindir}/lussh
88 %{_bindir}/lufsmount
89 %{_bindir}/lufsmnt
90 %{_bindir}/auto.sshfs
91 %{_bindir}/auto.ftpfs
92 %{_libdir}/lib*.so*
93 %{_mandir}/man*/lufs*
94 %{_localstatedir}/lib/lufs
95 # These are SUID root...
96 %defattr(4755,root,root)
97 %{_bindir}/lufsmnt-bin
98 %{_bindir}/lufsumount
99
100 %changelog
101 * Wed Aug 20 2003 Jan Kratochvil <project-captive@jankratochvil.net>
102 - rewritten for AutoGen as a support subsystem of Captive project
103
104 * Sun Nov 24 2002 Dave Wilson <dave@...>
105 - initial version