1 Summary: Tools for using the Network Block Device
2 Summary(pl.UTF-8): Narzędzia do używania Network Block Device
7 Group: Applications/System
8 Source0: http://downloads.sourceforge.net/nbd/%{name}-%{version}.tar.xz
9 # Source0-md5: c35397bd2c4d53bb9f14523463357096
10 Patch0: %{name}-gznbd.patch
11 URL: http://nbd.sourceforge.net/
13 BuildRequires: docbook-dtd45-sgml
14 BuildRequires: docbook-utils
16 BuildRequires: glib2-devel >= 1:2.68.0
17 BuildRequires: gnutls-devel >= 2.12.0
18 BuildRequires: libnl-devel >= 3.1
19 BuildRequires: pkgconfig
20 BuildRequires: tar >= 1:1.22
22 BuildRequires: zlib-devel
23 Requires: glib2 >= 1:2.68.0
24 Requires: gnutls-libs >= 2.12.0
25 Requires: libnl >= 3.1
26 Obsoletes: nbd-tools < 1.4
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _sbindir /sbin
32 nbd contains the tools needed to export a network block device and to
33 use a network block device. The nbd module is part of the 2.2 kernels
36 If you have a kernel patched for it, you can use the network block
37 device to swap over the net, which is particularly useful for diskless
40 %description -l pl.UTF-8
41 nbd zawiera narzędzia potrzebne do wyeksportowania i używania
42 sieciowego urządzenia blokowego (Network Block Device). Moduł do nbd
43 jest w jądrze 2.2 i późniejszych.
45 Jeżeli masz kernel z odpowiednią łatą, możesz używać sieciowego
46 urządzenia blokowego do swapowania przez sieć - jest to przydatne w
47 przypadku stacji bezdyskowych.
55 --disable-silent-rules \
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_sysconfdir}/nbd-server
66 DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_bindir}/gznbd
75 %attr(755,root,root) %{_bindir}/nbd-server
76 %attr(755,root,root) %{_bindir}/nbd-trdump
77 %attr(755,root,root) %{_sbindir}/min-nbd-client
78 %attr(755,root,root) %{_sbindir}/nbd-client
79 %dir %{_sysconfdir}/nbd-server
80 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nbd-server/config
81 %{_mandir}/man1/nbd-server.1*
82 %{_mandir}/man1/nbd-trdump.1*
83 %{_mandir}/man5/nbd-server.5*
84 %{_mandir}/man5/nbdtab.5*
85 %{_mandir}/man8/nbd-client.8*