67 lines
1.6 KiB
RPMSpec
67 lines
1.6 KiB
RPMSpec
|
|
Name: usbutils
|
||
|
|
Version: 010
|
||
|
|
Release: 4
|
||
|
|
Summary: Linux utilities for USB device
|
||
|
|
License: GPLv2+
|
||
|
|
URL: http://www.linux-usb.org/
|
||
|
|
|
||
|
|
Source0: https://www.kernel.org/pub/linux/utils/usb/usbutils/%{name}-%{version}.tar.xz
|
||
|
|
Source1: GPL-2.0.txt
|
||
|
|
Source2: GPL-3.0.txt
|
||
|
|
|
||
|
|
Patch1: 0001-lsusb.py-fix-up-Python-3-conversion.patch
|
||
|
|
Patch2: 0002-lsusb-Split-out-routine-that-fetches-value-for-given.patch
|
||
|
|
Patch3: 0003-lsusb-Split-out-field-name-rendering.patch
|
||
|
|
Patch4: 0004-lsusb-Add-support-for-descriptor-extensions.patch
|
||
|
|
Patch5: 0005-lsusb-Add-support-for-audio-processing-unit-type-spe.patch
|
||
|
|
Patch6: 0006-desc-dump.c-fix-compiler-warning-about-unused-variab.patch
|
||
|
|
|
||
|
|
|
||
|
|
BuildRequires: libusbx-devel systemd-devel git gcc
|
||
|
|
Requires: hwdata
|
||
|
|
|
||
|
|
%description
|
||
|
|
This is a collection of USB tools running on a USB host.
|
||
|
|
|
||
|
|
%package help
|
||
|
|
Summary: Including man files for usbutils
|
||
|
|
Requires: man
|
||
|
|
|
||
|
|
%description help
|
||
|
|
This contains man files for the using of usbutils.
|
||
|
|
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{name}-%{version} -p1 -S git
|
||
|
|
|
||
|
|
%build
|
||
|
|
%configure --sbindir=%{_sbindir} --datadir=%{_datadir}/hwdata --disable-usbids
|
||
|
|
%make_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
%make_install INSTALL="install -p"
|
||
|
|
install -D -m 644 %{SOURCE1} %{buildroot}%{_defaultlicensedir}/%{name}/GPL-2.0.txt
|
||
|
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_defaultlicensedir}/%{name}/GPL-3.0.txt
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc NEWS
|
||
|
|
%license GPL-2.0.txt GPL-3.0.txt
|
||
|
|
%{_bindir}/*
|
||
|
|
|
||
|
|
%files help
|
||
|
|
%{_mandir}/*/*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Wed Aug 21 2019 zhanghaibo <ted.zhang@huawei.com> - 010-4
|
||
|
|
- Type:enhancemnet
|
||
|
|
- ID:NA
|
||
|
|
- SUG:NA
|
||
|
|
- DESCi:openEuler Debranding
|
||
|
|
|
||
|
|
* Wed Aug 21 2019 Su Weifeng <suweifeng1@huawei.com> - 010-3
|
||
|
|
- Type:other
|
||
|
|
- ID:NA
|
||
|
|
- SUG:NA
|
||
|
|
- DESC:rename patches
|
||
|
|
- Package init
|