From c3cb4a2a069d1a82b66fbfba5f1c9310b603135e Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 7 Feb 2007 19:19:49 +0000 Subject: [PATCH] - spec cleanup (#226660) --- xterm.desktop | 8 ++++++++ xterm.spec | 23 ++++++++++++++++------- 2 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 xterm.desktop diff --git a/xterm.desktop b/xterm.desktop new file mode 100644 index 0000000..8fad7ec --- /dev/null +++ b/xterm.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=xterm Terminal +GenericName=Terminal +Comment=Terminal emulator for the X Window System +Exec=xterm +Type=Application +Categories=System;TerminalEmulator; diff --git a/xterm.spec b/xterm.spec index 3cc1f73..0e0f4ae 100644 --- a/xterm.spec +++ b/xterm.spec @@ -1,16 +1,17 @@ -Summary: xterm terminal emulator for the X Window System -Name: xterm +Summary: Terminal emulator for the X Window System +Name: xterm Version: 223 -Release: 2%{?dist} -URL: http://dickey.his.com/xterm +Release: 3%{?dist} +URL: http://dickey.his.com/xterm License: MIT -Group: User Interface/X +Group: User Interface/X BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: imake pkgconfig ncurses-devel libutempter-devel -BuildRequires: libXft-devel libXaw-devel libXext-devel +BuildRequires: libXft-devel libXaw-devel libXext-devel desktop-file-utils Source0: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz Source1: ftp://invisible-island.net/xterm/16colors.txt +Source2: %{name}.desktop Patch1: xterm-223-resources.patch Patch2: xterm-222-can-2003-0063.patch @@ -59,6 +60,10 @@ make DESTDIR=$RPM_BUILD_ROOT install cp -fp %{SOURCE1} 16colors.txt +desktop-file-install --vendor=fedora \ + --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ + %{SOURCE2} + %clean rm -rf $RPM_BUILD_ROOT @@ -70,11 +75,15 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/uxterm %{_mandir}/man1/resize.1* %{_mandir}/man1/xterm.1* +%{_datadir}/applications/* %{x11_app_defaults_dir}/UXTerm %{x11_app_defaults_dir}/XTerm %{x11_app_defaults_dir}/XTerm-color %changelog +* Wed Feb 07 2007 Miroslav Lichvar 223-3 +- spec cleanup (#226660) + * Thu Jan 18 2007 Miroslav Lichvar 223-2 - make xterm binary sgid utempter (#222847) - fix font size changes with -fa option (#222340) @@ -110,7 +119,7 @@ rm -rf $RPM_BUILD_ROOT * Wed May 31 2006 Jason Vas Dias - 213-1 - Upgrade to upstream version 213 (fixes bug 192627) - fix bug 189161 : make -r/-rv do reverseVideo with or without - xterm*{fore,back}ground set + xterm*{fore,back}ground set * Thu Apr 13 2006 Jason Vas Dias - 212-1 - Upgrade to upstream version 212