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