]>
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 | 3 | Name: usbredir |
e3137443 | 4 | Version: 0.8.0 |
d9b0139d | 5 | Release: 1 |
976d1e66 ER |
6 | License: LGPL v2+ |
7 | Group: Libraries | |
b8a4e079 | 8 | Source0: https://www.spice-space.org/download/usbredir/%{name}-%{version}.tar.bz2 |
e3137443 | 9 | # Source0-md5: c1a15225a1b97f3c4bccb10e03f3750b |
b8a4e079 | 10 | URL: https://www.spice-space.org/usbredir.html |
d9b0139d | 11 | BuildRequires: libusb-devel >= 1.0.19 |
08294451 | 12 | BuildRequires: pkgconfig |
d9b0139d | 13 | Requires: libusb >= 1.0.19 |
976d1e66 ER |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | usbredir is a protocol for redirection USB traffic from a single USB | |
18 | device, to a different (virtual) machine then the one to which the USB | |
19 | device is attached. This package contains a number of libraries to | |
20 | help implementing support for usbredir: | |
21 | ||
22 | usbredirparser: A library containing the parser for the usbredir | |
23 | protocol | |
24 | ||
25 | usbredirhost: A library implementing the usb-host side of a usbredir | |
26 | connection. All that an application wishing to implement an usb-host | |
27 | needs to do is: | |
28 | - Provide a libusb device handle for the device | |
29 | - Provide write and read callbacks for the actual transport of | |
30 | usbredir data | |
31 | - Monitor for usbredir and libusb read/write events and call their | |
32 | handlers | |
33 | ||
30aff6b7 JB |
34 | %description -l pl.UTF-8 |
35 | usbredir to protokół pozwalający przekierować ruch USB z pojedynczego | |
36 | urządzenia USB na inną (wirtualną) maszynę, a następnie na taką, do | |
37 | której urządzenie USB jest podłączone. Ten pakiet zawiera biblioteki | |
38 | pomagające przy implementacji usbredir: | |
39 | ||
40 | usbredirparser - biblioteka zawierająca analizator protokołu usbredir | |
41 | ||
42 | usbredirhost - biblioteka implementująca stronę hosta USB połączenia | |
43 | usbredir. Wszystko, co musi zrobić aplikacja chcąca implementować | |
44 | host USB, to: | |
45 | - zapewnienie uchwytu libusb dla urządzenia USB | |
46 | - zapewnienie wywołań zapisu i odczytu dla transportu danych usbredir | |
47 | - monitorowanie zdarzeń odczytu/zapisu usbredir oraz libusb i | |
48 | wywoływanie ich procedur obsługi. | |
49 | ||
976d1e66 ER |
50 | %package devel |
51 | Summary: Development files for usbredir | |
30aff6b7 | 52 | Summary(pl.UTF-8): Pliki programistyczne usbredir |
976d1e66 ER |
53 | Group: Development/Libraries |
54 | Requires: %{name} = %{version}-%{release} | |
d9b0139d | 55 | Requires: libusb-devel >= 1.0.19 |
976d1e66 ER |
56 | |
57 | %description devel | |
30aff6b7 JB |
58 | This package contains the header files for developing applications |
59 | that use usbredir. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
63 | wykorzystujących usbredir. | |
976d1e66 | 64 | |
08294451 JB |
65 | %package static |
66 | Summary: Static usbredir libraries | |
67 | Summary(pl.UTF-8): Statyczne biblioteki usbredir | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static usbredir libraries. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczne biblioteki usbredir. | |
76 | ||
976d1e66 ER |
77 | %package server |
78 | Summary: Simple USB-host TCP server | |
30aff6b7 | 79 | Summary(pl.UTF-8): Prosty serwer TCP hosta USB |
976d1e66 ER |
80 | License: GPL v2+ |
81 | Group: Daemons | |
82 | Requires: %{name} = %{version}-%{release} | |
83 | ||
84 | %description server | |
85 | A simple USB-host TCP server, using libusbredirhost. | |
86 | ||
30aff6b7 JB |
87 | %description server -l pl.UTF-8 |
88 | Prosty serwer TCP hosta USB wykorzystujący libusbredirhost. | |
89 | ||
976d1e66 ER |
90 | %prep |
91 | %setup -q | |
92 | ||
93 | %build | |
08294451 JB |
94 | %configure \ |
95 | --disable-silent-rules | |
96 | %{__make} | |
976d1e66 ER |
97 | |
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
08294451 | 100 | |
976d1e66 | 101 | %{__make} install \ |
976d1e66 ER |
102 | DESTDIR=$RPM_BUILD_ROOT |
103 | ||
08294451 JB |
104 | # obsoleted by pkg-config |
105 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
106 | ||
976d1e66 ER |
107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
08294451 JB |
115 | %doc ChangeLog README README.multi-thread TODO |
116 | %attr(755,root,root) %{_libdir}/libusbredirhost.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libusbredirhost.so.1 | |
118 | %attr(755,root,root) %{_libdir}/libusbredirparser.so.*.*.* | |
4b97d7ee | 119 | %attr(755,root,root) %ghost %{_libdir}/libusbredirparser.so.1 |
976d1e66 ER |
120 | |
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
123 | %doc usb-redirection-protocol.txt | |
08294451 JB |
124 | %attr(755,root,root) %{_libdir}/libusbredirhost.so |
125 | %attr(755,root,root) %{_libdir}/libusbredirparser.so | |
89d97ec9 | 126 | %{_includedir}/usbredirfilter.h |
3aa645d5 ER |
127 | %{_includedir}/usbredirhost.h |
128 | %{_includedir}/usbredirparser.h | |
129 | %{_includedir}/usbredirproto.h | |
3aa645d5 | 130 | %{_pkgconfigdir}/libusbredirhost.pc |
8ae89852 | 131 | %{_pkgconfigdir}/libusbredirparser-0.5.pc |
976d1e66 | 132 | |
08294451 JB |
133 | %files static |
134 | %defattr(644,root,root,755) | |
135 | %{_libdir}/libusbredirhost.a | |
136 | %{_libdir}/libusbredirparser.a | |
137 | ||
976d1e66 ER |
138 | %files server |
139 | %defattr(644,root,root,755) | |
140 | %attr(755,root,root) %{_sbindir}/usbredirserver | |
719d31f8 | 141 | %{_mandir}/man1/usbredirserver.1* |