From 5c6bab1bb5263d59e4de07c5b4ec4d20e70c0df4252acca83a5e402369964ffa Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 9 Feb 2016 10:35:39 +0000 Subject: [PATCH] Accepting request 358486 from home:darix:branches:Base:System - added desktop file - split up font reconfigure macro into the pieces so we can add the desktop file macros too OBS-URL: https://build.opensuse.org/request/show/358486 OBS-URL: https://build.opensuse.org/package/show/Base:System/x3270?expand=0&rev=41 --- x3270.changes | 7 +++++++ x3270.desktop | 11 +++++++++++ x3270.spec | 17 ++++++++++++++++- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 x3270.desktop diff --git a/x3270.changes b/x3270.changes index a47e655..9696166 100644 --- a/x3270.changes +++ b/x3270.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 9 01:33:07 UTC 2016 - mrueckert@suse.de + +- added desktop file +- split up font reconfigure macro into the pieces so we can add the + desktop file macros too + ------------------------------------------------------------------- Wed Jan 20 11:07:52 UTC 2016 - tchvatal@suse.com diff --git a/x3270.desktop b/x3270.desktop new file mode 100644 index 0000000..9b38416 --- /dev/null +++ b/x3270.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=x3270 +GenericName=x3270 +Comment=IBM 3270 Terminal Emulator +Exec=x3270 +Icon=utilities-terminal +Terminal=false +Type=Application +Categories=System;TerminalEmulator;X-GNOME-Utilities; diff --git a/x3270.spec b/x3270.spec index 9d69824..ca67d6d 100644 --- a/x3270.spec +++ b/x3270.spec @@ -28,6 +28,7 @@ Group: System/X11/Terminals Url: http://x3270.bgp.nu Source0: http://download.sourceforge.net/%{name}/%{_fullname}-src.tgz Source1: http://download.sourceforge.net/%{name}/x026-%{_x026ver}.tgz +Source2: x3270.desktop Patch0: mknod.patch Patch100: usr_local_bin.patch Patch102: x026-offset.diff @@ -48,6 +49,7 @@ BuildRequires: pkgconfig(xaw7) BuildRequires: pkgconfig(xmu) BuildRequires: pkgconfig(xpm) BuildRequires: pkgconfig(xt) +BuildRequires: update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -166,7 +168,19 @@ cp -pr --parents tcl3270/{Examples,html} %{buildroot}%{_docdir}/%{name} # create symlinks in documentation %fdupes -s %{buildroot}/%{_docdir} -%{reconfigure_fonts_scriptlets} +install -D -m 0644 %{S:2} %{buildroot}%{_datadir}/applications/x3270.desktop +%suse_update_desktop_file x3270 + +%post +%desktop_database_post +%reconfigure_fonts_post + +%postun +%desktop_database_postun +%reconfigure_fonts_postun + +%posttrans +%reconfigure_fonts_posttrans %files %defattr(-,root,root,755) @@ -189,6 +203,7 @@ cp -pr --parents tcl3270/{Examples,html} %{buildroot}%{_docdir}/%{name} %doc %{_docdir}/%{name}/x3270/Examples %doc %{_docdir}/%{name}/x3270/html %doc %{_docdir}/%{name}/Playback +%{_datadir}/applications/x3270.desktop # c3270 %{_bindir}/c3270 %doc %{_mandir}/man1/c3270.1.gz