Blame SPECS/libusbx.spec

aeac0c
Summary:        Library for accessing USB devices
aeac0c
Name:           libusbx
d5e699
Version:        1.0.23
015882
Release:        4%{?dist}
aeac0c
# upstream libusbx has merged back with libusb and is now called libusb again
aeac0c
# but we already have a libusb package for the old libusb-compat-0.1, renaming
aeac0c
# that to libusb-compat while at the same time giving this its name is a bit
aeac0c
# tricky, lets stick with the libusbx name for now
aeac0c
Source0:        https://github.com/libusb/libusb/archive/v%{version}/libusb-%{version}.tar.gz
d5e699
Patch0001:      0001-fix-constant-not-in-range-of-enumerated-type.patch
d5e699
Patch0002:      0002-Doxygen-add-libusb_wrap_sys_device-in-the-API-list.patch
d5e699
Patch0003:      0003-Linux-backend-fix-ressource-leak.patch
d5e699
Patch0004:      0004-Linux-Improved-system-out-of-memory-handling.patch
d5e699
Patch0005:      0005-linux_udev-silently-ignore-bind-action.patch
d5e699
Patch0006:      0006-Add-Null-POSIX-backend.patch
d5e699
Patch0007:      0007-core-fix-build-warning-on-newer-versions-of-gcc.patch
d5e699
Patch0008:      0008-core-Fix-libusb_get_max_iso_packet_size-for-superspe.patch
d5e699
Patch0009:      0009-core-Do-not-attempt-to-destroy-a-default-context-tha.patch
d5e699
Patch0010:      0010-linux_usbfs-Wait-until-all-URBs-have-been-reaped-bef.patch
d5e699
d5e699
# Downstream only - a simple fix for a covscan issue.
d5e699
Patch1000:      1000-Downstream-fix-covscan-issue-close-fd-called-twice.patch
d5e699
d5e699
aeac0c
License:        LGPLv2+
aeac0c
Group:          System Environment/Libraries
aeac0c
URL:            http://libusb.info
aeac0c
BuildRequires:  systemd-devel doxygen libtool
aeac0c
Provides:       libusb1 = %{version}-%{release}
aeac0c
Obsoletes:      libusb1 <= 1.0.9
aeac0c
aeac0c
%description
aeac0c
This package provides a way for applications to access USB devices.
aeac0c
aeac0c
Libusbx is a fork of the original libusb, which is a fully API and ABI
aeac0c
compatible drop in for the libusb-1.0.9 release. The libusbx fork was
aeac0c
started by most of the libusb-1.0 developers, after the original libusb
aeac0c
project did not produce a new release for over 18 months.
aeac0c
aeac0c
Note that this library is not compatible with the original libusb-0.1 series,
aeac0c
if you need libusb-0.1 compatibility install the libusb package.
aeac0c
aeac0c
aeac0c
%package        devel
aeac0c
Summary:        Development files for %{name}
aeac0c
Group:          Development/Libraries
aeac0c
Requires:       %{name}%{?_isa} = %{version}-%{release}
aeac0c
Provides:       libusb1-devel = %{version}-%{release}
aeac0c
Obsoletes:      libusb1-devel <= 1.0.9
aeac0c
aeac0c
%description    devel
aeac0c
The %{name}-devel package contains libraries and header files for
aeac0c
developing applications that use %{name}.
aeac0c
aeac0c
aeac0c
%package devel-doc
aeac0c
Summary:        Development files for %{name}
aeac0c
Group:          Development/Libraries
aeac0c
Provides:       libusb1-devel-doc = %{version}-%{release}
aeac0c
Obsoletes:      libusb1-devel-doc <= 1.0.9
aeac0c
BuildArch:      noarch
aeac0c
aeac0c
%description devel-doc
aeac0c
This package contains API documentation for %{name}.
aeac0c
aeac0c
d5e699
%package        tests-examples
d5e699
Summary:        Tests and examples for %{name}
d5e699
Requires:       %{name}%{?_isa} = %{version}-%{release}
d5e699
d5e699
%description tests-examples
d5e699
This package contains tests and examples for %{name}.
d5e699
d5e699
aeac0c
%prep
d5e699
%autosetup -S git_am -n libusb-%{version}
d5e699
chmod -x examples/*.c
aeac0c
mkdir -p m4
aeac0c
autoreconf -ivf
aeac0c
aeac0c
aeac0c
%build
aeac0c
%configure --disable-static --enable-examples-build
aeac0c
make %{?_smp_mflags}
aeac0c
pushd doc
aeac0c
make docs
aeac0c
popd
d5e699
pushd tests
d5e699
make
d5e699
popd
aeac0c
aeac0c
aeac0c
%install
aeac0c
%make_install
d5e699
mkdir -p $RPM_BUILD_ROOT%{_bindir}
d5e699
install -m 755 tests/.libs/stress $RPM_BUILD_ROOT%{_bindir}/libusb-test-stress
d5e699
install -m 755 examples/.libs/testlibusb \
d5e699
    $RPM_BUILD_ROOT%{_bindir}/libusb-test-libusb
d5e699
# Some examples are very device-specific / require specific hw and miss --help
d5e699
# So we only install a subset of more generic / useful examples
d5e699
for i in fxload listdevs xusb; do
d5e699
    install -m 755 examples/.libs/$i \
d5e699
        $RPM_BUILD_ROOT%{_bindir}/libusb-example-$i
d5e699
done
aeac0c
rm $RPM_BUILD_ROOT%{_libdir}/*.la
aeac0c
aeac0c
d5e699
%check
d5e699
LD_LIBRARY_PATH=libusb/.libs ldd $RPM_BUILD_ROOT%{_bindir}/libusb-test-stress
d5e699
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-test-stress
d5e699
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-test-libusb
d5e699
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-example-listdevs
d5e699
d5e699
aeac0c
%ldconfig_scriptlets
aeac0c
aeac0c
aeac0c
%files
aeac0c
%license COPYING
015882
%doc AUTHORS README.md ChangeLog
aeac0c
%{_libdir}/*.so.*
aeac0c
aeac0c
%files devel
aeac0c
%{_includedir}/libusb-1.0
aeac0c
%{_libdir}/*.so
aeac0c
%{_libdir}/pkgconfig/libusb-1.0.pc
aeac0c
aeac0c
%files devel-doc
aeac0c
%doc doc/html examples/*.c
aeac0c
d5e699
%files tests-examples
d5e699
%{_bindir}/libusb-example-fxload
d5e699
%{_bindir}/libusb-example-listdevs
d5e699
%{_bindir}/libusb-example-xusb
d5e699
%{_bindir}/libusb-test-stress
d5e699
%{_bindir}/libusb-test-libusb
d5e699
aeac0c
aeac0c
%changelog
015882
* Wed Aug 12 2020 Victor Toso <victortoso@redhat.com> - 1.0.23-4
015882
- Install README.md as README is only a symlink to .md
015882
  Resolves: rhbz#1849682
015882
d5e699
* Fri Jun 26 2020 Uri Lublin <uril@redhat.com> - 1.0.23-3
d5e699
- Fix covscan warning
d5e699
  Related: rhbz#1825941
d5e699
d5e699
* Thu May 14 2020 Victor Toso <victortoso@redhat.com> - 1.0.23-2
d5e699
- Cherry pick a few fixes since 1.0.23 release
d5e699
- Related: rhbz#1825941
d5e699
d5e699
* Tue May 05 2020 Victor Toso <victortoso@redhat.com> - 1.0.23-1
d5e699
- Update to 1.0.23
d5e699
- Resolves: rhbz#1825941
d5e699
d5e699
* Mon Feb 17 2020 Hans de Goede <hdegoede@redhat.com> - 1.0.22-2
d5e699
- Add tests-examples subpackage for use by gating tests
d5e699
- Resolves: rhbz#1681769
d5e699
aeac0c
* Wed Aug 22 2018 Victor Toso <victortoso@redhat.com> - 1.0.22-1
aeac0c
- Update to 1.0.22
aeac0c
- Resolves: rhbz#1620092
aeac0c
aeac0c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.21-6
aeac0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
aeac0c
aeac0c
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.21-5
aeac0c
- Switch to %%ldconfig_scriptlets
aeac0c
aeac0c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.21-4
aeac0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
aeac0c
aeac0c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.21-3
aeac0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
aeac0c
aeac0c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.21-2
aeac0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aeac0c
aeac0c
* Wed Oct 26 2016 Hans de Goede <hdegoede@redhat.com> - 1.0.21-1
aeac0c
- Update to the final 1.0.21 upstream release
aeac0c
aeac0c
* Wed Aug 10 2016 Hans de Goede <hdegoede@redhat.com> - 1.0.21-0.2.rc2
aeac0c
- Update to 1.0.21-rc2 upstream release
aeac0c
- Add a bunch of locking fixes which are pending upstream
aeac0c
aeac0c
* Tue Feb 23 2016 Hans de Goede <hdegoede@redhat.com> - 1.0.21-0.1.git448584a
aeac0c
- Update to a pre 1.0.21 git snapshot to bring in libusb_interrupt_event_handler
aeac0c
  which chromium needs (rhbz#1270324)
aeac0c
aeac0c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.20-2
aeac0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
aeac0c
aeac0c
* Thu Sep 24 2015 Hans de Goede <hdegoede@redhat.com> - 1.0.20-1
aeac0c
- Update to 1.0.20 (rhbz#1262817)
aeac0c
aeac0c
* Tue Jun 16 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.19-3
aeac0c
- Use %%license
aeac0c
aeac0c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.19-2
aeac0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
aeac0c
aeac0c
* Fri Jun 13 2014 Hans de Goede <hdegoede@redhat.com> - 1.0.19-1
aeac0c
- Update to 1.0.19 final
aeac0c
aeac0c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.19-0.3.rc2
aeac0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
aeac0c
aeac0c
* Fri May 30 2014 Hans de Goede <hdegoede@redhat.com> - 1.0.19-0.2.rc2
aeac0c
- Update to 1.0.19-rc2
aeac0c
aeac0c
* Mon May 19 2014 Hans de Goede <hdegoede@redhat.com> - 1.0.19-0.1.rc1
aeac0c
- Update to 1.0.19-rc1
aeac0c
aeac0c
* Sat Mar  8 2014 Hans de Goede <hdegoede@redhat.com> - 1.0.18-1
aeac0c
- Update to 1.0.18 release (rhbz#1058000)
aeac0c
aeac0c
* Fri Sep  6 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.17-1
aeac0c
- Update to 1.0.17 final release
aeac0c
aeac0c
* Wed Aug 28 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.17-0.1.rc1
aeac0c
- New upstream 1.0.17-rc1 release
aeac0c
aeac0c
* Tue Jul 30 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-3
aeac0c
- Fix another libusb_exit deadlock (rhbz#985484)
aeac0c
aeac0c
* Fri Jul 19 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-2
aeac0c
- Fix libusb_exit sometimes (race) deadlocking on exit (rhbz#985484)
aeac0c
aeac0c
* Thu Jul 11 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-1
aeac0c
- New upstream 1.0.16 final release
aeac0c
aeac0c
* Sat Jul  6 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-0.2.rc3
aeac0c
- New upstream 1.0.16-rc3 release
aeac0c
aeac0c
* Mon Jul  1 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-0.1.rc2
aeac0c
- New upstream 1.0.16-rc2 release
aeac0c
aeac0c
* Fri Apr 19 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.15-2
aeac0c
- Replace tarbal with upstream re-spun tarbal which fixes line-ending and
aeac0c
  permission issues
aeac0c
aeac0c
* Wed Apr 17 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.15-1
aeac0c
- Upgrade to 1.0.15 (rhbz#952575)
aeac0c
aeac0c
* Tue Apr  2 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.14-3
aeac0c
- Drop devel-doc Requires from the devel package (rhbz#947297)
aeac0c
aeac0c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-2
aeac0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
aeac0c
aeac0c
* Wed Sep 26 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.14-1
aeac0c
- Upgrade to 1.0.14
aeac0c
aeac0c
* Mon Sep 24 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.13-1
aeac0c
- Upgrade to 1.0.13
aeac0c
aeac0c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.11-3
aeac0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
aeac0c
aeac0c
* Wed May 23 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.11-2
aeac0c
- Fix URL to actually point to libusbx
aeac0c
- Improve description to explain the relation between libusbx and libusb
aeac0c
- Build the examples (to test linking, they are not packaged)
aeac0c
aeac0c
* Tue May 22 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.11-1
aeac0c
- New libusbx package, replacing libusb1
aeac0c
- Switching to libusbx upstream as that actually does releases (hurray)
aeac0c
- Drop all patches (all upstream)
aeac0c
- Drop -static subpackage (there are no packages using it)