3 %bcond_without dist_kernel # without distribution kernel
4 %bcond_without kernel # don't build kernel modules
5 %bcond_without smp # without smp packages
6 %bcond_without userspace # don't build userspace tools
7 %bcond_with verbose # verbose build (V=1)
10 Summary: Filesystem in Userspace
11 Summary(pl): System plików w przestrzeni u¿ytkownika
14 Release: %{_rel}@%{_kernel_ver_str}
18 Source0: http://dl.sourceforge.net/fuse/fuse-%{version}.tar.gz
19 # Source0-md5: abdcb47a202d84d844ffbb58dcc7ac8b
20 # Source0-size: 126361
21 Patch0: %{name}-configure.in.patch
22 Patch1: %{name}-perm.patch
23 URL: http://fuse.sourceforge.net/
24 BuildRequires: autoconf
25 BuildRequires: automake
27 %{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
29 %{?with_dist_kernel:%requires_releq_kernel_up}
30 Requires(post,postun): /sbin/depmod
31 %{?with_dist_kernel:Requires(postun): kernel}
32 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 FUSE (Filesystem in Userspace) is a simple interface for userspace
36 programs to export a virtual filesystem to the Linux kernel. FUSE also
37 aims to provide a secure method for non privileged users to create and
38 mount their own filesystem implementations.
41 FUSE stanowi prosty interfejs dla programów dzia³aj±cych w przestrzeni
42 u¿ytkownika eksportuj±cy wirtualny system plików do j±dra Linuksa.
43 FUSE ma równie¿ na celu udostêpnienie bezpiecznej metody tworzenia i
44 montowania w³asnych implementacji systemów plików przez zwyk³ych
45 (nieuprzywilejowanych) u¿ytkowników.
47 %package -n kernel-smp-misc-fuse
48 Summary: Filesystem in Userspace
49 Summary(pl): System plików w przestrzeni u¿ytkownika
50 Release: %{_rel}@%{_kernel_ver_str}
53 Provides: kernel-misc-fuse
54 %{?with_dist_kernel:%requires_releq_kernel_smp}
55 Requires(post,postun): /sbin/depmod
56 %{?with_dist_kernel:Requires(postun): kernel-smp}
58 %description -n kernel-smp-misc-fuse
59 FUSE (Filesystem in Userspace) is a simple interface for userspace
60 programs to export a virtual filesystem to the Linux kernel. FUSE also
61 aims to provide a secure method for non privileged users to create and
62 mount their own filesystem implementations.
64 %description -n kernel-smp-misc-fuse -l pl
65 FUSE stanowi prosty interfejs dla programów dzia³aj±cych w przestrzeni
66 u¿ytkownika eksportuj±cy wirtualny system plików do j±dra Linuksa.
67 FUSE ma równie¿ na celu udostêpnienie bezpiecznej metody tworzenia i
68 montowania w³asnych implementacji systemów plików przez zwyk³ych
69 (nieuprzywilejowanych) u¿ytkowników.
72 Summary: Shared library for Filesytem in Userspace
73 Summary(pl): Biblioteki dzielone Systemu plików w przestrzeni u¿ytkownika
74 Group: Applications/System
77 %description -n libfuse
78 Shared library for Filesytem in Userspace
80 %description -n libfuse -l pl
81 Biblioteki dzielone Systemu plików w przestrzeni u¿ytkownika
83 %package -n libfuse-devel
84 Summary: Filesytem in Userspace - Development header fiels and libraries
85 Summary(pl): Systemu plików w przestrzeni u¿ytkownika - Biblioteki dzielone
86 Group: Development/Libraries
88 Requires: libfuse = %{epoch}:%{version}-%{_rel}
90 %description -n libfuse-devel
91 Libfuse library header files.
93 %description -n libfuse-devel -l pl
94 Libfuse biblioteki nag³ówkowe dla programistów.
96 %package -n libfuse-static
97 Summary: Filesytem in Userspace - static libraries
98 Summary(pl): Systemu plików w przestrzeni u¿ytkownika - Biblioteki statyczne
99 Group: Development/Libraries
101 Requires: libfuse-devel = %{epoch}:%{version}-%{_rel}
103 %description -n libfuse-static
104 Static libfuse libraries.
106 %description -n libfuse-static -l pl
107 Statyczne biblioteki libfuse
109 %package -n fusermount
110 Summary: Filesytem in Userspace utilities
111 Summary(pl): Narzêdzia obs³uguj±ce systemu plików w przestrzeni u¿ytkownika
112 Group: Applications/System
115 %description -n fusermount
116 Filesytem in Userspace utilities. It provide a secure method for non
117 privileged users to create and mount their own filesystem
120 %description -n fusermount -l pl
121 Narzêdzia obs³uguj±ce systemu plików w przestrzeni u¿ytkownika.
122 Dostarcza bezpieczn± metodê tworzenia i montowania w³asnych systemów
123 plików dla nie uprzywilejowanych userów.
126 %setup -q -n fuse-%{version}
137 --with-kernel=%{_kernelsrcdir}
141 for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
142 if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
146 install -d include/{linux,config}
147 ln -sf %{_kernelsrcdir}/config-$cfg .config
148 ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
149 ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
150 touch include/config/MARKER
151 %{__make} -C %{_kernelsrcdir} clean \
152 RCS_FIND_IGNORE="-name '*.ko' -o" \
155 %{__make} -C %{_kernelsrcdir} modules \
156 EXTRA_CFLAGS='-I../include -DFUSE_VERSION=\"1.4\"' \
157 RCS_FIND_IGNORE="-name '*.ko' -o" \
158 CC="%{__cc}" CPP="%{__cpp}" \
162 mv fuse.ko fuse-$cfg.ko
167 %if %{with userspace}
169 for f in fuse.c fuse_mt.c helper.c mount.c; do
170 libtool --mode=compile --tag=CC %{__cc} -c -I. -I../include -DHAVE_CONFIG_H $f
172 libtool --mode=link %{__cc} -o libfuse.la fuse.lo fuse_mt.lo helper.lo mount.lo -rpath %{_libdir}
179 rm -rf $RPM_BUILD_ROOT
181 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
183 %if %{with userspace}
185 install fusermount $RPM_BUILD_ROOT%{_bindir}/
187 install include/fuse.h $RPM_BUILD_ROOT%{_includedir}
189 libtool --mode=install install libfuse.la $RPM_BUILD_ROOT%{_libdir}/libfuse.la
195 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/kernel/fs
196 install fuse-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
197 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/fs/fuse.ko
198 %if %{with smp} && %{with dist_kernel}
199 install fuse-smp.ko \
200 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/fs/fuse.ko
205 rm -rf $RPM_BUILD_ROOT
208 %depmod %{_kernel_ver}
211 %depmod %{_kernel_ver}
213 %post -n kernel-smp-misc-fuse
214 %depmod %{_kernel_ver}smp
216 %postun -n kernel-smp-misc-fuse
217 %depmod %{_kernel_ver}smp
221 %defattr(644,root,root,755)
222 %doc README NEWS ChangeLog AUTHORS
224 /lib/modules/%{_kernel_ver}/kernel/fs/fuse.ko*
226 %if %{with smp} && %{with dist_kernel}
227 %files -n kernel-smp-misc-fuse
228 %defattr(644,root,root,755)
229 %doc README NEWS ChangeLog AUTHORS
231 /lib/modules/%{_kernel_ver}smp/kernel/fs/fuse.ko*
235 %if %{with userspace}
237 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_bindir}/fusermount
241 # %%attr(755,root,root) %{_sbindir}/mount.fuse
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_libdir}/libfuse.so.*.*.*
247 %files -n libfuse-devel
248 %defattr(644,root,root,755)
249 %{_includedir}/fuse.h
250 %{_libdir}/libfuse.la
251 %attr(755,root,root) %{_libdir}/libfuse.so
253 %files -n libfuse-static
254 %defattr(644,root,root,755)