usbutils/usbutils.spec
lvfei f247658386 update changelog date order
(cherry picked from commit 994f7ea380a388127a28dc87cfafa6ad5260b0b8)
2022-09-14 12:43:52 +08:00

80 lines
1.9 KiB
RPMSpec

Name: usbutils
Version: 012
Release: 5
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
BuildRequires: libusbx-devel systemd-devel gcc libtool
Patch1: 0001-usbmisc-initialize-string-buffer-before-reading-from.patch
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
%build
autoreconf --install --symlink
%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
* Tue Sep 28 2021 Wenchao Hao <haowenchao@huawei.com> - 012-5
- Nothing but to sync master and LTS branch
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 012-4
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Thu Oct 29 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 012-3
- backport one patch to init string buffer before reading from it
* Mon Sep 28 2020 Wenchao Hao <haowenchao@huawei.com> - 012-2
- Remove unused patches file
* Sun Apr 19 2020 suweifeng <suweifeng1@huawei.com> - 012-1
- Type:upgrade
- ID:NA
- SUG:NA
- DESC:first release with version 012
* Wed Aug 21 2019 zhanghaibo <ted.zhang@huawei.com> - 010-4
- Type:enhancemnet
- ID:NA
- SUG:NA
- DESC:openEuler Debranding
* Wed Aug 21 2019 Su Weifeng <suweifeng1@huawei.com> - 010-3
- Type:other
- ID:NA
- SUG:NA
- DESC:rename patches
- Package init