[packages/quadra] use upstream desktop file as base

glen glen at pld-linux.org
Tue Mar 5 10:37:57 CET 2013


commit bb7e13982c8d4f548fe6eed1db963da1e8c39ad5
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Mar 5 11:37:19 2013 +0200

    use upstream desktop file as base

 quadra-desktop.patch | 16 ++++++++++++++++
 quadra.desktop       | 10 ----------
 quadra.spec          |  6 +++---
 3 files changed, 19 insertions(+), 13 deletions(-)
---
diff --git a/quadra.spec b/quadra.spec
index d94cc84..5be2a8a 100644
--- a/quadra.spec
+++ b/quadra.spec
@@ -8,12 +8,12 @@ Summary:	Multiplayer Action Puzzle Game
 Summary(pl.UTF-8):	Gra logiczna dla wielu graczy
 Name:		quadra
 Version:	1.2.0
-Release:	0.1
+Release:	0.2
 License:	LGPL v2.1
 Group:		X11/Applications/Games
 Source0:	http://quadra.googlecode.com/files/%{name}-%{version}.tar.gz
 # Source0-md5:	df179970c4eb75af9ccdc5527d901fa6
-Source1:	%{name}.desktop
+Patch0:		%{name}-desktop.patch
 Source2:	http://www.gamesdomain.com/faqdir/%{name}.txt
 URL:		http://code.google.com/p/quadra/
 BuildRequires:	autoconf
@@ -84,7 +84,7 @@ install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
 	DESTDIR=$RPM_BUILD_ROOT
 
 cp -p images/quadra.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+cp -p Quadra.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
 
 %clean
 rm -rf $RPM_BUILD_ROOT
diff --git a/quadra-desktop.patch b/quadra-desktop.patch
new file mode 100644
index 0000000..819a604
--- /dev/null
+++ b/quadra-desktop.patch
@@ -0,0 +1,16 @@
+--- quadra/../BUILD.x86_64-linux/quadra-1.2.0/Quadra.desktop~	2013-03-05 11:26:04.000000000 +0200
++++ quadra/../BUILD.x86_64-linux/quadra-1.2.0/Quadra.desktop	2013-03-05 11:33:15.791813888 +0200
+@@ -1,7 +1,9 @@
+ [Desktop Entry]
+ Name=Quadra
+-Comment=Quadra
+-Exec=/usr/bin/quadra
+-Icon=/usr/share/pixmaps/quadra.xpm
+-Terminal=0
++Comment=Multiplayer puzzle game
++Comment[pl]=Gra logiczna dla wielu graczy
++Exec=quadra
++Icon=quadra
++Terminal=false
+ Type=Application
++Categories=Game;BoardGame;
diff --git a/quadra.desktop b/quadra.desktop
deleted file mode 100644
index 3859e57..0000000
--- a/quadra.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Name=Quadra
-Comment=Multiplayer puzzle game
-Comment[pl]=Gra logiczna dla wielu graczy
-Exec=quadra
-Terminal=false
-Type=Application
-Icon=quadra
-Categories=Game;BoardGame;
-# vi: encoding=utf-8
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/quadra.git/commitdiff/bb7e13982c8d4f548fe6eed1db963da1e8c39ad5



More information about the pld-cvs-commit mailing list