diff options
Diffstat (limited to 'usbview.spec')
-rw-r--r-- | usbview.spec | 25 |
1 files changed, 22 insertions, 3 deletions
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 |