]>
Commit | Line | Data |
---|---|---|
1 | Summary: Applnk - base directories tree used for storing desktop/kdelnk menu entries | |
2 | Summary(pl.UTF-8): Applnk - bazowa struktura katalogów z opisami do plików desktop/kdelnk | |
3 | Name: applnk | |
4 | Version: 2.2.0 | |
5 | Release: 6 | |
6 | License: GPL | |
7 | Group: Base | |
8 | Source0: ftp://ep09.pld-linux.org/software/applnk/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 0af5401b44bb2c91c771da76c627b4f5 | |
10 | Patch0: xfce-4.10.patch | |
11 | Provides: xdg-menus | |
12 | Conflicts: xfdesktop < 4.10.0 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _xdgconfdir /etc/xdg | |
17 | %define _xdgdatadir %{_datadir}/desktop-directories | |
18 | ||
19 | %description | |
20 | Base directories tree used for storing desktop/kdelnk menu entries. | |
21 | Package also contains full description of this hierarchy (descriptions | |
22 | with translations and menu order). | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Bazowa struktura katalogów używana do przechowywania plików | |
26 | desktop/kdelnk opisu elementów menu ze spisem aplikacji. Pakiet | |
27 | zawiera pełny opis hierarchii katalogów (w plikach .directory) wraz z | |
28 | tłumaczeniami tych opisów, a także opis sposobu uszeregowania | |
29 | grup/elementów katalogów. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | %patch0 -p1 | |
34 | ||
35 | %build | |
36 | %configure | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT%{_xdgconfdir}/menus/applications-merged | |
41 | ||
42 | %{__make} install \ | |
43 | DESTDIR=$RPM_BUILD_ROOT | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %post | |
49 | %banner %{name} -e << EOF | |
50 | Use of applnk menu is now controlled via XDG_MENU_PREFIX | |
51 | environment variable. If you want to disable it, then edit | |
52 | /etc/env.d/XDG_MENU_PREFIX file. | |
53 | ||
54 | If your menus just disappeared you need to re-login! | |
55 | ||
56 | KDE users may have to logout, remove /{var,}/tmp/kdecache-* | |
57 | directories before logging in and run kbuildsycoca4. | |
58 | EOF | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc ChangeLog NEWS | |
63 | %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/* | |
64 | %dir %{_xdgconfdir}/menus | |
65 | %dir %{_xdgconfdir}/menus/applications-merged | |
66 | %{_xdgconfdir}/menus/*.menu | |
67 | %{_xdgdatadir} | |
68 | %{_pixmapsdir}/* |