Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37637259
en ru br
Репозитории ALT
S:5.10-alt1
D:0.1.4-alt0.1
5.1: 0.1.7-alt0.1
4.1: 0.1.5-alt1
www.altlinux.org/Changes

Группа :: Система/Настройка/Сеть
Пакет: usbip

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_with pic
%def_enable shared
%def_disable static
%def_with tcp_wrappers
#----------------------------------------------------------------------
%define subst_with_to() %{expand:%%{?_with_%{1}:--with-%{2}}} %{expand:%%{?_without_%{1}:--without-%{2}}}

%define Name USB/IP
Name: usbip
%define lname lib%name
Summary: USB device sharing system over IP network
%define module_name %name
Version: 0.1.4
Release: alt0.1
License: GPL2+
Group: System/Configuration/Networking
Source: %name-%version.tar.bz2
Patch: %name-0.1.4-configure.patch
URL: http://%name.sourceforge.net/

# Automatically added by buildreq on Wed Jun 13 2007

#BuildRequires: gcc-c++ glib2-devel glibc-devel-static libsysfs-devel libwrap-devel

BuildRequires: glib2-devel libsysfs-devel
%{?_enable_static:BuildRequires: glibc-devel-static}
%{?_with_tcp_wrappers:BuildRequires: libwrap-devel}
BuildRequires: kernel-build-tools

%description
The %Name Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, %Name encapsulates "USB requests" 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:
 - USB storage devices: fdisk, mkfs, mount/umount, file operations,
   play a DVD movie and record a DVD-R media.
 - USB keyboards and USB mice: use with linux console and X Window
   System.
 - USB webcams and USB speakers: view webcam, capture image data and
   play some music.
 - USB printers, USB scanners, USB serial converters and USB Ethernet
   interfaces: ok, use fine.
   
%package common
Summary: %Name common files
Group: System/Configuration/Networking

%description common
The %Name Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, %Name encapsulates "USB requests" 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:
 - USB storage devices: fdisk, mkfs, mount/umount, file operations,
   play a DVD movie and record a DVD-R media.
 - USB keyboards and USB mice: use with linux console and X Window
   System.
 - USB webcams and USB speakers: view webcam, capture image data and
   play some music.
 - USB printers, USB scanners, USB serial converters and USB Ethernet
   interfaces: ok, use fine.

This package contains common files for %name-server and %name-client.


%if_enabled shared
%package -n %lname
Summary: Shared library for %Name utils
Group: System/Configuration/Networking

%description -n %lname
The %Name Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, %Name encapsulates "USB requests" 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:
 - USB storage devices: fdisk, mkfs, mount/umount, file operations,
   play a DVD movie and record a DVD-R media.
 - USB keyboards and USB mice: use with linux console and X Window
   System.
 - USB webcams and USB speakers: view webcam, capture image data and
   play some music.
 - USB printers, USB scanners, USB serial converters and USB Ethernet
   interfaces: ok, use fine.

This package contains shared library for %Name utils.
%endif


%package client
Summary: %Name client utility
Group: System/Configuration/Networking
Requires: %name-common = %version-%release
%{?_enable_shared:Requires: %lname = %version-%release}

%description client
The %Name Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, %Name encapsulates "USB requests" 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:
 - USB storage devices: fdisk, mkfs, mount/umount, file operations,
   play a DVD movie and record a DVD-R media.
 - USB keyboards and USB mice: use with linux console and X Window
   System.
 - USB webcams and USB speakers: view webcam, capture image data and
   play some music.
 - USB printers, USB scanners, USB serial converters and USB Ethernet
   interfaces: ok, use fine.

This package contains %Name client utility.


%package server
Summary: %Name server utils
Group: System/Configuration/Networking
Requires: %name-common = %version-%release
%{?_enable_shared:Requires: %lname = %version-%release}

%description server
The %Name Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, %Name encapsulates "USB requests" 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:
 - USB storage devices: fdisk, mkfs, mount/umount, file operations,
   play a DVD movie and record a DVD-R media.
 - USB keyboards and USB mice: use with linux console and X Window
   System.
 - USB webcams and USB speakers: view webcam, capture image data and
   play some music.
 - USB printers, USB scanners, USB serial converters and USB Ethernet
   interfaces: ok, use fine.

This package contains %Name client utils.


%package -n kernel-source-%module_name
Summary: Linux %module_name modules sources
Group: Development/Kernel

%description -n kernel-source-%module_name
This package contains sources for %module_name kernel module.


%prep
%setup
%patch -p1


%build
cd src
%__autoreconf
%configure \
   %{subst_with pic} \
   %{subst_enable shared} \
   %{subst_enable static} \
   %{subst_with_to tcp_wrappers tcp-wrappers}
%make_build


%install
%make_install -C src DESTDIR=%buildroot install
install -d -m 0755 %buildroot%_docdir/%name-%version
install -m 0644 src/AUTHORS NEWS README %buildroot%_docdir/%name-%version/
install -m 0644 src/README %buildroot%_docdir/%name-%version/README.%name-utils

install -d -m 0755 kernel-source-%module_name-%version
cp -r drivers/* kernel-source-%module_name-%version/
install -d -m 0755 %buildroot%_usrsrc/kernel/sources
tar -c kernel-source-%module_name-%version | bzip2 --best --stdout > \
   %buildroot%_usrsrc/kernel/sources/kernel-source-%module_name-%version.tar.bz2


%if_enabled shared
%files -n %lname
%_libdir/*.so.*
%endif


%files client
%_bindir/%name


%files common
%_docdir/%name-%version/AUTHORS
%_docdir/%name-%version/NEWS
%_docdir/%name-%version/README*


%files server
%_bindir/%{name}d
%_bindir/bind_driver


%files -n kernel-source-%module_name
%_usrsrc/*


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin