]> git.pld-linux.org Git - packages/usbip.git/blob - usbip.spec
447be1bcfc1010155cbb70f69c6e4ae2f9401ea5
[packages/usbip.git] / usbip.spec
1 Summary:        USB device sharing system over IP network
2 Name:           usbip
3 Version:        0.1.7
4 Release:        1
5 License:        GPL v2
6 Group:          Networking/Utilities
7 Source0:        http://dl.sourceforge.net/usbip/%{name}-%{version}.tar.gz
8 # Source0-md5:  d1094b6d4449787864f8be001639232c
9 URL:            http://usbip.sourceforge.net/
10 BuildRequires:  autoconf
11 BuildRequires:  automake
12 BuildRequires:  glib2-devel >= 2.6.0
13 BuildRequires:  libtool
14 BuildRequires:  libwrap-devel
15 BuildRequires:  pkgconfig >= 0.9.0
16 BuildRequires:  sysfsutils-devel >= 2.0.0
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The USB/IP Project aims to develop a general USB device sharing system
21 over IP network. To share USB devices between computers with their
22 full functionality, USB/IP encapsulates "USB requests" into IP packets
23 and transmits them between computers. Original USB device drivers and
24 applications can be also used for remote USB devices without any
25 modification of them. A computer can use remote USB devices as if they
26 were directly attached; for example, we can:
27  - USB storage devices: fdisk, mkfs, mount/umount, file operations,
28    play a DVD movie and record a DVD-R media.
29  - USB keyboards and USB mice: use with linux console and X Window
30    System.
31  - USB webcams and USB speakers: view webcam, capture image data and
32    play some music.
33  - USB printers, USB scanners, USB serial converters and USB Ethernet
34    interfaces: ok, use fine.
35
36 %package devel
37 Summary:        Development files for usbip
38 Group:          Development/Libraries
39 Requires:       %{name}-libs = %{version}-%{release}
40
41 %description devel
42 This package contains the libraries and header files needed to develop
43 programs which make use of usbip.
44
45 %package libs
46 Summary:        USB/IP library
47 Group:          Libraries
48
49 %description libs
50 USB over IP library.
51
52 %package static
53 Summary:        Static usbip library
54 Summary(pl.UTF-8):      Statyczna biblioteka usbip
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{version}-%{release}
57
58 %description static
59 Static usbip library.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka usbip.
63
64 %prep
65 %setup -q
66
67 %build
68 cd src
69 %{__libtoolize}
70 %{__aclocal}
71 %{__autoconf}
72 %{__autoheader}
73 %{__automake}
74 %configure
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install -C src \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib%{name}.la
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   libs -p /sbin/ldconfig
89 %postun libs -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %doc src/AUTHORS src/README
94 %attr(755,root,root) %{_bindir}/bind_driver
95 %attr(755,root,root) %{_bindir}/%{name}*
96 %{_datadir}/%{name}
97
98 %files devel
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/lib%{name}.so
101 %{_includedir}/%{name}
102
103 %files libs
104 %doc NEWS README
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0
108
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/lib%{name}.a
This page took 0.081944 seconds and 2 git commands to generate.