%clean
rm -rf $RPM_BUILD_ROOT
+%pre
+
+%if ! %{static}
+%pre fuse
+%endif
+%if %{static}
+/usr/sbin/groupadd -r fuse 2>/dev/null || \
+ /usr/sbin/groupadd fuse 2>/dev/null || \
+ true
+%endif
+
%post
/sbin/ldconfig
/usr/sbin/groupadd -r captive 2>/dev/null || \
%if ! %{static}
%post fuse
%endif
-%if %{static}
-/usr/sbin/groupadd -r fuse 2>/dev/null || \
- /usr/sbin/groupadd fuse 2>/dev/null || \
- true
-%endif
/usr/lib/lsb/install_initd @PACKAGE@ 2>/dev/null || \
/sbin/chkconfig --add @PACKAGE@
touch %{_var}/lock/subsys/@PACKAGE@
/sbin/mount.@PACKAGE@-*
%attr(644,root,root) %{_mandir}/man?/mount.@PACKAGE@.*
%if %{static}
-%{_libexecdir}/@PACKAGE@-fusermount
+%attr(4754,root,fuse) %{_libexecdir}/@PACKAGE@-fusermount
%endif
%if ! %{static}