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