|
 |
9a5556 |
Summary: Library for accessing USB devices
|
|
 |
9a5556 |
Name: libusbx
|
|
 |
38df8a |
Version: 1.0.20
|
|
 |
38df8a |
Release: 1%{?dist}
|
|
 |
38df8a |
Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2
|
|
 |
38df8a |
# A couple of fixes from upstream
|
|
 |
38df8a |
Patch1: 0001-core-Store-different-event-types-as-a-bitmask-within.patch
|
|
 |
38df8a |
Patch2: 0002-API-Add-libusb_interrupt_event_handler-function.patch
|
|
 |
38df8a |
Patch3: 0003-core-Refactor-code-related-to-transfer-flags-and-tim.patch
|
|
 |
9a5556 |
License: LGPLv2+
|
|
 |
9a5556 |
Group: System Environment/Libraries
|
|
 |
38df8a |
URL: http://libusb.info/
|
|
 |
38df8a |
BuildRequires: systemd-devel doxygen
|
|
 |
9a5556 |
Provides: libusb1 = %{version}-%{release}
|
|
 |
9a5556 |
Obsoletes: libusb1 <= 1.0.9
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%description
|
|
 |
9a5556 |
This package provides a way for applications to access USB devices.
|
|
 |
9a5556 |
|
|
 |
9a5556 |
Libusbx is a fork of the original libusb, which is a fully API and ABI
|
|
 |
9a5556 |
compatible drop in for the libusb-1.0.9 release. The libusbx fork was
|
|
 |
9a5556 |
started by most of the libusb-1.0 developers, after the original libusb
|
|
 |
9a5556 |
project did not produce a new release for over 18 months.
|
|
 |
9a5556 |
|
|
 |
9a5556 |
Note that this library is not compatible with the original libusb-0.1 series,
|
|
 |
9a5556 |
if you need libusb-0.1 compatibility install the libusb package.
|
|
 |
9a5556 |
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%package devel
|
|
 |
9a5556 |
Summary: Development files for %{name}
|
|
 |
9a5556 |
Group: Development/Libraries
|
|
 |
9a5556 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
 |
9a5556 |
Provides: libusb1-devel = %{version}-%{release}
|
|
 |
9a5556 |
Obsoletes: libusb1-devel <= 1.0.9
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%description devel
|
|
 |
9a5556 |
The %{name}-devel package contains libraries and header files for
|
|
 |
9a5556 |
developing applications that use %{name}.
|
|
 |
9a5556 |
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%package devel-doc
|
|
 |
9a5556 |
Summary: Development files for %{name}
|
|
 |
9a5556 |
Group: Development/Libraries
|
|
 |
9a5556 |
Provides: libusb1-devel-doc = %{version}-%{release}
|
|
 |
9a5556 |
Obsoletes: libusb1-devel-doc <= 1.0.9
|
|
 |
9a5556 |
BuildArch: noarch
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%description devel-doc
|
|
 |
9a5556 |
This package contains API documentation for %{name}.
|
|
 |
9a5556 |
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%prep
|
|
 |
38df8a |
%setup -q -n libusb-%{version}
|
|
 |
9a5556 |
%patch1 -p1
|
|
 |
38df8a |
%patch2 -p1
|
|
 |
38df8a |
%patch3 -p1
|
|
 |
9a5556 |
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%build
|
|
 |
9a5556 |
%configure --disable-static --enable-examples-build
|
|
 |
38df8a |
# Parallel builds seem to be broken
|
|
 |
38df8a |
make
|
|
 |
9a5556 |
pushd doc
|
|
 |
9a5556 |
make docs
|
|
 |
9a5556 |
popd
|
|
 |
9a5556 |
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%install
|
|
 |
9a5556 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
 |
9a5556 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
 |
9a5556 |
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%post -p /sbin/ldconfig
|
|
 |
9a5556 |
%postun -p /sbin/ldconfig
|
|
 |
9a5556 |
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%files
|
|
 |
9a5556 |
%doc AUTHORS COPYING README ChangeLog
|
|
 |
9a5556 |
%{_libdir}/*.so.*
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%files devel
|
|
 |
9a5556 |
%{_includedir}/libusb-1.0
|
|
 |
9a5556 |
%{_libdir}/*.so
|
|
 |
9a5556 |
%{_libdir}/pkgconfig/libusb-1.0.pc
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%files devel-doc
|
|
 |
9a5556 |
%doc doc/html examples/*.c
|
|
 |
9a5556 |
|
|
 |
9a5556 |
|
|
 |
9a5556 |
%changelog
|
|
 |
38df8a |
* Wed Jun 8 2016 Hans de Goede <hdegoede@redhat.com> - 1.0.20-1
|
|
 |
38df8a |
- Upgrade to 1.0.20
|
|
 |
38df8a |
- Resolves: rhbz#1033092
|
|
 |
38df8a |
- Resolves: rhbz#1115797
|
|
 |
38df8a |
|
|
 |
bc65cf |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.15-4
|
|
 |
bc65cf |
- Mass rebuild 2014-01-24
|
|
 |
bc65cf |
|
|
 |
bc65cf |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.15-3
|
|
 |
bc65cf |
- Mass rebuild 2013-12-27
|
|
 |
bc65cf |
|
|
 |
9a5556 |
* Fri Apr 19 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.15-2
|
|
 |
9a5556 |
- Replace tarbal with upstream re-spun tarbal which fixes line-ending and
|
|
 |
9a5556 |
permission issues
|
|
 |
9a5556 |
|
|
 |
9a5556 |
* Wed Apr 17 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.15-1
|
|
 |
9a5556 |
- Upgrade to 1.0.15 (rhbz#952575)
|
|
 |
9a5556 |
|
|
 |
9a5556 |
* Tue Apr 2 2013 Hans de Goede <hdegoede@redhat.com> - 1.0.14-3
|
|
 |
9a5556 |
- Drop devel-doc Requires from the devel package (rhbz#947297)
|
|
 |
9a5556 |
|
|
 |
9a5556 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-2
|
|
 |
9a5556 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
 |
9a5556 |
|
|
 |
9a5556 |
* Wed Sep 26 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.14-1
|
|
 |
9a5556 |
- Upgrade to 1.0.14
|
|
 |
9a5556 |
|
|
 |
9a5556 |
* Mon Sep 24 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.13-1
|
|
 |
9a5556 |
- Upgrade to 1.0.13
|
|
 |
9a5556 |
|
|
 |
9a5556 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.11-3
|
|
 |
9a5556 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
 |
9a5556 |
|
|
 |
9a5556 |
* Wed May 23 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.11-2
|
|
 |
9a5556 |
- Fix URL to actually point to libusbx
|
|
 |
9a5556 |
- Improve description to explain the relation between libusbx and libusb
|
|
 |
9a5556 |
- Build the examples (to test linking, they are not packaged)
|
|
 |
9a5556 |
|
|
 |
9a5556 |
* Tue May 22 2012 Hans de Goede <hdegoede@redhat.com> - 1.0.11-1
|
|
 |
9a5556 |
- New libusbx package, replacing libusb1
|
|
 |
9a5556 |
- Switching to libusbx upstream as that actually does releases (hurray)
|
|
 |
9a5556 |
- Drop all patches (all upstream)
|
|
 |
9a5556 |
- Drop -static subpackage (there are no packages using it)
|