File usbip.spec of Package usbip
#
# spec file for package usbip (Version 0.1.6)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
BuildRequires: glib2-devel pkg-config sysfsutils
Name: usbip
License: GPL v2 or later
Group: Hardware/Other
Summary: The USB/IP shared USB system over IP network
Version: 0.1.6
Release: 3
Url: http://usbip.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %name-%{version}.tar.bz2
%description
The USB/IP Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, USB/IP encapsulates "USB I/O messages" into IP packets
and transmits them between computers. Original USB device drivers and
applications can be also used for remote USB devices without any
modification of them. A computer can use remote USB devices as if they
were directly attached; for example, we can ...
%package devel
License: GPL v2 or later
Summary: Headers and static libraries
Group: Hardware/Other
Requires: %{name} = %{version} glibc-devel
%description devel
This package contains headers and static libraries for USB/IP
development
%prep
%setup -q
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%build
cd src
./autogen.sh
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
%install
cd src
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/usbip
%{_includedir}/usbip/*.h
%{_libdir}/libusbip.so
%files
%defattr(-,root,root,-)
%dir /usr/share/usbip
%{_bindir}/bind_driver
%{_bindir}/usbaid
%{_bindir}/usbip
%{_bindir}/usbipd
%{_libdir}/libusbip.so.0*
/usr/share/usbip/usb.ids
%changelog
* Fri Jan 09 2009 crrodriguez@suse.de
- remove static libraries and "la" files
* Wed Nov 19 2008 mauro@suse.de
- Adding to SUSE.