]>
Commit | Line | Data |
---|---|---|
976d1e66 | 1 | Summary: USB network redirection protocol libraries |
30aff6b7 | 2 | Summary(pl.UTF-8): Biblioteki protokołu przekierowania USB przez sieć |
976d1e66 ER |
3 | Name: usbredir |
4 | Version: 0.3.1 | |
5 | Release: 1 | |
6 | License: LGPL v2+ | |
7 | Group: Libraries | |
30aff6b7 | 8 | Source0: http://spice-space.org/download/usbredir/%{name}-%{version}.tar.bz2 |
976d1e66 | 9 | # Source0-md5: 17486f1662c65caab805487252274dc6 |
30aff6b7 | 10 | URL: http://cgit.freedesktop.org/~jwrdegoede/usbredir/ |
976d1e66 ER |
11 | BuildRequires: libusb-devel >= 1.0.9 |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | usbredir is a protocol for redirection USB traffic from a single USB | |
16 | device, to a different (virtual) machine then the one to which the USB | |
17 | device is attached. This package contains a number of libraries to | |
18 | help implementing support for usbredir: | |
19 | ||
20 | usbredirparser: A library containing the parser for the usbredir | |
21 | protocol | |
22 | ||
23 | usbredirhost: A library implementing the usb-host side of a usbredir | |
24 | connection. All that an application wishing to implement an usb-host | |
25 | needs to do is: | |
26 | - Provide a libusb device handle for the device | |
27 | - Provide write and read callbacks for the actual transport of | |
28 | usbredir data | |
29 | - Monitor for usbredir and libusb read/write events and call their | |
30 | handlers | |
31 | ||
30aff6b7 JB |
32 | %description -l pl.UTF-8 |
33 | usbredir to protokół pozwalający przekierować ruch USB z pojedynczego | |
34 | urządzenia USB na inną (wirtualną) maszynę, a następnie na taką, do | |
35 | której urządzenie USB jest podłączone. Ten pakiet zawiera biblioteki | |
36 | pomagające przy implementacji usbredir: | |
37 | ||
38 | usbredirparser - biblioteka zawierająca analizator protokołu usbredir | |
39 | ||
40 | usbredirhost - biblioteka implementująca stronę hosta USB połączenia | |
41 | usbredir. Wszystko, co musi zrobić aplikacja chcąca implementować | |
42 | host USB, to: | |
43 | - zapewnienie uchwytu libusb dla urządzenia USB | |
44 | - zapewnienie wywołań zapisu i odczytu dla transportu danych usbredir | |
45 | - monitorowanie zdarzeń odczytu/zapisu usbredir oraz libusb i | |
46 | wywoływanie ich procedur obsługi. | |
47 | ||
976d1e66 ER |
48 | %package devel |
49 | Summary: Development files for usbredir | |
30aff6b7 | 50 | Summary(pl.UTF-8): Pliki programistyczne usbredir |
976d1e66 ER |
51 | Group: Development/Libraries |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description devel | |
30aff6b7 JB |
55 | This package contains the header files for developing applications |
56 | that use usbredir. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
60 | wykorzystujących usbredir. | |
976d1e66 ER |
61 | |
62 | %package server | |
63 | Summary: Simple USB-host TCP server | |
30aff6b7 | 64 | Summary(pl.UTF-8): Prosty serwer TCP hosta USB |
976d1e66 ER |
65 | License: GPL v2+ |
66 | Group: Daemons | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | ||
69 | %description server | |
70 | A simple USB-host TCP server, using libusbredirhost. | |
71 | ||
30aff6b7 JB |
72 | %description server -l pl.UTF-8 |
73 | Prosty serwer TCP hosta USB wykorzystujący libusbredirhost. | |
74 | ||
976d1e66 ER |
75 | %prep |
76 | %setup -q | |
77 | ||
78 | %build | |
79 | %{__make} \ | |
3aa645d5 ER |
80 | CC="%{__cc}" \ |
81 | CFLAGS="%{rpmcflags}" \ | |
976d1e66 ER |
82 | PREFIX=%{_prefix} \ |
83 | LIBDIR=%{_libdir} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | %{__make} install \ | |
88 | PREFIX=%{_prefix} \ | |
89 | LIBDIR=%{_libdir} \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %post -p /sbin/ldconfig | |
96 | %postun -p /sbin/ldconfig | |
97 | ||
98 | %files | |
99 | %defattr(644,root,root,755) | |
100 | %doc ChangeLog README TODO | |
3aa645d5 ER |
101 | # no versioned file, so no ghosts |
102 | %attr(755,root,root) %{_libdir}/libusbredirhost.so.1 | |
103 | %attr(755,root,root) %{_libdir}/libusbredirparser.so.0 | |
976d1e66 ER |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %doc usb-redirection-protocol.txt | |
3aa645d5 ER |
108 | %{_includedir}/usbredirhost.h |
109 | %{_includedir}/usbredirparser.h | |
110 | %{_includedir}/usbredirproto.h | |
111 | %{_libdir}/libusbredirhost.so | |
112 | %{_libdir}/libusbredirparser.so | |
113 | %{_pkgconfigdir}/libusbredirhost.pc | |
114 | %{_pkgconfigdir}/libusbredirparser.pc | |
976d1e66 ER |
115 | |
116 | %files server | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_sbindir}/usbredirserver |