Browse Source

Add .desktop file

Alois Mahdal 7 years ago
parent
commit
bf9f216632
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      vimb.spec.in

+ 11
- 0
vimb.spec.in View File

7
 License:    GPLv3
7
 License:    GPLv3
8
 Source0:    __APP_URLBASE__/archive/%{version}.tar.gz
8
 Source0:    __APP_URLBASE__/archive/%{version}.tar.gz
9
 
9
 
10
+BuildRequires: desktop-file-utils
10
 BuildRequires: make
11
 BuildRequires: make
11
 BuildRequires: webkitgtk-devel
12
 BuildRequires: webkitgtk-devel
12
 
13
 
28
 sed -i -e '1 s|#!/usr/bin/env bash|#!/bin/bash|' \
29
 sed -i -e '1 s|#!/usr/bin/env bash|#!/bin/bash|' \
29
     %{buildroot}/%{_datadir}/%{name}/examples/formfiller/formfiller
30
     %{buildroot}/%{_datadir}/%{name}/examples/formfiller/formfiller
30
 
31
 
32
+%post
33
+update-desktop-database &> /dev/null || :
34
+
35
+%postun
36
+update-desktop-database &> /dev/null || :
37
+
38
+%check
39
+desktop-file-validate %{buildroot}%{_datadir}/applications/vimb.desktop
40
+
31
 %files
41
 %files
32
 %{_bindir}/vimb
42
 %{_bindir}/vimb
33
 %{_mandir}/man1/vimb.1.gz
43
 %{_mandir}/man1/vimb.1.gz
34
 %{_datadir}/%{name}/examples/formfiller/formfiller
44
 %{_datadir}/%{name}/examples/formfiller/formfiller
35
 %{_datadir}/%{name}/examples/formfiller/scripts.js
45
 %{_datadir}/%{name}/examples/formfiller/scripts.js
46
+%{_datadir}/applications/vimb.desktop
36
 
47
 
37
 %changelog
48
 %changelog
38
 * __APP_DATE__ Alois Mahdal <netvor+vimb@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
49
 * __APP_DATE__ Alois Mahdal <netvor+vimb@vornet.cz> - __APP_VERSION__-__APP_RELEASE__