From 110489d7a9f607034aa299fe1684bea2098bc931 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Fri, 11 Dec 2009 22:58:22 +0100 Subject: usbview-1.1-2.fc13.src.rpm --- usbview.desktop | 9 +++++++++ usbview.spec | 25 ++++++++++++++++++++++--- usbview_icon.png | Bin 0 -> 1425 bytes 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 usbview.desktop create mode 100644 usbview_icon.png diff --git a/usbview.desktop b/usbview.desktop new file mode 100644 index 0000000..6f455e2 --- /dev/null +++ b/usbview.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=USB Viewer +GenericName=USB Viewer +Comment=USB topology and device viewer +Exec=usbview +Icon=usbview_icon +Terminal=false +Type=Application +Categories=System; diff --git a/usbview.spec b/usbview.spec index b4ffdc9..ff22894 100644 --- a/usbview.spec +++ b/usbview.spec @@ -1,6 +1,6 @@ Name: usbview Version: 1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB topology and device viewer Group: Applications/System @@ -11,6 +11,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtk2-devel +Source1: usbview_icon.png +Source2: usbview.desktop + + +BuildRequires: desktop-file-utils + + %description Display information about the topology of the devices connected to the USB bus on a Linux machine. It also displays detailed information on the individual @@ -33,7 +40,15 @@ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -#make prefix=$RPM_BUILD_ROOT%{prefix} install + +#install desktop icon +install -Dp -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps/usbview_icon.png + +#install desktop file +desktop-file-install \ +--add-category="Development" \ +--dir=$RPM_BUILD_ROOT%{_datadir}/applications \ +%{SOURCE2} %clean rm -rf $RPM_BUILD_ROOT @@ -44,9 +59,13 @@ rm -rf $RPM_BUILD_ROOT %doc ChangeLog COPYING* README TODO %{_bindir}/usbview %{_mandir}/man8/usbview* - +%{_datadir}/pixmaps/usbview_icon.png +%{_datadir}/applications/usbview.desktop %changelog +* Fri Dec 11 2009 Itamar Reis Peixoto - 1.1-2 +- install desktop icon + * Sun Nov 29 2009 Itamar Reis Peixoto - 1.1-1 - Initial RPM for fedora diff --git a/usbview_icon.png b/usbview_icon.png new file mode 100644 index 0000000..85d1b81 Binary files /dev/null and b/usbview_icon.png differ -- cgit