]> git.pld-linux.org Git - packages/usbip.git/blob - usbip.spec
- see kernel-tools for up to date versions
[packages/usbip.git] / usbip.spec
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
4 Name:           usbip
5 Version:        0.1.7
6 Release:        1.1
7 License:        GPL v2
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)
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.
35  - USB keyboards and USB mice: use with Linux console and X Window
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
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ć
59
60 %package libs
61 Summary:        USB/IP library
62 Summary(pl.UTF-8):      Biblioteka USB/IP
63 Group:          Libraries
64
65 %description libs
66 USB over IP library.
67
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
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
97 %prep
98 %setup -q
99
100 %build
101 cd src
102 %{__libtoolize}
103 %{__aclocal}
104 %{__autoconf}
105 %{__autoheader}
106 %{__automake}
107 %configure \
108         --disable-usbids-install \
109         --with-usbids-dir=/lib/hwdata
110 %{__make}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114
115 %{__make} install -C src \
116         DESTDIR=$RPM_BUILD_ROOT
117
118 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libusbip.la
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %post   libs -p /sbin/ldconfig
124 %postun libs -p /sbin/ldconfig
125
126 %files
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
132
133 %files devel
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/libusbip.so
136 %{_includedir}/usbip
137
138 %files libs
139 %defattr(644,root,root,755)
140 %doc NEWS README
141 %attr(755,root,root) %{_libdir}/libusbip.so.*.*.*
142 %attr(755,root,root) %ghost %{_libdir}/libusbip.so.0
143
144 %files static
145 %defattr(644,root,root,755)
146 %{_libdir}/libusbip.a
This page took 0.082151 seconds and 3 git commands to generate.