]> git.pld-linux.org Git - packages/nbd.git/blame - nbd.spec
up to 3.24
[packages/nbd.git] / nbd.spec
CommitLineData
b3fb13fc 1Summary: Tools for using the Network Block Device
6a3cd270 2Summary(pl.UTF-8): Narzędzia do używania Network Block Device
b3fb13fc 3Name: nbd
6b1bd386 4Version: 3.24
8e43f4e1 5Release: 1
e294d4ba 6License: GPL v2
b3fb13fc 7Group: Applications/System
f279f13b 8Source0: http://downloads.sourceforge.net/nbd/%{name}-%{version}.tar.xz
6b1bd386 9# Source0-md5: a6d9e7bbc311a2ed07ef84a58b82b5dd
f279f13b 10Patch0: %{name}-gznbd.patch
b3fb13fc 11URL: http://nbd.sourceforge.net/
9727b540 12BuildRequires: bison
8ea650b7
JB
13BuildRequires: docbook-dtd45-sgml
14BuildRequires: docbook-utils
9727b540
JP
15BuildRequires: flex
16BuildRequires: glib2-devel >= 1:2.68.0
17BuildRequires: gnutls-devel >= 2.12.0
18BuildRequires: libnl-devel >= 3.1
f1381967 19BuildRequires: pkgconfig
f279f13b
JB
20BuildRequires: tar >= 1:1.22
21BuildRequires: xz
b3fb13fc 22BuildRequires: zlib-devel
9727b540
JP
23Requires: glib2 >= 1:2.68.0
24Requires: gnutls-libs >= 2.12.0
25Requires: libnl >= 3.1
49c9e6b4 26Obsoletes: nbd-tools < 1.4
b3fb13fc
JB
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
65c6844b
JB
29%define _sbindir /sbin
30
b3fb13fc
JB
31%description
32nbd contains the tools needed to export a network block device and to
33use a network block device. The nbd module is part of the 2.2 kernels
34and higher.
35
36If you have a kernel patched for it, you can use the network block
37device to swap over the net, which is particularly useful for diskless
38workstations.
39
b8016603
JR
40%description -l pl.UTF-8
41nbd zawiera narzędzia potrzebne do wyeksportowania i używania
42sieciowego urządzenia blokowego (Network Block Device). Moduł do nbd
43jest w jądrze 2.2 i późniejszych.
b3fb13fc 44
b8016603
JR
45Jeżeli masz kernel z odpowiednią łatą, możesz używać sieciowego
46urządzenia blokowego do swapowania przez sieć - jest to przydatne w
b3fb13fc
JB
47przypadku stacji bezdyskowych.
48
49%prep
ab020f4e 50%setup -q
9fec8d37 51%patch0 -p1
b3fb13fc
JB
52
53%build
9845173a 54%configure \
9727b540 55 --disable-silent-rules \
f279f13b 56 --enable-gznbd \
9845173a 57 --enable-lfs
b3fb13fc 58
f279f13b 59%{__make}
b3fb13fc
JB
60
61%install
62rm -rf $RPM_BUILD_ROOT
16584371 63install -d $RPM_BUILD_ROOT%{_sysconfdir}/nbd-server
b3fb13fc 64
65c6844b 65%{__make} install \
f279f13b 66 DESTDIR=$RPM_BUILD_ROOT
b3fb13fc
JB
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%files
72%defattr(644,root,root,755)
f279f13b
JB
73%doc README.md
74%attr(755,root,root) %{_bindir}/gznbd
65c6844b 75%attr(755,root,root) %{_bindir}/nbd-server
6674ea20 76%attr(755,root,root) %{_bindir}/nbd-trdump
6b1bd386 77%attr(755,root,root) %{_bindir}/nbd-trplay
9727b540 78%attr(755,root,root) %{_sbindir}/min-nbd-client
65c6844b 79%attr(755,root,root) %{_sbindir}/nbd-client
16584371
JB
80%dir %{_sysconfdir}/nbd-server
81#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nbd-server/config
82%{_mandir}/man1/nbd-server.1*
6674ea20 83%{_mandir}/man1/nbd-trdump.1*
6b1bd386 84%{_mandir}/man1/nbd-trplay.1*
16584371 85%{_mandir}/man5/nbd-server.5*
5e2b5bf1 86%{_mandir}/man5/nbdtab.5*
16584371 87%{_mandir}/man8/nbd-client.8*
This page took 0.07672 seconds and 4 git commands to generate.