Blame SPECS/libusbx.spec

39782c
Summary:        Library for accessing USB devices
39782c
Name:           libusbx
46a7df
%define upstream 1.0.26
46a7df
Version:        %( echo %{upstream} | sed s/-/~/ )
46a7df
Release:        1%{?dist}
39782c
# upstream libusbx has merged back with libusb and is now called libusb again
39782c
# but we already have a libusb package for the old libusb-compat-0.1, renaming
39782c
# that to libusb-compat while at the same time giving this its name is a bit
39782c
# tricky, lets stick with the libusbx name for now
46a7df
Source0:        https://github.com/libusb/libusb/releases/download/v%{upstream}/libusb-%{upstream}.tar.bz2
39782c
License:        LGPLv2+
39782c
URL:            http://libusb.info
39782c
BuildRequires:  systemd-devel doxygen libtool
46a7df
BuildRequires:  make
46a7df
#BuildRequires:  umockdev-devel >= 0.16.0
39782c
Provides:       libusb1 = %{version}-%{release}
39782c
Obsoletes:      libusb1 <= 1.0.9
39782c
46a7df
# Pull in coverity related fixes
46a7df
Patch9991:      https://github.com/libusb/libusb/pull/1067.patch
39782c
39782c
%description
39782c
This package provides a way for applications to access USB devices.
39782c
39782c
Libusbx is a fork of the original libusb, which is a fully API and ABI
39782c
compatible drop in for the libusb-1.0.9 release. The libusbx fork was
39782c
started by most of the libusb-1.0 developers, after the original libusb
39782c
project did not produce a new release for over 18 months.
39782c
39782c
Note that this library is not compatible with the original libusb-0.1 series,
39782c
if you need libusb-0.1 compatibility install the libusb package.
39782c
39782c
39782c
%package        devel
39782c
Summary:        Development files for %{name}
39782c
Requires:       %{name}%{?_isa} = %{version}-%{release}
39782c
Provides:       libusb1-devel = %{version}-%{release}
39782c
Obsoletes:      libusb1-devel <= 1.0.9
39782c
39782c
%description    devel
39782c
The %{name}-devel package contains libraries and header files for
39782c
developing applications that use %{name}.
39782c
39782c
39782c
%package devel-doc
39782c
Summary:        Development files for %{name}
39782c
Provides:       libusb1-devel-doc = %{version}-%{release}
39782c
Obsoletes:      libusb1-devel-doc <= 1.0.9
39782c
BuildArch:      noarch
39782c
39782c
%description devel-doc
39782c
This package contains API documentation for %{name}.
39782c
39782c
39782c
%package        tests-examples
39782c
Summary:        Tests and examples for %{name}
39782c
Requires:       %{name}%{?_isa} = %{version}-%{release}
39782c
39782c
%description tests-examples
39782c
This package contains tests and examples for %{name}.
39782c
39782c
39782c
%prep
46a7df
%autosetup -p1 -n libusb-%{upstream}
39782c
chmod -x examples/*.c
39782c
mkdir -p m4
39782c
39782c
39782c
%build
39782c
%configure --disable-static --enable-examples-build
39782c
%{make_build}
39782c
pushd doc
39782c
make docs
39782c
popd
39782c
pushd tests
39782c
make
39782c
popd
39782c
39782c
39782c
%install
39782c
%{make_install}
39782c
mkdir -p $RPM_BUILD_ROOT%{_bindir}
39782c
install -m 755 tests/.libs/stress $RPM_BUILD_ROOT%{_bindir}/libusb-test-stress
46a7df
#install -m 755 tests/.libs/umockdev $RPM_BUILD_ROOT%{_bindir}/libusb-test-umockdev
39782c
install -m 755 examples/.libs/testlibusb \
39782c
    $RPM_BUILD_ROOT%{_bindir}/libusb-test-libusb
39782c
# Some examples are very device-specific / require specific hw and miss --help
39782c
# So we only install a subset of more generic / useful examples
39782c
for i in fxload listdevs xusb; do
39782c
    install -m 755 examples/.libs/$i \
39782c
        $RPM_BUILD_ROOT%{_bindir}/libusb-example-$i
39782c
done
39782c
rm $RPM_BUILD_ROOT%{_libdir}/*.la
39782c
39782c
39782c
%check
39782c
LD_LIBRARY_PATH=libusb/.libs ldd $RPM_BUILD_ROOT%{_bindir}/libusb-test-stress
39782c
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-test-stress
46a7df
#LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-test-umockdev
39782c
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-test-libusb
39782c
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-example-listdevs
39782c
39782c
39782c
%ldconfig_scriptlets
39782c
39782c
39782c
%files
39782c
%license COPYING
39782c
%doc AUTHORS README ChangeLog
39782c
%{_libdir}/*.so.*
39782c
39782c
%files devel
39782c
%{_includedir}/libusb-1.0
39782c
%{_libdir}/*.so
39782c
%{_libdir}/pkgconfig/libusb-1.0.pc
39782c
39782c
%files devel-doc
39782c
%doc doc/api-1.0 examples/*.c
39782c
39782c
%files tests-examples
39782c
%{_bindir}/libusb-example-fxload
39782c
%{_bindir}/libusb-example-listdevs
39782c
%{_bindir}/libusb-example-xusb
39782c
%{_bindir}/libusb-test-stress
46a7df
#%{_bindir}/libusb-test-umockdev
39782c
%{_bindir}/libusb-test-libusb
39782c
39782c
39782c
%changelog
46a7df
* Tue Apr 12 2022 Benjamin Berg <bberg@redhat.com> - 1.0.26
46a7df
- Pull in new upstream libusb containing important regression fixes
46a7df
  Resolves: #2058730
46a7df
  Resolves: #1938801
46a7df
46a7df
* Mon Feb 28 2022 Benjamin Berg <bberg@redhat.com> - 1.0.25-3
46a7df
- Updated and new regression fixes
46a7df
  Resolves: #2058730
46a7df
  Related: #1938801
46a7df
46a7df
* Tue Feb 15 2022 Benjamin Berg <bberg@redhat.com> - 1.0.25-2
46a7df
- Fix a crash if a transfer outlives closing the device
46a7df
  Related: #1938801
46a7df
46a7df
* Thu Feb 10 2022 Benjamin Berg <bberg@redhat.com> - 1.0.25-1
46a7df
- Update to 1.0.25
46a7df
- Fix a crash after libusb_exit API has been misused
46a7df
- Add patchset to fix covscan reports
46a7df
  Resolves: #1938801
46a7df
39782c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.24-4
39782c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
39782c
  Related: rhbz#1991688
39782c
39782c
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.24-3
39782c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
39782c
39782c
* Tue Feb 16 2021 Benjamin Berg <bberg@redhat.com> - 1.0.24-2
39782c
- Pull in upstream bugfixes
39782c
  Resolves: #1929148
39782c
39782c
* Thu Feb 11 2021 Victor Toso <victortoso@redhat.com> - 1.0.24-1
39782c
- Update to 1.0.24
39782c
39782c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.23-3
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
39782c
39782c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.23-2
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
39782c
39782c
* Thu Mar 26 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.23-1
39782c
- Update to 1.0.23
39782c
39782c
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.22-5
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
39782c
39782c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.22-4
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
39782c
39782c
* Wed Mar 13 2019 Hans de Goede <hdegoede@redhat.com> - 1.0.22-3
39782c
- Add tests and examples to a new tests-examples subpackage, so that these
39782c
  can be used for the upcoming gating stuff
39782c
- Add %%check using some of the tests/examples
39782c
39782c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.22-2
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
39782c
39782c
* Tue Aug 07 2018 Victor Toso <victortoso@redhat.com> - 1.0.22-1
39782c
- Update to 1.0.22
39782c
39782c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.21-7
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
39782c
39782c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.21-6
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
39782c
39782c
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.21-5
39782c
- Switch to %%ldconfig_scriptlets
39782c
39782c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.21-4
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
39782c
39782c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.21-3
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
39782c
39782c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.21-2
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
39782c
39782c
* Wed Oct 26 2016 Hans de Goede <hdegoede@redhat.com> - 1.0.21-1
39782c
- Update to the final 1.0.21 upstream release
39782c
39782c
* Wed Aug 10 2016 Hans de Goede <hdegoede@redhat.com> - 1.0.21-0.2.rc2
39782c
- Update to 1.0.21-rc2 upstream release
39782c
- Add a bunch of locking fixes which are pending upstream
39782c
39782c
* Tue Feb 23 2016 Hans de Goede <hdegoede@redhat.com> - 1.0.21-0.1.git448584a
39782c
- Update to a pre 1.0.21 git snapshot to bring in libusb_interrupt_event_handler
39782c
  which chromium needs (rhbz#1270324)
39782c
39782c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.20-2
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
39782c
39782c
* Thu Sep 24 2015 Hans de Goede <hdegoede@redhat.com> - 1.0.20-1
39782c
- Update to 1.0.20 (rhbz#1262817)
39782c
39782c
* Tue Jun 16 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.19-3
39782c
- Use %%license
39782c
39782c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.19-2
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
39782c
39782c
* Fri Jun 13 2014 Hans de Goede <hdegoede@redhat.com> - 1.0.19-1
39782c
- Update to 1.0.19 final
39782c
39782c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.19-0.3.rc2
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
39782c
39782c
* Fri May 30 2014 Hans de Goede <hdegoede@redhat.com> - 1.0.19-0.2.rc2
39782c
- Update to 1.0.19-rc2
39782c
39782c
* Mon May 19 2014 Hans de Goede <hdegoede@redhat.com> - 1.0.19-0.1.rc1
39782c
- Update to 1.0.19-rc1
39782c
39782c
* Sat Mar  8 2014 Hans de Goede <hdegoede@redhat.com> - 1.0.18-1
39782c
- Update to 1.0.18 release (rhbz#1058000)
39782c
39782c
* Fri Sep  6 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.17-1
39782c
- Update to 1.0.17 final release
39782c
39782c
* Wed Aug 28 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.17-0.1.rc1
39782c
- New upstream 1.0.17-rc1 release
39782c
39782c
* Tue Jul 30 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-3
39782c
- Fix another libusb_exit deadlock (rhbz#985484)
39782c
39782c
* Fri Jul 19 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-2
39782c
- Fix libusb_exit sometimes (race) deadlocking on exit (rhbz#985484)
39782c
39782c
* Thu Jul 11 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-1
39782c
- New upstream 1.0.16 final release
39782c
39782c
* Sat Jul  6 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-0.2.rc3
39782c
- New upstream 1.0.16-rc3 release
39782c
39782c
* Mon Jul  1 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.16-0.1.rc2
39782c
- New upstream 1.0.16-rc2 release
39782c
39782c
* Fri Apr 19 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.15-2
39782c
- Replace tarbal with upstream re-spun tarbal which fixes line-ending and
39782c
  permission issues
39782c
39782c
* Wed Apr 17 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.15-1
39782c
- Upgrade to 1.0.15 (rhbz#952575)
39782c
39782c
* Tue Apr  2 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.14-3
39782c
- Drop devel-doc Requires from the devel package (rhbz#947297)
39782c
39782c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-2
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
39782c
39782c
* Wed Sep 26 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.14-1
39782c
- Upgrade to 1.0.14
39782c
39782c
* Mon Sep 24 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.13-1
39782c
- Upgrade to 1.0.13
39782c
39782c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.11-3
39782c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
39782c
39782c
* Wed May 23 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.11-2
39782c
- Fix URL to actually point to libusbx
39782c
- Improve description to explain the relation between libusbx and libusb
39782c
- Build the examples (to test linking, they are not packaged)
39782c
39782c
* Tue May 22 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.11-1
39782c
- New libusbx package, replacing libusb1
39782c
- Switching to libusbx upstream as that actually does releases (hurray)
39782c
- Drop all patches (all upstream)
39782c
- Drop -static subpackage (there are no packages using it)