Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
976a659bf7 dist-git conversion 2010-07-29 14:48:18 +00:00
Itamar Reis Peixoto
3231fd85e7 fix desktop install 2009-12-15 17:24:41 +00:00
Itamar Reis Peixoto
836e0160dd initial import 2009-12-14 20:57:03 +00:00
42977ca1c3 Initialize branch F-12 for usbview 2009-12-14 17:40:20 +00:00
7 changed files with 89 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
usbview-1.1.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: usbview
# $Id$
NAME := usbview
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
8bf5e66351156356f3ad07454123affa usbview-1.1.tar.gz

9
usbview.desktop Normal file
View file

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

78
usbview.spec Normal file
View file

@ -0,0 +1,78 @@
Name: usbview
Version: 1.1
Release: 4%{?dist}
Summary: USB topology and device viewer
Group: Applications/System
License: GPLv2
URL: http://www.kroah.com/linux-usb/
Source0: http://www.kroah.com/linux-usb/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gtk2-devel
Source1: %{name}_icon.png
Source2: %{name}.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
devices.
%prep
%setup -q
# Convert to utf-8
for file in ChangeLog; do
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
touch -r $file $file.new && \
mv $file.new $file
done
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
#install desktop icon
install -Dp -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}_icon.png
#install desktop file
desktop-file-install \
--vendor fedora \
--add-category="System" \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE2}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING* README TODO
%{_bindir}/usbview
%{_mandir}/man8/usbview*
%{_datadir}/pixmaps/%{name}_icon.png
%{_datadir}/applications/fedora-%{name}.desktop
%changelog
* Tue Dec 15 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 1.1-4
- include --vendor fedora in desktop-file-install (required for EL-5)
* Fri Dec 11 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 1.1-3
- increasy usage of macros, fix icon permission
* 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

BIN
usbview_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB