]>
Commit | Line | Data |
---|---|---|
765e72d9 | 1 | Summary: A couple of command line utilities for working with desktop entries |
4de60ac9 | 2 | Summary(pl.UTF-8): Narzędzia linii poleceń do pracy z plikami desktop |
765e72d9 | 3 | Name: desktop-file-utils |
eeddde61 | 4 | Version: 0.26 |
893ca13d | 5 | Release: 1 |
73787816 | 6 | License: GPL v2+ |
765e72d9 | 7 | Group: Applications |
893ca13d | 8 | Source0: https://www.freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz |
eeddde61 | 9 | # Source0-md5: 29739e005f5887cf41639b8450f3c23f |
893ca13d | 10 | URL: https://www.freedesktop.org/wiki/Software/desktop-file-utils |
e90f4e1b | 11 | BuildRequires: glib2-devel >= 1:2.8.0 |
eeddde61 | 12 | BuildRequires: meson >= 0.49.0 |
6cce6431 | 13 | BuildRequires: ninja >= 1.5 |
e576cb68 | 14 | BuildRequires: pkgconfig |
eeddde61 | 15 | BuildRequires: rpmbuild(macros) >= 1.736 |
b9068221 ŁK |
16 | BuildRequires: tar >= 1:1.22 |
17 | BuildRequires: xz | |
4de60ac9 | 18 | Requires: glib2 >= 1:2.8.0 |
765e72d9 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | desktop-file-utils contains a couple of command line utilities for | |
23 | working with desktop entries. | |
24 | ||
437866bb | 25 | %description -l pl.UTF-8 |
4de60ac9 JB |
26 | Pakiet desktop-file-utils zawiera kilka narzędzi uruchamianych z linii |
27 | poleceń, służących do pracy z plikami desktop. | |
765e72d9 | 28 | |
3ea74b07 JB |
29 | %package -n emacs-desktop-entry-mode |
30 | Summary: Desktop entry mode for Emacs | |
31 | Summary(pl.UTF-8): Tryb plików desktop dla Emacsa | |
32 | Group: Applications/Editors | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | Requires: emacs | |
6cce6431 | 35 | %if "%{_rpmversion}" >= "4.6" |
3ea74b07 JB |
36 | BuildArch: noarch |
37 | %endif | |
38 | ||
39 | %description -n emacs-desktop-entry-mode | |
40 | Desktop entry mode for Emacs. | |
41 | ||
42 | %description -n emacs-desktop-entry-mode -l pl.UTF-8 | |
43 | Tryb plików desktop dla Emacsa. | |
44 | ||
765e72d9 | 45 | %prep |
5d9b2ef0 | 46 | %setup -q |
765e72d9 | 47 | |
48 | %build | |
eeddde61 | 49 | %meson build |
6cce6431 | 50 | |
eeddde61 | 51 | %ninja_build -C build |
765e72d9 | 52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
73787816 | 55 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
765e72d9 | 56 | |
eeddde61 | 57 | %ninja_install -C build |
765e72d9 | 58 | |
f7d742d5 ER |
59 | touch $RPM_BUILD_ROOT%{_desktopdir}/mimeinfo.cache |
60 | ||
765e72d9 | 61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
4de60ac9 | 66 | %doc AUTHORS ChangeLog NEWS README |
b9068221 | 67 | %attr(755,root,root) %{_bindir}/desktop-file-edit |
73787816 MB |
68 | %attr(755,root,root) %{_bindir}/desktop-file-install |
69 | %attr(755,root,root) %{_bindir}/desktop-file-validate | |
70 | %attr(755,root,root) %{_bindir}/update-desktop-database | |
b9068221 | 71 | %{_mandir}/man1/desktop-file-edit.1* |
4de60ac9 JB |
72 | %{_mandir}/man1/desktop-file-install.1* |
73 | %{_mandir}/man1/desktop-file-validate.1* | |
74 | %{_mandir}/man1/update-desktop-database.1* | |
f7d742d5 | 75 | %ghost %{_desktopdir}/mimeinfo.cache |
3ea74b07 JB |
76 | |
77 | %files -n emacs-desktop-entry-mode | |
78 | %defattr(644,root,root,755) | |
79 | %{_datadir}/emacs/site-lisp/desktop-entry-mode.el |