[packages/doomsday] move inline desktop files as separate files in git
glen
glen at pld-linux.org
Sun Oct 18 14:00:14 CEST 2015
commit 46c1e1fa1d6af207bf794bebbeafcea20a9f823b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Oct 18 15:00:04 2015 +0300
move inline desktop files as separate files in git
doomsday-doom.desktop | 9 +++++++++
doomsday-heretic.desktop | 9 +++++++++
doomsday-hexen.desktop | 9 +++++++++
doomsday.spec | 41 ++++++-----------------------------------
4 files changed, 33 insertions(+), 35 deletions(-)
---
diff --git a/doomsday.spec b/doomsday.spec
index 9237d14..7c28e07 100644
--- a/doomsday.spec
+++ b/doomsday.spec
@@ -17,6 +17,9 @@ Source2: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-23/Hexen-1-48x
# Source2-md5: 573845e6e747f68617ac67f3a87dc78e
Source3: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-28/Heretic-I-1-48x48.png
# Source3-md5: c89e36c49eabe2846137f313a5250308
+Source4: %{name}-doom.desktop
+Source5: %{name}-heretic.desktop
+Source6: %{name}-hexen.desktop
#Patch0: %{name}-libpng15.patch
#Patch1: %{name}-format.patch
URL: http://www.dengine.net/
@@ -75,41 +78,9 @@ cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/doom.png
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/hexen.png
cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/heretic.png
-cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-doom.desktop
-[Desktop Entry]
-Name=Doom
-Comment=Doom for linux
-Exec=doomsday -game jdoom
-Icon=doom.png
-Terminal=false
-Type=Application
-Categories=Game;FirstPersonGame;
-Encoding=UTF-8
-EOF
-
-cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-hexen.desktop
-[Desktop Entry]
-Name=Hexen
-Comment=Hexen for linux
-Exec=doomsday -game jhexen
-Icon=hexen.png
-Terminal=false
-Type=Application
-Categories=Game;FirstPersonGame;
-Encoding=UTF-8
-EOF
-
-cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-heretic.desktop
-[Desktop Entry]
-Name=Heretic
-Comment=Heretic for linux
-Exec=doomsday -game jheretic
-Icon=heretic.png
-Terminal=false
-Type=Application
-Categories=Game;FirstPersonGame;
-Encoding=UTF-8
-EOF
+cp -p %{_sourcedir}/%{name}-doom.desktop $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{_sourcedir}/%{name}-hexen.desktop $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{_sourcedir}/%{name}-heretic.desktop $RPM_BUILD_ROOT%{_desktopdir}
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/doomsday-doom.desktop b/doomsday-doom.desktop
new file mode 100644
index 0000000..0749fd0
--- /dev/null
+++ b/doomsday-doom.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Doom
+Comment=Doom for linux
+Exec=doomsday -game jdoom
+Icon=doom.png
+Terminal=false
+Type=Application
+Categories=Game;FirstPersonGame;
+Encoding=UTF-8
diff --git a/doomsday-heretic.desktop b/doomsday-heretic.desktop
new file mode 100644
index 0000000..b6c6d27
--- /dev/null
+++ b/doomsday-heretic.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Heretic
+Comment=Heretic for linux
+Exec=doomsday -game jheretic
+Icon=heretic.png
+Terminal=false
+Type=Application
+Categories=Game;FirstPersonGame;
+Encoding=UTF-8
diff --git a/doomsday-hexen.desktop b/doomsday-hexen.desktop
new file mode 100644
index 0000000..3cee972
--- /dev/null
+++ b/doomsday-hexen.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Hexen
+Comment=Hexen for linux
+Exec=doomsday -game jhexen
+Icon=hexen.png
+Terminal=false
+Type=Application
+Categories=Game;FirstPersonGame;
+Encoding=UTF-8
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/doomsday.git/commitdiff/46c1e1fa1d6af207bf794bebbeafcea20a9f823b
More information about the pld-cvs-commit
mailing list