Summary(pl): Zarz±dca pulpitu dla ¶rodowiska XFce
Name: xfdesktop
Version: 4.0.6
-Release: 1
+Release: 2
License: GPL
Group: X11/Applications
#Source0: ftp://ftp.berlios.de/pub/xfce-goodies/%{version}/%{name}-%{version}.tar.gz
Requires: libxfce4mcs >= %{version}
Requires: libxfcegui4 >= %{version}
Requires: libxml2 >= 2.4.0
-Requires: vfmg > 0.9.16-2
+Requires: vfmg >= 0.9.16-2
Requires: xfce-mcs-manager >= %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
rm -rf $RPM_BUILD_ROOT
%post
-vfmg -i -f -x -c -u -m xfce4 > %{_sysconfdir}/xfce4/menu2.xml 2>/dev/null
+# generate initial menu
+[ -f /etc/sysconfig/vfmg ] && . /etc/sysconfig/vfmg
+[ $XFCE4 = yes -o $XFCE4 = 1 -o ! -f %{_sysconfdir}/xfce4/menu2.xml ] && \
+ vfmg -i -f -x -c -u -m xfce4 > %{_sysconfdir}/xfce4/menu2.xml 2>/dev/null ||:
%files -f %{name}.lang
%defattr(644,root,root,755)