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