1 # NOTE: sources at sourceforge are outdated; now this project is maintained (and built) as part of kernel-tools
2 Summary: USB device sharing system over IP network
3 Summary(pl.UTF-8): System współdzielenia urządzeń USB po sieci IP
8 Group: Networking/Utilities
9 Source0: http://downloads.sourceforge.net/usbip/%{name}-%{version}.tar.gz
10 # Source0-md5: d1094b6d4449787864f8be001639232c
11 URL: http://usbip.sourceforge.net/
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
16 BuildRequires: libtool
17 BuildRequires: libwrap-devel
18 BuildRequires: pkgconfig >= 1:0.9.0
19 BuildRequires: sysfsutils-devel >= 2.0.0
20 Requires: %{name}-libs = %{version}-%{release}
21 # /lib/hwdata/usb.ids (note: only uncompressed file supported)
22 Requires: hwdata >= 0.243-2
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
35 - USB keyboards and USB mice: use with Linux console and X Window
37 - USB webcams and USB speakers: view webcam, capture image data and
39 - USB printers, USB scanners, USB serial converters and USB Ethernet
40 interfaces: ok, use fine.
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
55 - kamery i głośniki USB: można oglądać obraz z kamery, robić zdjęcia
57 - drukarki, skanery, konwertery portów szeregowych oraz interfejsy
58 sieciowe USB: można ich normalnie używać
61 Summary: USB/IP library
62 Summary(pl.UTF-8): Biblioteka USB/IP
68 %description libs -l pl.UTF-8
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}
78 This package contains the header files needed to develop programs
79 which make use of USB/IP.
81 %description devel -l pl.UTF-8
82 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
83 wykorzystujących USB/IP.
86 Summary: Static usbip library
87 Summary(pl.UTF-8): Statyczna biblioteka usbip
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
94 %description static -l pl.UTF-8
95 Statyczna biblioteka usbip.
108 --disable-usbids-install \
109 --with-usbids-dir=/lib/hwdata
113 rm -rf $RPM_BUILD_ROOT
115 %{__make} install -C src \
116 DESTDIR=$RPM_BUILD_ROOT
118 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libusbip.la
121 rm -rf $RPM_BUILD_ROOT
123 %post libs -p /sbin/ldconfig
124 %postun libs -p /sbin/ldconfig
127 %defattr(644,root,root,755)
128 %doc src/{AUTHORS,README}
129 %attr(755,root,root) %{_bindir}/bind_driver
130 %attr(755,root,root) %{_bindir}/usbip
131 %attr(755,root,root) %{_bindir}/usbipd
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/libusbip.so
139 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_libdir}/libusbip.so.*.*.*
142 %attr(755,root,root) %ghost %{_libdir}/libusbip.so.0
145 %defattr(644,root,root,755)
146 %{_libdir}/libusbip.a