Blame SPECS/libusbx.spec

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