[usbredir] Initial import of usbredir
Hans de Goede
jwrdegoede at fedoraproject.org
Sat Jul 16 12:31:34 UTC 2011
commit 8660c5d98d63bfa597c91a20c201597985c61f15
Author: Hans de Goede <hdegoede at redhat.com>
Date: Sat Jul 16 14:32:38 2011 +0200
Initial import of usbredir
.gitignore | 1 +
sources | 1 +
usbredir.spec | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 88 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e809b9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/usbredir-0.3.tar.bz2
diff --git a/sources b/sources
index e69de29..b45d702 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d08c10e5065f5613f3f8c18b0dac5cde usbredir-0.3.tar.bz2
diff --git a/usbredir.spec b/usbredir.spec
new file mode 100644
index 0000000..3fa7636
--- /dev/null
+++ b/usbredir.spec
@@ -0,0 +1,86 @@
+Name: usbredir
+Version: 0.3
+Release: 1%{?dist}
+Summary: USB network redirection protocol libraries
+Group: System Environment/Libraries
+License: LGPLv2+
+# I've requested a fedorahosted project once that is in place these 2 should
+# be updated to point there
+URL: http://cgit.freedesktop.org/~jwrdegoede/usbredir/
+Source0: http://people.fedoraproject.org/~jwrdegoede/%{name}-%{version}.tar.bz2
+BuildRequires: libusb1-devel >= 1.0.9
+
+%description
+usbredir is a protocol for redirection USB traffic from a single USB device,
+to a different (virtual) machine then the one to which the USB device is
+attached. This package contains a number of libraries to help implementing
+support for usbredir:
+
+usbredirparser:
+A library containing the parser for the usbredir protocol
+
+usbredirhost:
+A library implementing the usb-host side of a usbredir connection.
+All that an application wishing to implement an usb-host needs to do is:
+* Provide a libusb device handle for the device
+* Provide write and read callbacks for the actual transport of usbredir data
+* Monitor for usbredir and libusb read/write events and call their handlers
+
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%package server
+Summary: Simple usb-host tcp server
+Group: System Environment/Daemons
+License: GPLv2+
+Requires: %{name} = %{version}-%{release}
+
+%description server
+A simple usb-host tcp server, using libusbredirhost.
+
+
+%prep
+%setup -q
+
+
+%build
+make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
+ PREFIX=%{_prefix} LIBDIR=%{_libdir}
+
+%install
+make install PREFIX=%{_prefix} LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc ChangeLog COPYING.LIB README TODO
+%{_libdir}/libusbredir*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc usb-redirection-protocol.txt
+%{_includedir}/usbredir*.h
+%{_libdir}/libusbredir*.so
+%{_libdir}/pkgconfig/libusbredir*.pc
+
+%files server
+%defattr(-,root,root,-)
+%doc COPYING
+%{_sbindir}/usbredirserver
+
+
+%changelog
+* Thu Jul 14 2011 Hans de Goede <hdegoede at redhat.com> 0.3-1
+- Initial Fedora package
More information about the scm-commits
mailing list