[pairs] validate .desktop file
Rex Dieter
rdieter at fedoraproject.org
Thu Jun 28 02:13:43 UTC 2012
commit 4517d3695082360f11ad752a0a29ed9c6c480dec
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Wed Jun 27 21:16:46 2012 -0500
validate .desktop file
pairs-4.8.95-dt_validate.patch | 9 +++++++++
pairs.spec | 21 ++++++++++++---------
2 files changed, 21 insertions(+), 9 deletions(-)
---
diff --git a/pairs-4.8.95-dt_validate.patch b/pairs-4.8.95-dt_validate.patch
new file mode 100644
index 0000000..bdb4589
--- /dev/null
+++ b/pairs-4.8.95-dt_validate.patch
@@ -0,0 +1,9 @@
+diff -up pairs-4.8.95/src/pairs.desktop.dt_validate pairs-4.8.95/src/pairs.desktop
+--- pairs-4.8.95/src/pairs.desktop.dt_validate 2012-06-22 17:59:42.000000000 -0500
++++ pairs-4.8.95/src/pairs.desktop 2012-06-27 21:15:29.301393433 -0500
+@@ -43,4 +43,4 @@ GenericName[x-test]=xxA game to enhance
+ GenericName[zh_CN]=增强记忆力的游戏
+ GenericName[zh_TW]=加強記憶的遊戲
+ Terminal=false
+-Categories=Qt;KDE;Education;Game;KidsGame
++Categories=Qt;KDE;Education;Game;KidsGame;
diff --git a/pairs.spec b/pairs.spec
index 06f5ed7..3b55cce 100644
--- a/pairs.spec
+++ b/pairs.spec
@@ -1,10 +1,10 @@
-Name: pairs
+Name: pairs
Version: 4.8.95
Release: 1%{?dist}
-Summary: Memory and logic stimulation game for preschool children
+Summary: Memory and logic stimulation game for preschool children
-License: GPLv2 or GPLv3
-URL: http://www.kde.org/
+License: GPLv2 or GPLv3
+URL: http://www.kde.org/
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
@@ -13,7 +13,10 @@ URL: http://www.kde.org/
%endif
Source0: ftp://ftp.kde.org/pub/kde/%{stable}/%{version}/src/%{name}-%{version}.tar.xz
-BuildRequires: kdelibs4-devel >= %{version}
+## upstream patches
+Patch100: pairs-4.8.95-dt_validate.patch
+
+BuildRequires: kdelibs4-devel >= %{version}
%description
@@ -23,9 +26,12 @@ memory, logic, hearing and even reading skills. Each game can
have different themes so the child is stimulated with
different and new challenges.
+
%prep
%setup -q
+%patch100 -p1 -b .dt_validate
+
%build
mkdir -p %{_target_platform}
@@ -49,18 +55,15 @@ desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/pairs.deskt
%post
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
-
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null
fi
-
%posttrans
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
-
%files
%doc README COPYING
%{_kde4_bindir}/pairs
@@ -79,4 +82,4 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
- Fedora and the other non-free logo removed
* Thu May 31 2012 Jaroslav Reznik <jreznik at redhat.com> 4.8.80-1
-- initial try
\ No newline at end of file
+- initial try
More information about the scm-commits
mailing list