Name: usbview Version: 2.0 Release: 5%{?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 Source1: %{name}.desktop Source2: org.fedoraproject.usbview.policy BuildRequires: gtk3-devel desktop-file-utils Requires: hicolor-icon-theme polkit %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 %make_install #setup pkxexec mv $RPM_BUILD_ROOT%{_bindir}/usbview $RPM_BUILD_ROOT%{_bindir}/usbview.bin cat > $RPM_BUILD_ROOT%{_bindir}/usbview << EOF #!/bin/sh exec pkexec %{_bindir}/usbview.bin EOF chmod +x $RPM_BUILD_ROOT%{_bindir}/usbview mkdir -p $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions #install desktop icon install -Dp -m 0644 usb_icon.xpm \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.xpm #install desktop file desktop-file-install \ %if 0%{?fedora} && 0%{?fedora} < 19 --vendor fedora \ %endif --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %doc ChangeLog COPYING* README TODO %{_bindir}/usbview* %{_mandir}/man8/usbview* %{_datadir}/polkit-1/actions/org.fedoraproject.usbview.policy %{_datadir}/icons/hicolor/64x64/apps/%{name}.xpm %{_datadir}/applications/*%{name}.desktop %changelog * Mon Aug 18 2014 Fedora Release Engineering - 2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri May 10 2013 Hans de Goede - 2.0-2 - Remove no longer needed autoreconf call, %%configure from redhat-rpm-config >= 9.1.0-42 updates config.guess and config.sub for new architecture support * Sat Apr 6 2013 Hans de Goede - 2.0-1 - New upstream release 2.0 - Drop patches (all upstreamed) - Fix usbview not working with newer kernels due to debugfs permission changes by using pxexec. Ideally usbview would be rewritten to use the public parts of sysfs instead. * Sat Feb 09 2013 Parag Nemade - 1.1-10 - Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 * Sun Jul 22 2012 Fedora Release Engineering - 1.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jun 14 2012 Hans de Goede - 1.1-8 - Fix usbview not working due to missing usbfs (rhbz#806595) - Port to gtk3 * Sat Jan 14 2012 Fedora Release Engineering - 1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson - 1.1-6 - Rebuild for new libpng * Mon Feb 07 2011 Fedora Release Engineering - 1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 15 2009 Itamar Reis Peixoto - 1.1-4 - include --vendor fedora in desktop-file-install (required for EL-5) * Fri Dec 11 2009 Itamar Reis Peixoto - 1.1-3 - increasy usage of macros, fix icon permission * 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