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
This commit is contained in:
Dirk Mueller 2016-02-09 10:35:39 +00:00 committed by Git OBS Bridge
parent 416bde79a5
commit 5c6bab1bb5
3 changed files with 34 additions and 1 deletions

View File

@ -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

11
x3270.desktop Normal file
View File

@ -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;

View File

@ -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