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: fa29f57ca752e363edc15f0e35f0a95f
10 Source1: nbd@.service.tmpl
11 Patch0: %{name}-gznbd.patch
12 URL: http://nbd.sourceforge.net/
13 BuildRequires: docbook-dtd45-sgml
14 BuildRequires: docbook-utils
15 BuildRequires: glib2-devel >= 1:2.26.0
16 BuildRequires: pkgconfig
17 BuildRequires: tar >= 1:1.22
19 BuildRequires: zlib-devel
20 Requires: glib2 >= 1:2.26.0
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _sbindir /sbin
27 nbd contains the tools needed to export a network block device and to
28 use a network block device. The nbd module is part of the 2.2 kernels
31 If you have a kernel patched for it, you can use the network block
32 device to swap over the net, which is particularly useful for diskless
35 %description -l pl.UTF-8
36 nbd zawiera narzędzia potrzebne do wyeksportowania i używania
37 sieciowego urządzenia blokowego (Network Block Device). Moduł do nbd
38 jest w jądrze 2.2 i późniejszych.
40 Jeżeli masz kernel z odpowiednią łatą, możesz używać sieciowego
41 urządzenia blokowego do swapowania przez sieć - jest to przydatne w
42 przypadku stacji bezdyskowych.
48 test ! -f systemd/nbd@.service.tmpl
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_sysconfdir}/nbd-server
63 DESTDIR=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %attr(755,root,root) %{_bindir}/gznbd
72 %attr(755,root,root) %{_bindir}/nbd-server
73 %attr(755,root,root) %{_bindir}/nbd-trdump
74 %attr(755,root,root) %{_sbindir}/nbd-client
75 %dir %{_sysconfdir}/nbd-server
76 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nbd-server/config
77 %{_mandir}/man1/nbd-server.1*
78 %{_mandir}/man1/nbd-trdump.1*
79 %{_mandir}/man5/nbd-server.5*
80 %{_mandir}/man5/nbdtab.5*
81 %{_mandir}/man8/nbd-client.8*