]>
Commit | Line | Data |
---|---|---|
976d1e66 ER |
1 | Summary: USB network redirection protocol libraries |
2 | Name: usbredir | |
3 | Version: 0.3.1 | |
4 | Release: 1 | |
5 | License: LGPL v2+ | |
6 | Group: Libraries | |
7 | URL: http://cgit.freedesktop.org/~jwrdegoede/usbredir/ | |
8 | Source0: http://people.fedoraproject.org/~jwrdegoede/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 17486f1662c65caab805487252274dc6 | |
10 | BuildRequires: libusb-devel >= 1.0.9 | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | usbredir is a protocol for redirection USB traffic from a single USB | |
15 | device, to a different (virtual) machine then the one to which the USB | |
16 | device is attached. This package contains a number of libraries to | |
17 | help implementing support for usbredir: | |
18 | ||
19 | usbredirparser: A library containing the parser for the usbredir | |
20 | protocol | |
21 | ||
22 | usbredirhost: A library implementing the usb-host side of a usbredir | |
23 | connection. All that an application wishing to implement an usb-host | |
24 | needs to do is: | |
25 | - Provide a libusb device handle for the device | |
26 | - Provide write and read callbacks for the actual transport of | |
27 | usbredir data | |
28 | - Monitor for usbredir and libusb read/write events and call their | |
29 | handlers | |
30 | ||
31 | %package devel | |
32 | Summary: Development files for usbredir | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | This package contains libraries and header files for developing | |
38 | applications that use usbredir. | |
39 | ||
40 | %package server | |
41 | Summary: Simple USB-host TCP server | |
42 | License: GPL v2+ | |
43 | Group: Daemons | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | ||
46 | %description server | |
47 | A simple USB-host TCP server, using libusbredirhost. | |
48 | ||
49 | %prep | |
50 | %setup -q | |
51 | ||
52 | %build | |
53 | %{__make} \ | |
3aa645d5 ER |
54 | CC="%{__cc}" \ |
55 | CFLAGS="%{rpmcflags}" \ | |
976d1e66 ER |
56 | PREFIX=%{_prefix} \ |
57 | LIBDIR=%{_libdir} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | %{__make} install \ | |
62 | PREFIX=%{_prefix} \ | |
63 | LIBDIR=%{_libdir} \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post -p /sbin/ldconfig | |
70 | %postun -p /sbin/ldconfig | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc ChangeLog README TODO | |
3aa645d5 ER |
75 | # no versioned file, so no ghosts |
76 | %attr(755,root,root) %{_libdir}/libusbredirhost.so.1 | |
77 | %attr(755,root,root) %{_libdir}/libusbredirparser.so.0 | |
976d1e66 ER |
78 | |
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
81 | %doc usb-redirection-protocol.txt | |
3aa645d5 ER |
82 | %{_includedir}/usbredirhost.h |
83 | %{_includedir}/usbredirparser.h | |
84 | %{_includedir}/usbredirproto.h | |
85 | %{_libdir}/libusbredirhost.so | |
86 | %{_libdir}/libusbredirparser.so | |
87 | %{_pkgconfigdir}/libusbredirhost.pc | |
88 | %{_pkgconfigdir}/libusbredirparser.pc | |
976d1e66 ER |
89 | |
90 | %files server | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_sbindir}/usbredirserver |