diff --git a/git-gui.desktop b/git-gui.desktop new file mode 100644 index 0000000..faea356 --- /dev/null +++ b/git-gui.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Git Gui +GenericName=Version Control GUI +Comment=Git GUI +Exec=git gui +Icon=git-gui +StartupNotify=false +Terminal=false +Type=Application +Categories=Development;RevisionControl; +X-KDE-SubstituteUID=false diff --git a/git-gui.png b/git-gui.png new file mode 100644 index 0000000..f28fc0b --- /dev/null +++ b/git-gui.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e7ed3c7de04dea5a6471d46ed9f403dfc30ec7b65d406f2a72a74385ec9008b +size 273 diff --git a/git.changes b/git.changes index 8f27777..1831fa3 100644 --- a/git.changes +++ b/git.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 18 18:58:06 UTC 2016 - termim@gmail.com + +- add desktop entry for the git gui + ------------------------------------------------------------------- Sun Apr 3 19:51:56 UTC 2016 - astieger@suse.com diff --git a/git.spec b/git.spec index 906e8e2..1e92cdb 100644 --- a/git.spec +++ b/git.spec @@ -42,6 +42,8 @@ Source4: git.xinetd Source5: usr.share.git-web.gitweb.cgi Source6: susefirewall-git-daemon Source8: %name.keyring +Source9: %{name}-gui.desktop +Source10: %{name}-gui.png Patch3: completion-wordbreaks.diff # CVE-2011-2186, bnc#698456 Patch4: git-prevent_xss-default.diff @@ -68,6 +70,7 @@ BuildRequires: perl-Error BuildRequires: python BuildRequires: sgml-skel BuildRequires: tcsh +BuildRequires: update-desktop-files BuildRequires: xmlto BuildRequires: xz Requires: git-core = %{version} @@ -338,6 +341,12 @@ mkdir -p "%buildroot/%_docdir/git" cp -a README.md COPYING Documentation/*.txt "%buildroot/%_docdir/git/" %{!?_without_docs: cp -a Documentation/*.html "%buildroot/%_docdir/git/"} +install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/applications +install -m 644 %{SOURCE9} $RPM_BUILD_ROOT%{_datadir}/applications +install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pixmaps +install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/pixmaps +%suse_update_desktop_file $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-gui.desktop + %find_lang %{name} cat %{name}.lang >>bin-man-doc-files # use symlinks instead of hardlinks in sub-commands @@ -434,6 +443,8 @@ fi /usr/share/git-gui %{!?_without_docs: %{_mandir}/man1/*gui*.1*} %{!?_without_docs: %doc Documentation/*gui*.html } +%{_datadir}/applications/%{name}-gui.desktop +%{_datadir}/pixmaps/%{name}-gui.png %files web %defattr(-,root,root)