]> git.pld-linux.org Git - packages/usbredir.git/blame - usbredir.spec
- pass CC, verbose files
[packages/usbredir.git] / usbredir.spec
CommitLineData
976d1e66
ER
1Summary: USB network redirection protocol libraries
2Name: usbredir
3Version: 0.3.1
4Release: 1
5License: LGPL v2+
6Group: Libraries
7URL: http://cgit.freedesktop.org/~jwrdegoede/usbredir/
8Source0: http://people.fedoraproject.org/~jwrdegoede/%{name}-%{version}.tar.bz2
9# Source0-md5: 17486f1662c65caab805487252274dc6
10BuildRequires: libusb-devel >= 1.0.9
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
14usbredir is a protocol for redirection USB traffic from a single USB
15device, to a different (virtual) machine then the one to which the USB
16device is attached. This package contains a number of libraries to
17help implementing support for usbredir:
18
19usbredirparser: A library containing the parser for the usbredir
20protocol
21
22usbredirhost: A library implementing the usb-host side of a usbredir
23connection. All that an application wishing to implement an usb-host
24needs to do is:
25- Provide a libusb device handle for the device
26- Provide write and read callbacks for the actual transport of
27 usbredir data
28- Monitor for usbredir and libusb read/write events and call their
29 handlers
30
31%package devel
32Summary: Development files for usbredir
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35
36%description devel
37This package contains libraries and header files for developing
38applications that use usbredir.
39
40%package server
41Summary: Simple USB-host TCP server
42License: GPL v2+
43Group: Daemons
44Requires: %{name} = %{version}-%{release}
45
46%description server
47A simple USB-host TCP server, using libusbredirhost.
48
49%prep
50%setup -q
51
52%build
53%{__make} \
3aa645d5
ER
54 CC="%{__cc}" \
55 CFLAGS="%{rpmcflags}" \
976d1e66
ER
56 PREFIX=%{_prefix} \
57 LIBDIR=%{_libdir}
58
59%install
60rm -rf $RPM_BUILD_ROOT
61%{__make} install \
62 PREFIX=%{_prefix} \
63 LIBDIR=%{_libdir} \
64 DESTDIR=$RPM_BUILD_ROOT
65
66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%post -p /sbin/ldconfig
70%postun -p /sbin/ldconfig
71
72%files
73%defattr(644,root,root,755)
74%doc ChangeLog README TODO
3aa645d5
ER
75# no versioned file, so no ghosts
76%attr(755,root,root) %{_libdir}/libusbredirhost.so.1
77%attr(755,root,root) %{_libdir}/libusbredirparser.so.0
976d1e66
ER
78
79%files devel
80%defattr(644,root,root,755)
81%doc usb-redirection-protocol.txt
3aa645d5
ER
82%{_includedir}/usbredirhost.h
83%{_includedir}/usbredirparser.h
84%{_includedir}/usbredirproto.h
85%{_libdir}/libusbredirhost.so
86%{_libdir}/libusbredirparser.so
87%{_pkgconfigdir}/libusbredirhost.pc
88%{_pkgconfigdir}/libusbredirparser.pc
976d1e66
ER
89
90%files server
91%defattr(644,root,root,755)
92%attr(755,root,root) %{_sbindir}/usbredirserver
This page took 0.094133 seconds and 4 git commands to generate.