6 %bcond_without dist_kernel # without distribution kernel
7 %bcond_without kernel # don't build kernel modules
8 %bcond_without smp # without smp packages
9 %bcond_without userspace # don't build userspace tools
10 %bcond_with verbose # verbose build (V=1)
12 Name: kernel-misc-fuse
13 Summary: Filesystem in Userspace
14 Summary(pl): System plików w przestrzeni u¿ytkownika
17 Release: %{_rel}@%{_kernel_ver_str}
21 Source0: http://dl.sourceforge.net/fuse/fuse-%{version}.tar.gz
22 # Source0-md5: 0bee98df5b2a29841f75fc188975eabc
24 Patch0: %{name}-configure.in.patch
25 URL: http://fuse.sourceforge.net/
26 BuildRequires: autoconf
27 BuildRequires: automake
29 %{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
31 BuildRequires: libtool
32 BuildRequires: sed >= 4.0
33 %{?with_dist_kernel:%requires_releq_kernel_up}
34 Requires(post,postun): /sbin/depmod
35 %{?with_dist_kernel:Requires(postun): kernel}
36 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 FUSE (Filesystem in Userspace) is a simple interface for userspace
40 programs to export a virtual filesystem to the Linux kernel. FUSE also
41 aims to provide a secure method for non privileged users to create and
42 mount their own filesystem implementations.
45 FUSE stanowi prosty interfejs dla programów dzia³aj±cych w przestrzeni
46 u¿ytkownika eksportuj±cy wirtualny system plików do j±dra Linuksa.
47 FUSE ma równie¿ na celu udostêpnienie bezpiecznej metody tworzenia i
48 montowania w³asnych implementacji systemów plików przez zwyk³ych
49 (nieuprzywilejowanych) u¿ytkowników.
51 %package -n kernel-smp-misc-fuse
52 Summary: Filesystem in Userspace
53 Summary(pl): System plików w przestrzeni u¿ytkownika
54 Release: %{_rel}@%{_kernel_ver_str}
57 Provides: kernel-misc-fuse
58 %{?with_dist_kernel:%requires_releq_kernel_smp}
59 Requires(post,postun): /sbin/depmod
60 %{?with_dist_kernel:Requires(postun): kernel-smp}
62 %description -n kernel-smp-misc-fuse
63 FUSE (Filesystem in Userspace) is a simple interface for userspace
64 programs to export a virtual filesystem to the Linux kernel. FUSE also
65 aims to provide a secure method for non privileged users to create and
66 mount their own filesystem implementations.
68 %description -n kernel-smp-misc-fuse -l pl
69 FUSE stanowi prosty interfejs dla programów dzia³aj±cych w przestrzeni
70 u¿ytkownika eksportuj±cy wirtualny system plików do j±dra Linuksa.
71 FUSE ma równie¿ na celu udostêpnienie bezpiecznej metody tworzenia i
72 montowania w³asnych implementacji systemów plików przez zwyk³ych
73 (nieuprzywilejowanych) u¿ytkowników.
76 Summary: Shared library for Filesytem in Userspace
77 Summary(pl): Biblioteki dzielone Systemu plików w przestrzeni u¿ytkownika
78 Group: Applications/System
82 %description -n libfuse
83 Shared library for Filesytem in Userspace
85 %description -n libfuse -l pl
86 Biblioteki dzielone Systemu plików w przestrzeni u¿ytkownika
88 %package -n libfuse-devel
89 Summary: Filesytem in Userspace - Development header fiels and libraries
90 Summary(pl): Systemu plików w przestrzeni u¿ytkownika - Biblioteki dzielone
91 Group: Development/Libraries
93 Requires: libfuse = %{epoch}:%{version}-%{_rel}
95 %description -n libfuse-devel
96 Libfuse library header files.
98 %description -n libfuse-devel -l pl
99 Libfuse biblioteki nag³ówkowe dla programistów.
101 %package -n libfuse-static
102 Summary: Filesytem in Userspace - static libraries
103 Summary(pl): Systemu plików w przestrzeni u¿ytkownika - Biblioteki statyczne
104 Group: Development/Libraries
106 Requires: libfuse-devel = %{epoch}:%{version}-%{_rel}
108 %description -n libfuse-static
109 Static libfuse libraries.
111 %description -n libfuse-static -l pl
112 Statyczne biblioteki libfuse
115 %setup -q -n fuse-%{version}
117 sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c
128 --with-kernel=%{_kernelsrcdir}
133 for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
134 if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
138 install -d include/{linux,config}
139 ln -sf %{_kernelsrcdir}/config-$cfg .config
140 ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
141 ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
142 %if %{without dist_kernel}
143 [ ! -x %{_kernelsrcdir}/scripts/kallsyms ] || ln -sf %{_kernelsrcdir}/scripts
145 touch include/config/MARKER
146 %{__make} -C %{_kernelsrcdir} clean \
147 RCS_FIND_IGNORE="-name '*.ko' -o" \
150 %{__make} -C %{_kernelsrcdir} modules \
151 EXTRA_CFLAGS='-I../include -DFUSE_VERSION=\"2.2\"' \
152 RCS_FIND_IGNORE="-name '*.ko' -o" \
153 CC="%{__cc}" CPP="%{__cpp}" \
157 mv fuse.ko fuse-$cfg.ko
162 %if %{with userspace}
163 cp kernel/fuse_kernel.h include/
164 for DIR in include lib util; do
170 rm -rf $RPM_BUILD_ROOT
171 install -d $RPM_BUILD_ROOT{%{_pkgconfigdir},/etc}
173 %if %{with userspace}
174 for DIR in include lib util; do
175 %{__make} -C $DIR install \
176 DESTDIR=$RPM_BUILD_ROOT
179 install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
180 install %{SOURCE1} $RPM_BUILD_ROOT/etc
185 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/kernel/fs
186 install fuse-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
187 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/fs/fuse.ko
188 %if %{with smp} && %{with dist_kernel}
189 install fuse-smp.ko \
190 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/fs/fuse.ko
195 rm -rf $RPM_BUILD_ROOT
198 %depmod %{_kernel_ver}
201 %depmod %{_kernel_ver}
203 %post -n kernel-smp-misc-fuse
204 %depmod %{_kernel_ver}smp
206 %postun -n kernel-smp-misc-fuse
207 %depmod %{_kernel_ver}smp
209 %post -n libfuse -p /sbin/ldconfig
210 %postun -n libfuse -p /sbin/ldconfig
214 %defattr(644,root,root,755)
215 %doc README NEWS ChangeLog AUTHORS doc/*
216 /lib/modules/%{_kernel_ver}/kernel/fs/fuse.ko*
218 %if %{with smp} && %{with dist_kernel}
219 %files -n kernel-smp-misc-fuse
220 %defattr(644,root,root,755)
221 %doc README NEWS ChangeLog AUTHORS doc/*
222 /lib/modules/%{_kernel_ver}smp/kernel/fs/fuse.ko*
226 %if %{with userspace}
228 %defattr(644,root,root,755)
229 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/fuse.conf
230 %attr(755,root,root) %{_libdir}/libfuse.so.*.*.*
231 %attr(755,root,root) %{_bindir}/fusermount
233 %files -n libfuse-devel
234 %defattr(644,root,root,755)
236 %{_libdir}/libfuse.la
237 %attr(755,root,root) %{_libdir}/libfuse.so
238 %{_pkgconfigdir}/fuse.pc
240 %files -n libfuse-static
241 %defattr(644,root,root,755)