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