From dbb70c09a2700830c4191cb2b685198687db9325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 15 Oct 2020 17:54:26 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/libusbx#baffb7e602fc8ba630c1a3d6c475333abd48541e --- .gitignore | 19 ++++ libusbx.rpmlintrc | 6 ++ libusbx.spec | 252 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 278 insertions(+) create mode 100644 libusbx.rpmlintrc create mode 100644 libusbx.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..d0daabd 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,19 @@ +/libusbx-1.0.11.tar.bz2 +/libusbx-1.0.13.tar.bz2 +/libusbx-1.0.14.tar.bz2 +/libusbx-1.0.15.tar.bz2 +/libusbx-1.0.16-rc2.tar.bz2 +/libusbx-1.0.16-rc3.tar.bz2 +/libusbx-1.0.16.tar.bz2 +/libusbx-1.0.17-rc1.tar.bz2 +/libusbx-1.0.17.tar.bz2 +/libusb-1.0.18.tar.bz2 +/libusb-1.0.19-rc1.tar.bz2 +/libusb-1.0.19-rc2.tar.bz2 +/libusb-1.0.19.tar.bz2 +/libusb-1.0.20.tar.bz2 +/libusb-1.0.21-448584a.tar.gz +/libusb-1.0.21-rc2.tar.gz +/libusb-1.0.21.tar.bz2 +/libusb-1.0.22.tar.bz2 +/libusb-1.0.23.tar.bz2 diff --git a/libusbx.rpmlintrc b/libusbx.rpmlintrc new file mode 100644 index 0000000..b3776ca --- /dev/null +++ b/libusbx.rpmlintrc @@ -0,0 +1,6 @@ +# The docs are on other subpackages +addFilter(r'no-documentation') +# Only the tests / example lack manpages, and there are no plans to fix this +addFilter(r'no-manual-page-for-binary') +# "libusb" is not a spelling error +addFilter(r'spelling-error') diff --git a/libusbx.spec b/libusbx.spec new file mode 100644 index 0000000..0af8b4f --- /dev/null +++ b/libusbx.spec @@ -0,0 +1,252 @@ +Summary: Library for accessing USB devices +Name: libusbx +Version: 1.0.23 +Release: 2%{?dist} +# upstream libusbx has merged back with libusb and is now called libusb again +# but we already have a libusb package for the old libusb-compat-0.1, renaming +# that to libusb-compat while at the same time giving this its name is a bit +# tricky, lets stick with the libusbx name for now +Source0: https://github.com/libusb/libusb/releases/download/v%{version}/libusb-%{version}.tar.bz2 +License: LGPLv2+ +URL: http://libusb.info +BuildRequires: systemd-devel doxygen libtool +Provides: libusb1 = %{version}-%{release} +Obsoletes: libusb1 <= 1.0.9 + +%description +This package provides a way for applications to access USB devices. + +Libusbx is a fork of the original libusb, which is a fully API and ABI +compatible drop in for the libusb-1.0.9 release. The libusbx fork was +started by most of the libusb-1.0 developers, after the original libusb +project did not produce a new release for over 18 months. + +Note that this library is not compatible with the original libusb-0.1 series, +if you need libusb-0.1 compatibility install the libusb package. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Provides: libusb1-devel = %{version}-%{release} +Obsoletes: libusb1-devel <= 1.0.9 + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%package devel-doc +Summary: Development files for %{name} +Provides: libusb1-devel-doc = %{version}-%{release} +Obsoletes: libusb1-devel-doc <= 1.0.9 +BuildArch: noarch + +%description devel-doc +This package contains API documentation for %{name}. + + +%package tests-examples +Summary: Tests and examples for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tests-examples +This package contains tests and examples for %{name}. + + +%prep +%autosetup -p1 -n libusb-%{version} +chmod -x examples/*.c +mkdir -p m4 + + +%build +%configure --disable-static --enable-examples-build +%{make_build} +pushd doc +make docs +popd +pushd tests +make +popd + + +%install +%{make_install} +mkdir -p $RPM_BUILD_ROOT%{_bindir} +install -m 755 tests/.libs/stress $RPM_BUILD_ROOT%{_bindir}/libusb-test-stress +install -m 755 examples/.libs/testlibusb \ + $RPM_BUILD_ROOT%{_bindir}/libusb-test-libusb +# Some examples are very device-specific / require specific hw and miss --help +# So we only install a subset of more generic / useful examples +for i in fxload listdevs xusb; do + install -m 755 examples/.libs/$i \ + $RPM_BUILD_ROOT%{_bindir}/libusb-example-$i +done +rm $RPM_BUILD_ROOT%{_libdir}/*.la + + +%check +LD_LIBRARY_PATH=libusb/.libs ldd $RPM_BUILD_ROOT%{_bindir}/libusb-test-stress +LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-test-stress +LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-test-libusb +LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-example-listdevs + + +%ldconfig_scriptlets + + +%files +%license COPYING +%doc AUTHORS README ChangeLog +%{_libdir}/*.so.* + +%files devel +%{_includedir}/libusb-1.0 +%{_libdir}/*.so +%{_libdir}/pkgconfig/libusb-1.0.pc + +%files devel-doc +%doc doc/html examples/*.c + +%files tests-examples +%{_bindir}/libusb-example-fxload +%{_bindir}/libusb-example-listdevs +%{_bindir}/libusb-example-xusb +%{_bindir}/libusb-test-stress +%{_bindir}/libusb-test-libusb + + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 1.0.23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Mar 26 2020 Peter Robinson - 1.0.23-1 +- Update to 1.0.23 + +* Wed Jan 29 2020 Fedora Release Engineering - 1.0.22-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1.0.22-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Mar 13 2019 Hans de Goede - 1.0.22-3 +- Add tests and examples to a new tests-examples subpackage, so that these + can be used for the upcoming gating stuff +- Add %%check using some of the tests/examples + +* Fri Feb 01 2019 Fedora Release Engineering - 1.0.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Aug 07 2018 Victor Toso - 1.0.22-1 +- Update to 1.0.22 + +* Fri Jul 13 2018 Fedora Release Engineering - 1.0.21-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.0.21-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 1.0.21-5 +- Switch to %%ldconfig_scriptlets + +* Thu Aug 03 2017 Fedora Release Engineering - 1.0.21-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.0.21-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.0.21-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Oct 26 2016 Hans de Goede - 1.0.21-1 +- Update to the final 1.0.21 upstream release + +* Wed Aug 10 2016 Hans de Goede - 1.0.21-0.2.rc2 +- Update to 1.0.21-rc2 upstream release +- Add a bunch of locking fixes which are pending upstream + +* Tue Feb 23 2016 Hans de Goede - 1.0.21-0.1.git448584a +- Update to a pre 1.0.21 git snapshot to bring in libusb_interrupt_event_handler + which chromium needs (rhbz#1270324) + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.20-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Sep 24 2015 Hans de Goede - 1.0.20-1 +- Update to 1.0.20 (rhbz#1262817) + +* Tue Jun 16 2015 Peter Robinson 1.0.19-3 +- Use %%license + +* Sun Aug 17 2014 Fedora Release Engineering - 1.0.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Fri Jun 13 2014 Hans de Goede - 1.0.19-1 +- Update to 1.0.19 final + +* Sat Jun 07 2014 Fedora Release Engineering - 1.0.19-0.3.rc2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri May 30 2014 Hans de Goede - 1.0.19-0.2.rc2 +- Update to 1.0.19-rc2 + +* Mon May 19 2014 Hans de Goede - 1.0.19-0.1.rc1 +- Update to 1.0.19-rc1 + +* Sat Mar 8 2014 Hans de Goede - 1.0.18-1 +- Update to 1.0.18 release (rhbz#1058000) + +* Fri Sep 6 2013 Hans de Goede - 1.0.17-1 +- Update to 1.0.17 final release + +* Wed Aug 28 2013 Hans de Goede - 1.0.17-0.1.rc1 +- New upstream 1.0.17-rc1 release + +* Tue Jul 30 2013 Hans de Goede - 1.0.16-3 +- Fix another libusb_exit deadlock (rhbz#985484) + +* Fri Jul 19 2013 Hans de Goede - 1.0.16-2 +- Fix libusb_exit sometimes (race) deadlocking on exit (rhbz#985484) + +* Thu Jul 11 2013 Hans de Goede - 1.0.16-1 +- New upstream 1.0.16 final release + +* Sat Jul 6 2013 Hans de Goede - 1.0.16-0.2.rc3 +- New upstream 1.0.16-rc3 release + +* Mon Jul 1 2013 Hans de Goede - 1.0.16-0.1.rc2 +- New upstream 1.0.16-rc2 release + +* Fri Apr 19 2013 Hans de Goede - 1.0.15-2 +- Replace tarbal with upstream re-spun tarbal which fixes line-ending and + permission issues + +* Wed Apr 17 2013 Hans de Goede - 1.0.15-1 +- Upgrade to 1.0.15 (rhbz#952575) + +* Tue Apr 2 2013 Hans de Goede - 1.0.14-3 +- Drop devel-doc Requires from the devel package (rhbz#947297) + +* Thu Feb 14 2013 Fedora Release Engineering - 1.0.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Sep 26 2012 Hans de Goede - 1.0.14-1 +- Upgrade to 1.0.14 + +* Mon Sep 24 2012 Hans de Goede - 1.0.13-1 +- Upgrade to 1.0.13 + +* Thu Jul 19 2012 Fedora Release Engineering - 1.0.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed May 23 2012 Hans de Goede - 1.0.11-2 +- Fix URL to actually point to libusbx +- Improve description to explain the relation between libusbx and libusb +- Build the examples (to test linking, they are not packaged) + +* Tue May 22 2012 Hans de Goede - 1.0.11-1 +- New libusbx package, replacing libusb1 +- Switching to libusbx upstream as that actually does releases (hurray) +- Drop all patches (all upstream) +- Drop -static subpackage (there are no packages using it) diff --git a/sources b/sources new file mode 100644 index 0000000..104c51b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libusb-1.0.23.tar.bz2) = 73430ad31dd405e76a9c6c55086961003989c44964e2735b5076f9ca849e3f6fe71d10a66b74b111f0c34a0d2cb744b9ca105863c552123fce4ec0bbdd2ec15b