- ignore menu for unallocated apps (else we get a submenu with everything in it)
Changed files:
vfmg-ignore-OnlyUnallocated.patch -> 1.1
vfmg.spec -> 1.64
--- /dev/null
+diff -ur vfmg-0.9.95/vfmg vfmg-0.9.95.new/vfmg
+--- vfmg-0.9.95/vfmg 2006-04-19 02:02:33.000000000 +0200
++++ vfmg-0.9.95.new/vfmg 2010-05-17 13:23:39.165864707 +0200
+@@ -664,8 +664,12 @@
+ $#menu++;
+ my $mno = $#menu;
+ # $dirnum = $desknum + $mno;
++ my $ignore = 0;
+
+ while ( (my $tag = gettag()) ne "/Menu" ) {
++ if($tag eq 'OnlyUnallocated/') {
++ $ignore = 1;
++ }
+ if($tag eq 'Include') {
+ include($mno);
+ next;
+@@ -766,7 +770,9 @@
+ }
+ warn "Omitted tag: $tag\n" if $o_tags;
+ }
+-
++
++ return if ($ignore);
++
+ # if there was no <Directory>
+ $desktop[$dirnum] = {
+ file => $name,
Summary(pl.UTF-8): Generator Menu opartego na VFolders
Name: vfmg
Version: 0.9.95
-Release: 2
+Release: 3
License: GPL
Group: X11/Window Managers/Tools
Vendor: GoTaR <gotar@pld-linux.org>
Source0: %{name}-%{version}.tar.bz2
# Source0-md5: f73aaacd03bd9b8fe097cac5011f26d9
+Patch0: %{name}-ignore-OnlyUnallocated.patch
URL: http://vfmg.sourceforge.net/
BuildRequires: rpm-perlprov
Requires(post,preun): /sbin/chkconfig
%prep
%setup -q
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT