]>
Commit | Line | Data |
---|---|---|
4112f397 | 1 | Summary: USB device sharing system over IP network |
dbda6434 | 2 | Summary(pl.UTF-8): System współdzielenia urządzeń USB po sieci IP |
4112f397 | 3 | Name: usbip |
4 | Version: 0.1.7 | |
2a83beb0 | 5 | Release: 1 |
4112f397 | 6 | License: GPL v2 |
2a83beb0 | 7 | Group: Networking/Utilities |
dbda6434 | 8 | Source0: http://downloads.sourceforge.net/usbip/%{name}-%{version}.tar.gz |
4112f397 | 9 | # Source0-md5: d1094b6d4449787864f8be001639232c |
10 | URL: http://usbip.sourceforge.net/ | |
dbda6434 JB |
11 | BuildRequires: autoconf >= 2.59 |
12 | BuildRequires: automake >= 1:1.9 | |
13 | BuildRequires: gcc >= 6:4.0 | |
14 | BuildRequires: glib2-devel >= 1:2.6.0 | |
2a83beb0 TP |
15 | BuildRequires: libtool |
16 | BuildRequires: libwrap-devel | |
dbda6434 | 17 | BuildRequires: pkgconfig >= 1:0.9.0 |
2a83beb0 | 18 | BuildRequires: sysfsutils-devel >= 2.0.0 |
dbda6434 JB |
19 | Requires: %{name}-libs = %{version}-%{release} |
20 | # /lib/hwdata/usb.ids (note: only uncompressed file supported) | |
21 | Requires: hwdata >= 0.243-2 | |
2a83beb0 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4112f397 | 23 | |
24 | %description | |
25 | The USB/IP Project aims to develop a general USB device sharing system | |
26 | over IP network. To share USB devices between computers with their | |
27 | full functionality, USB/IP encapsulates "USB requests" into IP packets | |
28 | and transmits them between computers. Original USB device drivers and | |
29 | applications can be also used for remote USB devices without any | |
30 | modification of them. A computer can use remote USB devices as if they | |
31 | were directly attached; for example, we can: | |
32 | - USB storage devices: fdisk, mkfs, mount/umount, file operations, | |
33 | play a DVD movie and record a DVD-R media. | |
dbda6434 | 34 | - USB keyboards and USB mice: use with Linux console and X Window |
4112f397 | 35 | System. |
36 | - USB webcams and USB speakers: view webcam, capture image data and | |
37 | play some music. | |
38 | - USB printers, USB scanners, USB serial converters and USB Ethernet | |
39 | interfaces: ok, use fine. | |
40 | ||
dbda6434 JB |
41 | %description -l pl.UTF-8 |
42 | Projekt USB/IP ma na celu stworzenie ogólnego systemu współdzielenia | |
43 | urządzeń USB po sieci IP. W celu współdzielenia urządzeń USB między | |
44 | komputerami z zachowaniem pełnej funkcjonalności, USB/IP obudowuje | |
45 | żądania SUB w pakiety IP i przesyła je między komputerami. Oryginalne | |
46 | sterowniki urządzeń USB oraz aplikacje mogą być używane bez żadnych | |
47 | modyfikacji. Komputer może wykorzystywać zdaln urządzenia USB tak, | |
48 | jakby były podłączone bezpośrednio. Przykładowe możliwości: | |
49 | - urządzenia USB do przechowywania danych: można używać programów | |
50 | fdisk, mkfs, mount/umount, operacji na plikach, odtwarzać filmy | |
51 | DVD oraz nagrywać nośniki DVD-R | |
52 | - klawiatury i myszy USB: można ich używać na linuksowej konsoli oraz | |
53 | w systemie X Window | |
54 | - kamery i głośniki USB: można oglądać obraz z kamery, robić zdjęcia | |
55 | i odtwarzać muzykę | |
56 | - drukarki, skanery, konwertery portów szeregowych oraz interfejsy | |
57 | sieciowe USB: można ich normalnie używać | |
4112f397 | 58 | |
2a83beb0 TP |
59 | %package libs |
60 | Summary: USB/IP library | |
dbda6434 | 61 | Summary(pl.UTF-8): Biblioteka USB/IP |
2a83beb0 TP |
62 | Group: Libraries |
63 | ||
64 | %description libs | |
65 | USB over IP library. | |
66 | ||
dbda6434 JB |
67 | %description libs -l pl.UTF-8 |
68 | Biblioteka USB po IP. | |
69 | ||
70 | %package devel | |
71 | Summary: Header files for usbip library | |
72 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki usbip | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-libs = %{version}-%{release} | |
75 | ||
76 | %description devel | |
77 | This package contains the header files needed to develop programs | |
78 | which make use of USB/IP. | |
79 | ||
80 | %description devel -l pl.UTF-8 | |
81 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
82 | wykorzystujących USB/IP. | |
83 | ||
4112f397 | 84 | %package static |
85 | Summary: Static usbip library | |
86 | Summary(pl.UTF-8): Statyczna biblioteka usbip | |
87 | Group: Development/Libraries | |
88 | Requires: %{name}-devel = %{version}-%{release} | |
89 | ||
90 | %description static | |
91 | Static usbip library. | |
92 | ||
93 | %description static -l pl.UTF-8 | |
94 | Statyczna biblioteka usbip. | |
95 | ||
4112f397 | 96 | %prep |
97 | %setup -q | |
98 | ||
99 | %build | |
100 | cd src | |
101 | %{__libtoolize} | |
102 | %{__aclocal} | |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
dbda6434 JB |
106 | %configure \ |
107 | --disable-usbids-install \ | |
108 | --with-usbids-dir=/lib/hwdata | |
4112f397 | 109 | %{__make} |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
2a83beb0 | 113 | |
4112f397 | 114 | %{__make} install -C src \ |
115 | DESTDIR=$RPM_BUILD_ROOT | |
116 | ||
dbda6434 | 117 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libusbip.la |
2a83beb0 | 118 | |
4112f397 | 119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
2a83beb0 TP |
122 | %post libs -p /sbin/ldconfig |
123 | %postun libs -p /sbin/ldconfig | |
4112f397 | 124 | |
125 | %files | |
126 | %defattr(644,root,root,755) | |
dbda6434 | 127 | %doc src/{AUTHORS,README} |
4112f397 | 128 | %attr(755,root,root) %{_bindir}/bind_driver |
dbda6434 JB |
129 | %attr(755,root,root) %{_bindir}/usbip |
130 | %attr(755,root,root) %{_bindir}/usbipd | |
4112f397 | 131 | |
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
dbda6434 JB |
134 | %attr(755,root,root) %{_libdir}/libusbip.so |
135 | %{_includedir}/usbip | |
4112f397 | 136 | |
2a83beb0 | 137 | %files libs |
2a83beb0 | 138 | %defattr(644,root,root,755) |
dbda6434 JB |
139 | %doc NEWS README |
140 | %attr(755,root,root) %{_libdir}/libusbip.so.*.*.* | |
141 | %attr(755,root,root) %ghost %{_libdir}/libusbip.so.0 | |
2a83beb0 | 142 | |
4112f397 | 143 | %files static |
144 | %defattr(644,root,root,755) | |
dbda6434 | 145 | %{_libdir}/libusbip.a |