Blame SPECS/usbutils.spec

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