File: output.p

package info (click to toggle)
spectacle 0.22-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,068 kB
  • sloc: python: 2,574; sh: 84; makefile: 66
file content (28 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- output.orig.spec	2010-05-16 18:59:32.000000000 +0800
+++ output.spec	2010-05-16 18:59:32.000000000 +0800
@@ -14,6 +14,7 @@ License:    BSD
 URL:        http://www.testpkg.org/
 Source0:    http://www.testpkg.org/testpkg-%{version}.tar.gz
 Source100:  testpkg.yaml
+BuildRequires:  desktop-file-utils
 
 
 %description
@@ -53,6 +54,9 @@ rm -rf %{buildroot}
 
 # >> install post
 # << install post
+desktop-file-install --delete-original       \
+  --dir %{buildroot}%{_datadir}/applications             \
+   %{buildroot}%{_datadir}/applications/*.desktop
 
 
 
@@ -64,6 +68,7 @@ rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
+%{_datadir}/applications/*.desktop
 # >> files
 # << files