Blob Blame History Raw
Name:		usbmon
Version:	5.3
Release:	2%{dist}
Summary:	A basic front-end to usbmon

Group:		System Environment/Base
License:	GPLv2
URL:		http://people.redhat.com/zaitcev/linux/
Source:		http://people.redhat.com/zaitcev/linux/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
The usbmon program collects and prints a trace of USB transactions as they
occur between the USB core and HCDs. Analyzing the trace helps to debug the
kernel USB stack, device firmware, and applications.

%prep
%setup -q

%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" 
# Builds outside of the Koji/Brew fail unless we mkdir. How do other RPMs work?
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
install -p -m 644 -t $RPM_BUILD_ROOT/%{_mandir}/man8 usbmon.8
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
install -p -m 755 -t $RPM_BUILD_ROOT/%{_sbindir} usbmon

%clean
rm -rf $RPM_BUILD_ROOT

#files -f %{name}.lang
%files
%defattr(-,root,root,-)
%doc README COPYING
%{_sbindir}/usbmon
%{_mandir}/man8/usbmon.8*

%changelog
* Thu Dec 18 2008 Pete Zaitcev <zaitcev@redhat.com> 5.3-1
- Pull 5.3 in: license made explicit in usbmon.c per Fedora review feedback.
  Also, change parse_params to protect print_48 from overflows.

* Sun Dec 7 2008 Pete Zaitcev <zaitcev@redhat.com> 5.2-1
- Initial revision (5.2)