[kde-runtime] %check: desktop-file-validate %doc COPYING COPYING.LIB

Rex Dieter rdieter at fedoraproject.org
Fri Jan 13 15:14:53 UTC 2012


commit ea058748fbf4c87ef8597c41a31127afd8c49641
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Fri Jan 13 09:14:44 2012 -0600

    %check: desktop-file-validate
    %doc COPYING COPYING.LIB

 kde-runtime.spec |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/kde-runtime.spec b/kde-runtime.spec
index 7d0a629..bfeb558 100644
--- a/kde-runtime.spec
+++ b/kde-runtime.spec
@@ -11,10 +11,10 @@
 Name:    kde-runtime
 Summary: KDE Runtime
 Version: 4.7.97
-Release: 10%{?dist}
+Release: 11%{?dist}
 
 # http://techbase.kde.org/Policies/Licensing_Policy
-License: LGPLv2+
+License: LGPLv2+ and GPLv2+
 URL:     http://www.kde.org/
 Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/kde-runtime-%{version}.tar.bz2
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -72,6 +72,7 @@ Requires: oxygen-icon-theme >= %{version}
 BuildRequires: bzip2-devel
 BuildRequires: chrpath
 BuildRequires: clucene-core-devel
+BuildRequires: desktop-file-utils
 BuildRequires: kdelibs4-devel >= %{version}
 BuildRequires: kdepimlibs-devel >= %{version}
 BuildRequires: libjpeg-devel
@@ -188,6 +189,12 @@ chrpath --list   %{buildroot}%{_libdir}/kde4/plugins/phonon_platform/kde.so ||:
 chrpath --delete %{buildroot}%{_libdir}/kde4/plugins/phonon_platform/kde.so
 
 
+%check
+for f in %{buildroot}%{_kde4_datadir}/applications/kde4/*.desktop ; do
+  desktop-file-validate $f
+done
+
+
 %clean
 rm -rf %{buildroot}
 
@@ -210,6 +217,7 @@ fi
 
 %files
 %defattr(-,root,root,-)
+%doc COPYING COPYING.LIB
 %{_kde4_bindir}/*
 %{_kde4_appsdir}/*
 %exclude %{_kde4_appsdir}/cmake/
@@ -298,6 +306,10 @@ fi
 
 
 %changelog
+* Fri Jan 13 2012 Rex Dieter <rdieter at fedoraproject.org> 4.7.97-11
+- %%check: desktop-file-validate
+- %%doc COPYING COPYING.LIB
+
 * Wed Jan 04 2012 Rex Dieter <rdieter at fedoraproject.org> 4.7.97-10
 - kdebase-runtime -> kde-runtime rename
 


More information about the scm-commits mailing list