Summary: Filesystem in Userspace
Summary(pl): System plików w przestrzeni u¿ytkownika
Version: 2.2
-%define _rel 2
+%define _rel 3
Release: %{_rel}@%{_kernel_ver_str}
Epoch: 0
License: GPL v2
%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
%endif
BuildRequires: libtool
+BuildRequires: sed >= 4.0
%{?with_dist_kernel:%requires_releq_kernel_up}
Requires(post,postun): /sbin/depmod
%{?with_dist_kernel:Requires(postun): kernel}
Summary(pl): Biblioteki dzielone Systemu plików w przestrzeni u¿ytkownika
Group: Applications/System
Release: %{_rel}
+Obsoletes: fusermount
%description -n libfuse
Shared library for Filesytem in Userspace
%description -n libfuse-static -l pl
Statyczne biblioteki libfuse
-%package -n fusermount
-Summary: Filesytem in Userspace utilities
-Summary(pl): Narzêdzia obs³uguj±ce systemu plików w przestrzeni u¿ytkownika
-Group: Applications/System
-Release: %{_rel}
-
-%description -n fusermount
-Filesytem in Userspace utilities. It provide a secure method for non
-privileged users to create and mount their own filesystem
-implementations.
-
-%description -n fusermount -l pl
-Narzêdzia obs³uguj±ce systemu plików w przestrzeni u¿ytkownika.
-Dostarcza bezpieczn± metodê tworzenia i montowania w³asnych systemów
-plików dla nie uprzywilejowanych userów.
-
%prep
%setup -q -n fuse-%{version}
%patch0 -p1
#patch1 -p1
+sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_libdir}/fusermount,' lib/mount.c
%build
%{__libtoolize}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_pkgconfigdir}}
%if %{with userspace}
for DIR in include lib util; do
DESTDIR=$RPM_BUILD_ROOT
done
+mv $RPM_BUILD_ROOT%{_bindir}/fusermount $RPM_BUILD_ROOT%{_libdir}
install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
%endif
%endif
%if %{with userspace}
-%files -n fusermount
-%defattr(644,root,root,755)
-# suid needed? NO!
-%attr(755,root,root) %{_bindir}/fusermount
-# do it ! failed
-# %%attr(755,root,root) %{_sbindir}/mount.fuse
-
%files -n libfuse
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libfuse.so.*.*.*
+%attr(755,root,root) %{_libdir}/fusermount
%files -n libfuse-devel
%defattr(644,root,root,755)