2015-07-19 11:42:35 +00:00
|
|
|
Name: usbutils
|
|
|
|
Summary: Linux USB utilities
|
2018-05-16 07:33:44 +00:00
|
|
|
Version: 010
|
2018-06-08 12:25:55 +00:00
|
|
|
Release: 2%{?dist}
|
2015-07-19 11:42:35 +00:00
|
|
|
URL: http://www.linux-usb.org/
|
2008-02-12 12:36:40 +00:00
|
|
|
License: GPLv2+
|
|
|
|
|
2015-07-19 11:42:35 +00:00
|
|
|
Source0: https://www.kernel.org/pub/linux/utils/usb/usbutils/%{name}-%{version}.tar.xz
|
2018-06-08 12:25:55 +00:00
|
|
|
Source1: GPL-2.0.txt
|
|
|
|
Source2: GPL-3.0.txt
|
|
|
|
|
|
|
|
#Patch1: 0001-SPDX-bill-of-material-is-supposed-to-be-project_name.patch
|
|
|
|
Patch2: 0002-Makefile.am-add-files-with-licenses-to-archive.patch
|
|
|
|
Patch3: 0003-usbutils.spdx-rerun-report-it-is-properly-sorted.patch
|
|
|
|
Patch4: 0004-lsusb.py-fix-up-Python-3-conversion.patch
|
|
|
|
Patch5: 0005-lsusb-Split-out-routine-that-fetches-value-for-given.patch
|
|
|
|
Patch6: 0006-lsusb-Split-out-field-name-rendering.patch
|
|
|
|
Patch7: 0007-lsusb-Add-support-for-descriptor-extensions.patch
|
|
|
|
Patch8: 0008-lsusb-Add-support-for-audio-processing-unit-type-spe.patch
|
|
|
|
Patch9: 0009-desc-dump.c-fix-compiler-warning-about-unused-variab.patch
|
|
|
|
|
|
|
|
%global num_patches %{lua: c=0; for i,p in ipairs(patches) do c=c+1; end; print(c);}
|
2012-07-16 10:49:16 +00:00
|
|
|
|
2015-07-19 11:42:35 +00:00
|
|
|
BuildRequires: libusbx-devel
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
Requires: hwdata
|
|
|
|
|
2010-08-30 11:50:38 +00:00
|
|
|
%description
|
2004-09-09 13:49:40 +00:00
|
|
|
This package contains utilities for inspecting devices connected to a
|
|
|
|
USB bus.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
2018-06-08 12:25:55 +00:00
|
|
|
%if %{num_patches}
|
|
|
|
git init
|
|
|
|
git config user.email "usbutils@redhat.com"
|
|
|
|
git config user.name "usbutils"
|
|
|
|
git add .
|
|
|
|
git commit -a -q -m "%{version} baseline."
|
|
|
|
|
|
|
|
# Apply all the patches.
|
|
|
|
git am --exclude=project_name.spdx --exclude=bom.spdx --exclude=usbutils.spdx %{patches}
|
|
|
|
%endif
|
|
|
|
|
2004-09-09 13:49:40 +00:00
|
|
|
%build
|
2012-07-16 10:49:16 +00:00
|
|
|
%configure --sbindir=%{_sbindir} --datadir=%{_datadir}/hwdata --disable-usbids
|
2008-02-12 12:36:40 +00:00
|
|
|
make %{?_smp_mflags}
|
2004-09-09 13:49:40 +00:00
|
|
|
|
|
|
|
%install
|
2008-02-12 15:23:26 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
2017-12-04 02:59:45 +00:00
|
|
|
rm -rf %{buildroot}/%{_libdir}/pkgconfig/usbutils.pc
|
2004-09-09 13:49:40 +00:00
|
|
|
|
2018-06-08 12:25:55 +00:00
|
|
|
#FIXME: remove with usbutils-011
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/share/licenses/usbutils/
|
|
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/share/licenses/usbutils/
|
|
|
|
install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/share/licenses/usbutils/
|
|
|
|
|
2004-09-09 13:49:40 +00:00
|
|
|
%files
|
2015-07-19 11:42:35 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
2018-06-08 12:25:55 +00:00
|
|
|
%license GPL-2.0.txt GPL-3.0.txt
|
|
|
|
%doc NEWS
|
2004-09-09 13:49:40 +00:00
|
|
|
%{_mandir}/*/*
|
2009-09-22 11:26:19 +00:00
|
|
|
%{_bindir}/*
|
2004-09-09 13:49:40 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-06-08 12:25:55 +00:00
|
|
|
* Fri Jun 08 2018 Lukas Nykryn <lnykryn@redhat.com> - 010-2
|
|
|
|
- add upstream fixes
|
|
|
|
|
2018-05-16 07:33:44 +00:00
|
|
|
* Wed May 16 2018 Lukas Nykryn <lnykryn@redhat.com> - 010-1
|
|
|
|
- New 010 release
|
|
|
|
|
2018-02-09 20:11:40 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 009-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-12-04 02:16:04 +00:00
|
|
|
* Mon Dec 4 2017 Peter Robinson <pbrobinson@fedoraproject.org> 009-1
|
|
|
|
- New 009 release
|
|
|
|
|
2017-08-03 09:54:21 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 008-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 21:05:50 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 008-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 16:50:43 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 008-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-08-29 10:11:38 +00:00
|
|
|
* Mon Aug 29 2016 Peter Robinson <pbrobinson@fedoraproject.org> 008-6
|
|
|
|
- Don't ship usbutils pkgconfig file
|
|
|
|
|
2016-02-05 02:27:58 +00:00
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 008-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-07-19 11:42:35 +00:00
|
|
|
* Sun Jul 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 008-4
|
|
|
|
- Fix FTBFS, cleanup and modernise spec, use %%license
|
|
|
|
|
2015-06-19 01:42:35 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 008-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-21 21:21:10 +00:00
|
|
|
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 008-2
|
|
|
|
- Rebuilt for Fedora 23 Change
|
|
|
|
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
|
|
|
|
2014-10-22 15:09:09 +00:00
|
|
|
* Wed Oct 22 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 008-1
|
|
|
|
- new release
|
|
|
|
|
2014-08-18 07:16:05 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 03:05:21 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-04 05:48:32 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-17 10:33:30 +00:00
|
|
|
* Mon Jun 17 2013 Lukáš Nykrýn <lnykryn@redhat.com> - 007-1
|
|
|
|
- new upstream release
|
|
|
|
|
2013-02-26 14:03:01 +00:00
|
|
|
* Tue Feb 26 2013 Lukáš Nykrýn <lnykryn@redhat.com> - 006-4
|
|
|
|
- lsusb-t: make sure that interfaces are added to lists only once (#914929)
|
|
|
|
|
2013-02-15 02:34:26 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 006-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-22 02:11:18 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 006-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-16 10:49:16 +00:00
|
|
|
* Mon Jul 16 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 006-1
|
|
|
|
- new upstream release
|
|
|
|
|
2012-04-19 08:57:27 +00:00
|
|
|
* Thu Apr 19 2012 Lukas Nykryn <lnykryn@redhat.com> 005-1
|
|
|
|
- new upstream release
|
|
|
|
|
2012-04-19 08:30:11 +00:00
|
|
|
* Thu Apr 19 2012 Lukas Nykryn <lnykryn@redhat.com> 004-4
|
|
|
|
- Ignore missing driver symlink (#808934)
|
|
|
|
|
2012-01-14 07:40:01 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 004-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|