summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usbview.desktop9
-rw-r--r--usbview.spec25
-rw-r--r--usbview_icon.pngbin0 -> 1425 bytes
3 files changed, 31 insertions, 3 deletions
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 <itamar@ispbrasil.com.br> - 1.1-2
+- install desktop icon
+
* Sun Nov 29 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 1.1-1
- Initial RPM for fedora
diff --git a/usbview_icon.png b/usbview_icon.png
new file mode 100644
index 0000000..85d1b81
--- /dev/null
+++ b/usbview_icon.png
Binary files differ