1 %include /usr/lib/rpm/macros.perl
2 Summary: VFolders Menu Generator
3 Summary(pl.UTF-8): Generator Menu opartego na VFolders
8 Group: X11/Window Managers/Tools
9 Vendor: GoTaR <gotar@pld-linux.org>
10 Source0: %{name}-%{version}.tar.bz2
11 # Source0-md5: f73aaacd03bd9b8fe097cac5011f26d9
12 Patch0: %{name}-ignore-OnlyUnallocated.patch
13 Patch1: %{name}-XDG_MENU_PREFIX.patch
14 URL: http://vfmg.sourceforge.net/
15 BuildRequires: rpm-perlprov
16 Requires(post,preun): /sbin/chkconfig
19 Conflicts: WindowMaker < 0.92.0-0.4
20 Conflicts: enlightenment < 0.16.7.2-2
21 Conflicts: icewm < 2:1.2.25-0.2
22 Conflicts: metisse < 0.3.5-4
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 VFolders Menu Generator. Generates window managers menus (for now only
28 icewm, blackbox, window maker (both old and new style), xfce4, aewm,
29 afterstep, fvwm2, olvwm, qvwm, enlightenment and fluxbox are
30 supported, next coming soon) from desktop files conforming the
31 freedesktop.org menu specification.
33 %description -l pl.UTF-8
34 Generator Menu opartego na VFolders. Generuje menu zarządców okien
35 (jak dotąd wspierane są tylko icewm, blackbox, window maker (oba
36 style, stary oraz nowy), xfce4, aewm, afterstep, fvwm2, olvwm, qvwm,
37 enlightenment i fluxbox, następne wkrótce) z plików desktop
38 wypełniających specyfikację menu z freedesktop.org.
41 Summary: Crontab file for VFolders Menu Generator
42 Summary(pl.UTF-8): Plik crontaba dla generatora menu opartego na vfolders
43 Group: X11/Window Managers/Tools
47 This package contains a configuration file that enables window manager
48 menu generation to be performed regularily at given time.
50 %description cron -l pl.UTF-8
51 Pakiet ten zawiera plik konfiguracyjny umożliwiający regularne
52 generowanie menu dla zarządców okien o określonych godzinach.
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_datadir}/zsh/site-functions} \
62 $RPM_BUILD_ROOT/etc/{cron.d,rc.d/init.d,sysconfig}
64 install vfmg $RPM_BUILD_ROOT%{_bindir}
65 install vfmgrc $RPM_BUILD_ROOT%{_sysconfdir}
66 install vfmg-zsh $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/_vfmg
67 install vfmg.init $RPM_BUILD_ROOT/etc/rc.d/init.d/vfmg
68 install vfmg.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/vfmg
69 install vfmg.cron $RPM_BUILD_ROOT/etc/cron.d/vfmg
72 rm -rf $RPM_BUILD_ROOT
75 /sbin/chkconfig --add vfmg
78 if [ "$1" = "0" ]; then
79 /sbin/chkconfig --del vfmg
83 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_bindir}/*
86 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vfmgrc
87 %attr(754,root,root) /etc/rc.d/init.d/vfmg
88 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vfmg
89 %{_datadir}/zsh/site-functions/*
92 %defattr(644,root,root,755)
93 %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vfmg