packages: usbip/usbip.spec - merged client and server subpackages into main...
gotar
gotar at pld-linux.org
Fri Nov 11 21:41:53 CET 2011
Author: gotar Date: Fri Nov 11 20:41:53 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- merged client and server subpackages into main (there's no real reason
for such split), moved libs to separate one, %files fixes,
- added missing BRs, rel. 1
---- Files affected:
packages/usbip:
usbip.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/usbip/usbip.spec
diff -u packages/usbip/usbip.spec:1.1 packages/usbip/usbip.spec:1.2
--- packages/usbip/usbip.spec:1.1 Tue Mar 17 23:39:57 2009
+++ packages/usbip/usbip.spec Fri Nov 11 21:41:48 2011
@@ -2,15 +2,20 @@
Summary: USB device sharing system over IP network
Name: usbip
Version: 0.1.7
-Release: 0.1
+Release: 1
License: GPL v2
-Group: Applications/System
+Group: Networking/Utilities
Source0: http://dl.sourceforge.net/usbip/%{name}-%{version}.tar.gz
# Source0-md5: d1094b6d4449787864f8be001639232c
URL: http://usbip.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: glib2-devel >= 2.6.0
-BuildRequires: sysfsutils-devel
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: libtool
+BuildRequires: libwrap-devel
+BuildRequires: pkgconfig >= 0.9.0
+BuildRequires: sysfsutils-devel >= 2.0.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
The USB/IP Project aims to develop a general USB device sharing system
@@ -32,28 +37,19 @@
%package devel
Summary: Development files for usbip
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
%description devel
-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 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 the libraries and header files needed to develop
programs which make use of usbip.
+%package libs
+Summary: USB/IP library
+Group: Libraries
+
+%description libs
+USB over IP library.
+
%package static
Summary: Static usbip library
Summary(pl.UTF-8): Statyczna biblioteka usbip
@@ -66,54 +62,6 @@
%description static -l pl.UTF-8
Statyczna biblioteka usbip.
-%package client
-Summary: USB/IP client utility
-Group: Networking/Utilities
-Requires: %{name} = %{version}-%{release}
-
-%description client
-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 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 USB/IP client utility.
-
-%package server
-Summary: USB/IP server utils
-Group: Networking/Daemons
-Requires: %{name} = %{version}-%{release}
-
-%description server
-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 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 USB/IP client utils.
-
%prep
%setup -q
@@ -129,40 +77,39 @@
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install -C src \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib%{name}.la
+
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc NEWS README
-%{_datadir}/%{name}
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/lib*so.0
-
-%files client
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/%{name}
-
-%files server
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/%{name}d
+%doc src/AUTHORS src/README
%attr(755,root,root) %{_bindir}/bind_driver
+%attr(755,root,root) %{_bindir}/%{name}*
+%{_datadir}/%{name}
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/*.so
+%attr(755,root,root) %{_libdir}/lib%{name}.so
%{_includedir}/%{name}
+%files libs
+%doc NEWS README
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0
+
%files static
%defattr(644,root,root,755)
-%{_libdir}/lib*.a
-%{_libdir}/lib*.la
+%{_libdir}/lib%{name}.a
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -170,6 +117,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2011/11/11 20:41:48 gotar
+- merged client and server subpackages into main (there's no real reason
+ for such split), moved libs to separate one, %files fixes,
+- added missing BRs, rel. 1
+
Revision 1.1 2009/03/17 22:39:57 zbyniu
- new
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/usbip/usbip.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list