]> git.pld-linux.org Git - packages/vfmg.git/blob - vfmg.spec
- rel 6
[packages/vfmg.git] / vfmg.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        VFolders Menu Generator
3 Summary(pl.UTF-8):      Generator Menu opartego na VFolders
4 Name:           vfmg
5 Version:        0.9.95
6 Release:        6
7 License:        GPL
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
17 Requires:       xdg-menus
18 Obsoletes:      wmconfig
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
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
32
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.
39
40 %package cron
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
44 Requires:       crondaemon
45
46 %description cron
47 This package contains a configuration file that enables window manager
48 menu generation to be performed regularily at given time.
49
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.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58
59 %install
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}
63
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
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post
75 /sbin/chkconfig --add vfmg
76
77 %preun
78 if [ "$1" = "0" ]; then
79         /sbin/chkconfig --del vfmg
80 fi
81
82 %files
83 %defattr(644,root,root,755)
84 %doc README vfmg.html
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/*
90
91 %files cron
92 %defattr(644,root,root,755)
93 %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vfmg
This page took 0.095203 seconds and 4 git commands to generate.