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