A new user interface for you! Read more...

File usbip.spec of Package usbip

#
# spec file for package usbip
#
# Copyright (c) 2018 SUSE LINUX 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/
#


BuildRequires:  glib2-devel
BuildRequires:  libtool
BuildRequires:  libudev-devel
BuildRequires:  pkg-config
%if 0%{?suse_version} > 1130
BuildRequires:  sysfsutils-devel
%else
BuildRequires:  sysfsutils
%endif
Requires:       hwdata

Name:           usbip
Summary:        The USB/IP shared USB system over IP network
License:        GPL-2.0+
Group:          Hardware/Other
Version:        2.0
Release:        0

Url:            http://usbip.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# userspace code from linux kernel git commit fde7d904
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
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
./autogen.sh
%configure --disable-static --with-pic --with-usbids-dir=/usr/share/ --prefix=/usr
%{__make} %{?jobs:-j%jobs}

%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la

%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/usbip
%{_includedir}/usbip/*.h
%{_libdir}/libusbip.so

%files
%defattr(-,root,root,-)
%{_sbindir}/usbip
%{_sbindir}/usbipd
%{_libdir}/libusbip.so.0*
%{_datadir}/man/*

%changelog