[ksecrets/f16] don't rely on desktop-file-install feature, patch instead

Rex Dieter rdieter at fedoraproject.org
Mon Mar 19 01:41:34 UTC 2012


commit 3d2b65de3a8ef4bb51004f9fd1461dbf2fbd0369
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Sun Mar 18 20:43:01 2012 -0500

    don't rely on desktop-file-install feature, patch instead

 ksecrets-4.8.1-menu_nodisplay.patch |    8 ++++++++
 ksecrets.spec                       |   18 +++++++++---------
 2 files changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/ksecrets-4.8.1-menu_nodisplay.patch b/ksecrets-4.8.1-menu_nodisplay.patch
new file mode 100644
index 0000000..625a7bd
--- /dev/null
+++ b/ksecrets-4.8.1-menu_nodisplay.patch
@@ -0,0 +1,8 @@
+diff -up ksecrets-4.8.1/ksecrets/ksecrets.desktop.orig ksecrets-4.8.1/ksecrets/ksecrets.desktop
+--- ksecrets-4.8.1/ksecrets/ksecrets.desktop.orig	2012-02-29 16:58:00.000000000 -0600
++++ ksecrets-4.8.1/ksecrets/ksecrets.desktop	2012-03-18 20:41:11.177976660 -0500
+@@ -55,3 +55,4 @@ Comment[uk]=Засіб роботи зі
+ Comment[x-test]=xxSecret Service Handling Toolxx
+ Comment[zh_CN]=保密服务处理工具
+ Comment[zh_TW]=機密服務處理工具
++NoDisplay=true
diff --git a/ksecrets.spec b/ksecrets.spec
index eb6b98e..d1f23cb 100644
--- a/ksecrets.spec
+++ b/ksecrets.spec
@@ -14,6 +14,13 @@ URL:     https://projects.kde.org/projects/kde/kdeutils/ksecrets
 %endif
 Source0: ftp://ftp.kde.org/pub/kde/%{stable}/%{version}/src/%{name}-%{version}.tar.xz
 
+## upstreamable patches
+# mark ksecrets.desktop NoDisplay=true since
+# 1.  it lacks Categories and appears in Lost+Found
+# 2.  afaict it's not useful in the menu 
+#     (run without arguments does nothing but show --help)
+Patch50: ksecrets-4.8.1-menu_nodisplay.patch
+
 BuildRequires: desktop-file-utils
 BuildRequires: kdelibs4-devel >= %{version}
 # for PkgConfigGetVar and friends
@@ -37,6 +44,8 @@ Requires: kdelibs4-devel
 %prep
 %setup -q 
 
+%patch50 -p1 -b .menu_nodisplay
+
 
 %build
 mkdir -p %{_target_platform}
@@ -50,15 +59,6 @@ make %{?_smp_mflags} -C %{_target_platform}
 %install
 make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 
-# mark NoDisplay=true since
-# 1.  it lacks Categories and appears in Lost+Found
-# 2.  afaict it's not useful in the menu 
-#     (run without arguments does nothing but show --help) 
-desktop-file-install \
-  --dir=%{buildroot}%{_kde4_datadir}/applications/kde4 \
-  --set-key=NoDisplay --set-value=true \
-  %{buildroot}%{_kde4_datadir}/applications/kde4/ksecrets.desktop
-
 
 %check
 desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/ksecrets.desktop


More information about the scm-commits mailing list