]> git.pld-linux.org Git - packages/vfmg.git/blob - vfmg.spec
- more fvwm2 support, added cron subpackage, rel. 2
[packages/vfmg.git] / vfmg.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        VFolders Menu Generator
3 Summary(pl):    Generator Menu opartego na VFolders
4 Name:           vfmg
5 Version:        0.9.18
6 Release:        2
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:  0175143d8bd08a2a82bde106d191d418
12 Source1:        %{name}.cron
13 Patch0:         %{name}-fvwm2.patch
14 URL:            http://vfmg.sourceforge.net/
15 BuildRequires:  rpm-perlprov
16 Requires:       applnk >= 1.9.0
17 Obsoletes:      wmconfig
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 VFolders Menu Generator. Generates window managers menus (for now only
23 icewm, blackbox, window maker (both old and new style), xfce4, aewm,
24 afterstep, fvwm2, olvwm, qvwm, enlightenment and fluxbox are
25 supported, next coming soon) from desktop files conforming the
26 freedesktop.org menu specification.
27
28 %description -l pl
29 Generator Menu opartego na VFolders. Generuje menu zarz±dców okien
30 (jak dot±d wspierane s± tylko icewm, blackbox, window maker (oba
31 style, stary oraz nowy), xfce4, aewm, afterstep, fvwm2, olvwm, qvwm,
32 enlightenment i fluxbox, nastêpne wkrótce) z plików desktop
33 wype³niaj±cych specyfikacjê menu z freedesktop.org.
34
35 %package cron
36 Summary:        Crontab file for VFolders Menu Generator
37 Summary(pl):    Plik crontaba dla generatora menu opartego na vfolders
38 Name:           vfmg
39 Group:          X11/Window Managers/Tools
40 Requires:       crondaemon
41
42 %description cron
43 This package contains a configuration file that enables window manager
44 menu generation to be performed regularily at given time.
45
46 %description cron -l pl
47 Pakiet ten zawiera plik konfiguracyjny umozliwiajacy regularne
48 generowanie menu dla zarz±dców okien o okreslonych godzinach.
49
50 %prep
51 %setup -q
52 %patch0 -p1
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/zsh/site-functions,/etc/{rc.d/init.d,sysconfig}}
57
58 install vfmg $RPM_BUILD_ROOT%{_bindir}
59 install vfmg-zsh $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/_vfmg
60 install vfmg.init $RPM_BUILD_ROOT/etc/rc.d/init.d/vfmg
61 install vfmg.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/vfmg
62 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %post
68 /sbin/chkconfig --add vfmg
69
70 %preun
71 if [ "$1" = "0" ]; then
72         /sbin/chkconfig --del vfmg
73 fi
74
75 %files
76 %defattr(644,root,root,755)
77 %doc README vfmg.html
78 %attr(755,root,root) %{_bindir}/*
79 %attr(754,root,root) /etc/rc.d/init.d/vfmg
80 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/vfmg
81 %{_datadir}/zsh/site-functions/*
82
83 %files cron
84 %defattr(644,root,root,755)
85 %config(noreplace) %verify(not size mtime md5) /etc/cron.d/vfmg
This page took 0.253784 seconds and 4 git commands to generate.