9f8f3a
Name:           usbredir
9f8f3a
Version:        0.7.1
9f8f3a
Release:        3%{?dist}
9f8f3a
Summary:        USB network redirection protocol libraries
9f8f3a
Group:          System Environment/Libraries
9f8f3a
License:        LGPLv2+
9f8f3a
URL:            https://www.spice-space.org
9f8f3a
Source0:        https://www.spice-space.org/download/%{name}/%{name}-%{version}.tar.bz2
9f8f3a
# Some patches from upstream git (drop at next rebase)
9f8f3a
Patch1:         0001-usbredirhost-Fix-Wformat-warning.patch
9f8f3a
Patch2:         0002-Don-t-print-warning-when-resetting-a-missing-device.patch
9f8f3a
BuildRequires:  libusb1-devel >= 1.0.20
9f8f3a
9f8f3a
%description
9f8f3a
The usbredir libraries allow USB devices to be used on remote and/or virtual
9f8f3a
hosts over TCP.  The following libraries are provided:
9f8f3a
9f8f3a
usbredirparser:
9f8f3a
A library containing the parser for the usbredir protocol
9f8f3a
9f8f3a
usbredirhost:
9f8f3a
A library implementing the USB host side of a usbredir connection.
9f8f3a
All that an application wishing to implement a USB host needs to do is:
9f8f3a
* Provide a libusb device handle for the device
9f8f3a
* Provide write and read callbacks for the actual transport of usbredir data
9f8f3a
* Monitor for usbredir and libusb read/write events and call their handlers
9f8f3a
9f8f3a
9f8f3a
%package        devel
9f8f3a
Summary:        Development files for %{name}
9f8f3a
Group:          Development/Libraries
9f8f3a
Requires:       %{name}%{?_isa} = %{version}-%{release}
9f8f3a
9f8f3a
%description    devel
9f8f3a
The %{name}-devel package contains libraries and header files for
9f8f3a
developing applications that use %{name}.
9f8f3a
9f8f3a
9f8f3a
%package        server
9f8f3a
Summary:        Simple USB host TCP server
9f8f3a
Group:          System Environment/Daemons
9f8f3a
License:        GPLv2+
9f8f3a
Requires:       %{name}%{?_isa} = %{version}-%{release}
9f8f3a
9f8f3a
%description    server
9f8f3a
A simple USB host TCP server, using libusbredirhost.
9f8f3a
9f8f3a
9f8f3a
%prep
9f8f3a
%setup -q
9f8f3a
%patch1 -p1
9f8f3a
%patch2 -p1
9f8f3a
9f8f3a
9f8f3a
%build
9f8f3a
%configure --disable-static
9f8f3a
make %{?_smp_mflags} V=1
9f8f3a
9f8f3a
9f8f3a
%install
9f8f3a
%make_install
9f8f3a
rm $RPM_BUILD_ROOT%{_libdir}/libusbredir*.la
9f8f3a
9f8f3a
9f8f3a
%post -p /sbin/ldconfig
9f8f3a
%postun -p /sbin/ldconfig
9f8f3a
9f8f3a
9f8f3a
%files
9f8f3a
%doc ChangeLog COPYING.LIB README TODO 
9f8f3a
%{_libdir}/libusbredir*.so.*
9f8f3a
9f8f3a
%files devel
9f8f3a
%doc usb-redirection-protocol.txt README.multi-thread
9f8f3a
%{_includedir}/usbredir*.h
9f8f3a
%{_libdir}/libusbredir*.so
9f8f3a
%{_libdir}/pkgconfig/libusbredir*.pc
9f8f3a
9f8f3a
%files server
9f8f3a
%doc COPYING
9f8f3a
%{_sbindir}/usbredirserver
9f8f3a
%{_mandir}/man1/usbredirserver.1*
9f8f3a
9f8f3a
9f8f3a
%changelog
9f8f3a
* Fri Nov 17 2017 Jonathon Jongsma <jjongsma@redhat.com> - 0.7.1-3
9f8f3a
- Don't print a warning when resetting a removed device
9f8f3a
  Resolves: rhbz#1442963
9f8f3a
9f8f3a
* Tue Dec 20 2016 Pavel Grunt <pgrunt@redhat.com> - 0.7.1-2
9f8f3a
- Rebuild to add USB3 support
9f8f3a
  Resolves: rhbz#976685
9f8f3a
9f8f3a
* Wed Jun  8 2016 Victor Toso <victortoso@redhat.com> - 0.7.1-1
9f8f3a
- Rebase to latest upstream: 0.7.1
9f8f3a
  Resolves: rhbz#1033101
9f8f3a
9f8f3a
* Mon Feb 29 2016 Victor Toso <victortoso@redhat.com> - 0.6-8
9f8f3a
- Fix migration due lack of capabilities from source host
9f8f3a
  Resolves: rhbz#1185167
9f8f3a
- New callback to drop isoc packets in order to avoid high memory
9f8f3a
  consumption in the client
9f8f3a
  Resolves: rhbz#1312913
9f8f3a
9f8f3a
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.6-7
9f8f3a
- Mass rebuild 2014-01-24
9f8f3a
9f8f3a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.6-6
9f8f3a
- Mass rebuild 2013-12-27
9f8f3a
9f8f3a
* Tue Sep 10 2013 Hans de Goede <hdegoede@redhat.com> - 0.6-5
9f8f3a
- Use the new libusb autodetach kernel driver functionality
9f8f3a
- Fix a usbredirparser bug which causes tcp/ip redir to not work (rhbz#1005015)
9f8f3a
9f8f3a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-4
9f8f3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9f8f3a
9f8f3a
* Mon May 13 2013 Hans de Goede <hdegoede@redhat.com> - 0.6-3
9f8f3a
- Fix usbredirserver not listening for ipv6 connections (rhbz#957470)
9f8f3a
- Fix a few (harmless) coverity warnings
9f8f3a
9f8f3a
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
9f8f3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9f8f3a
9f8f3a
* Thu Dec 13 2012 Hans de Goede <hdegoede@redhat.com> - 0.6-1
9f8f3a
- Update to upstream 0.6 release
9f8f3a
9f8f3a
* Tue Sep 25 2012 Hans de Goede <hdegoede@redhat.com> - 0.5.2-1
9f8f3a
- Update to upstream 0.5.2 release
9f8f3a
9f8f3a
* Wed Sep 19 2012 Hans de Goede <hdegoede@redhat.com> - 0.5.1-1
9f8f3a
- Update to upstream 0.5.1 release
9f8f3a
9f8f3a
* Fri Sep  7 2012 Hans de Goede <hdegoede@redhat.com> - 0.5-1
9f8f3a
- Update to upstream 0.5 release
9f8f3a
9f8f3a
* Mon Jul 30 2012 Hans de Goede <hdegoede@redhat.com> - 0.4.3-3
9f8f3a
- Add 2 fixes from upstream fixing issues with some bulk devices (rhbz#842358)
9f8f3a
9f8f3a
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-2
9f8f3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9f8f3a
9f8f3a
* Mon Apr  2 2012 Hans de Goede <hdegoede@redhat.com> - 0.4.3-1
9f8f3a
- Update to upstream 0.4.3 release
9f8f3a
9f8f3a
* Tue Mar  6 2012 Hans de Goede <hdegoede@redhat.com> - 0.4.2-1
9f8f3a
- Update to upstream 0.4.2 release
9f8f3a
9f8f3a
* Sat Feb 25 2012 Hans de Goede <hdegoede@redhat.com> - 0.4.1-1
9f8f3a
- Update to upstream 0.4.1 release
9f8f3a
9f8f3a
* Thu Feb 23 2012 Hans de Goede <hdegoede@redhat.com> - 0.4-1
9f8f3a
- Update to upstream 0.4 release
9f8f3a
9f8f3a
* Thu Jan 12 2012 Hans de Goede <hdegoede@redhat.com> - 0.3.3-1
9f8f3a
- Update to upstream 0.3.3 release
9f8f3a
9f8f3a
* Tue Jan  3 2012 Hans de Goede <hdegoede@redhat.com> 0.3.2-1
9f8f3a
- Update to upstream 0.3.2 release
9f8f3a
9f8f3a
* Wed Aug 24 2011 Hans de Goede <hdegoede@redhat.com> 0.3.1-1
9f8f3a
- Update to upstream 0.3.1 release
9f8f3a
9f8f3a
* Thu Jul 14 2011 Hans de Goede <hdegoede@redhat.com> 0.3-1
9f8f3a
- Initial Fedora package