]> git.pld-linux.org Git - packages/usbip.git/blob - usbip.spec
- pl, unified, use system usb.ids
[packages/usbip.git] / usbip.spec
1 Summary:        USB device sharing system over IP network
2 Summary(pl.UTF-8):      System współdzielenia urządzeń USB po sieci IP
3 Name:           usbip
4 Version:        0.1.7
5 Release:        1
6 License:        GPL v2
7 Group:          Networking/Utilities
8 Source0:        http://downloads.sourceforge.net/usbip/%{name}-%{version}.tar.gz
9 # Source0-md5:  d1094b6d4449787864f8be001639232c
10 URL:            http://usbip.sourceforge.net/
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
15 BuildRequires:  libtool
16 BuildRequires:  libwrap-devel
17 BuildRequires:  pkgconfig >= 1:0.9.0
18 BuildRequires:  sysfsutils-devel >= 2.0.0
19 Requires:       %{name}-libs = %{version}-%{release}
20 # /lib/hwdata/usb.ids (note: only uncompressed file supported)
21 Requires:       hwdata >= 0.243-2
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
34  - USB keyboards and USB mice: use with Linux console and X Window
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
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ć
58
59 %package libs
60 Summary:        USB/IP library
61 Summary(pl.UTF-8):      Biblioteka USB/IP
62 Group:          Libraries
63
64 %description libs
65 USB over IP library.
66
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
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
96 %prep
97 %setup -q
98
99 %build
100 cd src
101 %{__libtoolize}
102 %{__aclocal}
103 %{__autoconf}
104 %{__autoheader}
105 %{__automake}
106 %configure \
107         --disable-usbids-install \
108         --with-usbids-dir=/lib/hwdata
109 %{__make}
110
111 %install
112 rm -rf $RPM_BUILD_ROOT
113
114 %{__make} install -C src \
115         DESTDIR=$RPM_BUILD_ROOT
116
117 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libusbip.la
118
119 %clean
120 rm -rf $RPM_BUILD_ROOT
121
122 %post   libs -p /sbin/ldconfig
123 %postun libs -p /sbin/ldconfig
124
125 %files
126 %defattr(644,root,root,755)
127 %doc src/{AUTHORS,README}
128 %attr(755,root,root) %{_bindir}/bind_driver
129 %attr(755,root,root) %{_bindir}/usbip
130 %attr(755,root,root) %{_bindir}/usbipd
131
132 %files devel
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libusbip.so
135 %{_includedir}/usbip
136
137 %files libs
138 %defattr(644,root,root,755)
139 %doc NEWS README
140 %attr(755,root,root) %{_libdir}/libusbip.so.*.*.*
141 %attr(755,root,root) %ghost %{_libdir}/libusbip.so.0
142
143 %files static
144 %defattr(644,root,root,755)
145 %{_libdir}/libusbip.a
This page took 0.085425 seconds and 3 git commands to generate.