[packages/clion] add desktop file

glen glen at pld-linux.org
Mon Jan 26 22:16:36 CET 2015


commit 109e0602350f02c3e3d990c5c94748da71c194f2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jan 26 22:49:22 2015 +0200

    add desktop file

 clion.desktop | 10 ++++++++++
 clion.spec    |  3 +++
 2 files changed, 13 insertions(+)
---
diff --git a/clion.spec b/clion.spec
index 82fe4d8..69d933b 100644
--- a/clion.spec
+++ b/clion.spec
@@ -13,6 +13,7 @@ Group:		Development/Tools
 Source0:	http://download.jetbrains.com/cpp/clion-%{bid}.tar.gz
 # NoSource0-md5:	af28ecedc672920503013ff457ed38df
 NoSource:	0
+Source1:	%{product}.desktop
 Patch0:		pld.patch
 URL:		http://www.jetbrains.com/clion/
 BuildRequires:	jpackage-utils
@@ -75,6 +76,7 @@ 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 -a$l bin help lib license plugins $RPM_BUILD_ROOT%{_appdir}
 ln -s %{_pixmapsdir}/%{product}.svg $RPM_BUILD_ROOT%{_appdir}/bin
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 cp -p %{product}.svg $RPM_BUILD_ROOT%{_pixmapsdir}
 ln -s %{_appdir}/bin/%{product}.sh $RPM_BUILD_ROOT%{_bindir}/%{product}
 
@@ -104,6 +106,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_appdir}/lib/libpty/linux
 %dir %{_appdir}/lib/libpty/linux/x86*
 %attr(755,root,root) %{_appdir}/lib/libpty/linux/x86*/libpty.so
+%{_desktopdir}/%{product}.desktop
 %{_pixmapsdir}/%{product}.svg
 
 # TODO: system packages
diff --git a/clion.desktop b/clion.desktop
new file mode 100644
index 0000000..dd9be67
--- /dev/null
+++ b/clion.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=CLion
+Icon=clion
+Exec=clion %f
+Comment=Develop with pleasure!
+Categories=Development;IDE;
+Terminal=false
+StartupWMClass=jetbrains-clion
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/clion.git/commitdiff/d113ef60a937899b5dcefca49ea549a2d8fe43a1



More information about the pld-cvs-commit mailing list