|
@@ -7,6 +7,7 @@ URL: https://github.com/fanglingsu/vimb
|
7
|
7
|
License: GPLv3
|
8
|
8
|
Source0: __APP_URLBASE__/archive/%{version}.tar.gz
|
9
|
9
|
|
|
10
|
+BuildRequires: desktop-file-utils
|
10
|
11
|
BuildRequires: make
|
11
|
12
|
BuildRequires: webkitgtk-devel
|
12
|
13
|
|
|
@@ -28,11 +29,21 @@ make install DESTDIR=%{buildroot} PREFIX=/usr
|
28
|
29
|
sed -i -e '1 s|#!/usr/bin/env bash|#!/bin/bash|' \
|
29
|
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
|
41
|
%files
|
32
|
42
|
%{_bindir}/vimb
|
33
|
43
|
%{_mandir}/man1/vimb.1.gz
|
34
|
44
|
%{_datadir}/%{name}/examples/formfiller/formfiller
|
35
|
45
|
%{_datadir}/%{name}/examples/formfiller/scripts.js
|
|
46
|
+%{_datadir}/applications/vimb.desktop
|
36
|
47
|
|
37
|
48
|
%changelog
|
38
|
49
|
* __APP_DATE__ Alois Mahdal <netvor+vimb@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
|