[packages/rubymine] use upstream .desktop file; use svg icon

glen glen at pld-linux.org
Sat Feb 15 22:47:22 CET 2014


commit 327536c69292f3f11892725bef9732903858c943
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Feb 15 23:42:43 2014 +0200

    use upstream .desktop file; use svg icon

 rubymine.desktop | 9 +++++----
 rubymine.spec    | 6 ++++--
 2 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/rubymine.spec b/rubymine.spec
index 2928c17..1debec9 100644
--- a/rubymine.spec
+++ b/rubymine.spec
@@ -2,7 +2,7 @@
 Summary:	The Most Intelligent Ruby and Rails IDE
 Name:		rubymine
 Version:	6.0.3
-Release:	0.2
+Release:	0.3
 # TODO: figure out what's the licensing and redistribution
 License:	?
 Group:		Development/Tools
@@ -49,6 +49,7 @@ rm bin/libbreakgen.so
 %patch0 -p1
 chmod a+rx bin/*.so bin/fsnotifier*
 mv bin/rubymine.png .
+mv bin/RMlogo.svg .
 
 # cleanup backups after patching
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
@@ -58,6 +59,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_pixmapsdir},%{_desktopdir}}
 cp -l build.txt $RPM_BUILD_ROOT/cp-test && l=l && rm -f $RPM_BUILD_ROOT/cp-test
 cp -p rubymine.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+cp -p RMlogo.svg $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.svg
 cp -a$l bin help lib license plugins rb rubystubs* $RPM_BUILD_ROOT%{_appdir}
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 ln -s %{_appdir}/bin/rubymine.sh $RPM_BUILD_ROOT%{_bindir}/rubymine
@@ -89,7 +91,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_appdir}/bin/rinspect.sh
 %attr(755,root,root) %{_appdir}/bin/fsnotifier*
 %attr(755,root,root) %{_appdir}/bin/libyjpagent-linux*.so
-%{_appdir}/bin/RMlogo.svg
 %attr(755,root,root) %{_appdir}/bin/libbreakgen*.so
 %{_desktopdir}/%{name}.desktop
 %{_pixmapsdir}/%{name}.png
+%{_pixmapsdir}/%{name}.svg
diff --git a/rubymine.desktop b/rubymine.desktop
index a7a2c27..8afb240 100644
--- a/rubymine.desktop
+++ b/rubymine.desktop
@@ -1,9 +1,10 @@
 [Desktop Entry]
 Version=1.0
 Type=Application
-Terminal=false
-Exec=rubymine
 Name=RubyMine
-Comment=The Most Intelligent Ruby and Rails IDE
-Icon=rubymine
+Icon=rubymine.svg
+Exec=rubymine %f
+Comment=Develop with pleasure!
 Categories=Development;IDE;
+Terminal=false
+StartupWMClass=jetbrains-rubymine
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rubymine.git/commitdiff/327536c69292f3f11892725bef9732903858c943



More information about the pld-cvs-commit mailing list