2024-01-05 18:51:53 +01:00
|
|
|
%define gittag %(echo %version | cut -d. -f3)
|
2024-01-05 18:51:53 +01:00
|
|
|
Name: usbutils
|
2024-01-05 18:51:54 +01:00
|
|
|
Version: 017
|
2024-01-05 18:51:53 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Utilities for handling USB devices
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 18:51:53 +01:00
|
|
|
URL: https://github.com/gregkh/usbutils
|
2024-01-05 18:51:53 +01:00
|
|
|
Source: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/master@%{gittag}/usbutils-%{version}.tar.bz2
|
2024-01-05 18:51:53 +01:00
|
|
|
Patch0: %{name}-0.86-hwdata.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 18:51:53 +01:00
|
|
|
BuildRequires: libudev-devel
|
2024-01-05 18:51:53 +01:00
|
|
|
BuildRequires: libusb-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Provides: usbutils-devel = %{version}
|
2024-01-05 18:51:53 +01:00
|
|
|
Obsoletes: usbutils-devel < 014
|
2024-01-05 18:51:53 +01:00
|
|
|
Requires: hwdata
|
|
|
|
|
|
|
|
%description
|
|
|
|
The "usbutils" package is most useful for the "lsusb" utility, which can provide considerable detail about the USB devices connected to your Linux system.
|
|
|
|
(It's like "pciutils" is for PCI.)
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%patch0 -p1
|
2024-01-05 18:51:53 +01:00
|
|
|
./autogen.sh
|
2024-01-05 18:51:53 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--datadir=%{_datadir}/hwdata
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
# --disable-zlib \
|
|
|
|
# --disable-usbids \
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
## do update `usb.ids' from <http://www.linux-usb.org></http:>
|
|
|
|
#./update-usbids.sh
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
#ln -s ../sbin/lsusb %{buildroot}%{_bindir}/lsusb
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/lsusb
|
|
|
|
%{_bindir}/lsusb.py
|
|
|
|
%{_bindir}/usbhid-dump
|
|
|
|
%{_bindir}/usb-devices
|
|
|
|
%{_mandir}/man1/usb-devices.1*
|
|
|
|
%{_mandir}/man8/*
|
2024-01-05 18:51:54 +01:00
|
|
|
%{_libdir}/pkgconfig/usbutils.pc
|
2024-01-05 18:51:53 +01:00
|
|
|
%doc LICENSES
|
2024-01-05 18:51:53 +01:00
|
|
|
#%doc NEWS README ChangeLog
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 18:51:54 +01:00
|
|
|
* Tue Oct 31 2023 Automatic Build System <autodist@mambasoft.it> 017-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:51:54 +01:00
|
|
|
* Wed Oct 25 2023 Automatic Build System <autodist@mambasoft.it> 016-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
* Sat Nov 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 015.20221022git.79b796f9-1mamba
|
|
|
|
- update to 015.20221022git.79b796f9
|
|
|
|
|
|
|
|
* Sat Nov 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 015.20221022git.-1mamba
|
|
|
|
- update to 015.20221022git.
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
* Sat Aug 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 014-1mamba
|
|
|
|
- update to 014
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
* Sat Oct 31 2020 Automatic Build System <autodist@mambasoft.it> 013-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
* Wed Sep 11 2019 Automatic Build System <autodist@mambasoft.it> 012-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
* Fri Aug 17 2018 Automatic Build System <autodist@mambasoft.it> 010-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
* Wed Mar 21 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 009-1mamba
|
|
|
|
- update to 009
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
* Fri Oct 24 2014 Automatic Build System <autodist@mambasoft.it> 008-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:51:53 +01:00
|
|
|
* Tue Jun 11 2013 Automatic Build System <autodist@mambasoft.it> 007-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Feb 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 006-2mamba
|
|
|
|
- fix usb.ids location
|
|
|
|
|
|
|
|
* Thu Jan 31 2013 Automatic Build System <autodist@mambasoft.it> 006-1mamba
|
|
|
|
- update to 006
|
|
|
|
|
|
|
|
* Mon Oct 31 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.86-4mamba
|
|
|
|
- added patch to read ids db from /usr/share/hwdata; added requirement for hwdata
|
|
|
|
|
|
|
|
* Fri Oct 07 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.86-3mamba
|
|
|
|
- added updated usb.ids from linux-usb.org
|
|
|
|
|
|
|
|
* Wed Aug 31 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.86-2mamba
|
|
|
|
- added /usr/bin/lsusb symlink pointing to /usr/sbin/lsusb
|
|
|
|
|
|
|
|
* Fri Aug 21 2009 Automatic Build System <autodist@mambasoft.it> 0.86-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Jun 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.84-1mamba
|
|
|
|
- update to 0.84
|
|
|
|
|
|
|
|
* Mon Dec 03 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.73-2mamba
|
|
|
|
- don't compress usb.ids database file
|
|
|
|
|
|
|
|
* Tue Nov 13 2007 Aleph0 <aleph0@openmamba.org> 0.73-1mamba
|
|
|
|
- update to 0.73
|
|
|
|
|
|
|
|
* Mon Jul 24 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 0.72-1qilnx
|
|
|
|
- update to version 0.72 by autospec
|
|
|
|
|
|
|
|
* Thu Apr 14 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.70-2qilnx
|
|
|
|
- provides usbutils-devel to avoid errors during upgrade from QiLinux 1.1
|
|
|
|
|
|
|
|
* Wed Feb 02 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.70-1qilnx
|
|
|
|
- update to version 0.70 by autospec
|
|
|
|
- removed devel package (usbutils uses now the system library libusb to
|
|
|
|
access USB devices, not a private (old) copy of that library.)
|
|
|
|
|
|
|
|
* Mon Jul 02 2003 Silvan Calarco <silvan.calarco@qinet.it> 0.11-1qilnx
|
|
|
|
- first build of USB-utils
|