]> git.pld-linux.org Git - packages/nbd.git/blob - nbd.spec
ac47a9eaac1d6e413cfd724b3652579a57efd6d2
[packages/nbd.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.23
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:  c35397bd2c4d53bb9f14523463357096
10 Patch0:         %{name}-gznbd.patch
11 URL:            http://nbd.sourceforge.net/
12 BuildRequires:  bison
13 BuildRequires:  docbook-dtd45-sgml
14 BuildRequires:  docbook-utils
15 BuildRequires:  flex
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
21 BuildRequires:  xz
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)
28
29 %define         _sbindir        /sbin
30
31 %description
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
34 and higher.
35
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
38 workstations.
39
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.
44
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.
48
49 %prep
50 %setup -q
51 %patch0 -p1
52
53 %build
54 %configure \
55         --disable-silent-rules \
56         --enable-gznbd \
57         --enable-lfs
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_sysconfdir}/nbd-server
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc README.md
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*
This page took 0.059109 seconds and 2 git commands to generate.