]> git.pld-linux.org Git - SPECS.git/blob - nbd.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / nbd.spec
1 Summary:        Tools for using the Network Block Device
2 Summary(pl.UTF-8):      Narzędzia do używania Network Block Device
3 Name:           nbd
4 Version:        3.14
5 Release:        1
6 License:        GPL v2
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
18 BuildRequires:  xz
19 BuildRequires:  zlib-devel
20 Requires:       glib2 >= 1:2.26.0
21 Obsoletes:      nbd-tools
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _sbindir        /sbin
25
26 %description
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
29 and higher.
30
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
33 workstations.
34
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.
39
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.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47
48 test ! -f systemd/nbd@.service.tmpl
49 cp %{SOURCE1} systemd
50
51 %build
52 %configure \
53         --enable-gznbd \
54         --enable-lfs
55
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_sysconfdir}/nbd-server
61
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc README.md
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*
This page took 0.303276 seconds and 3 git commands to generate.