[packages/nbd] up to 3.23

atler atler at pld-linux.org
Wed Feb 9 23:40:34 CET 2022


commit 9727b5409d28912eb89cf402b0f6fa1ff31e3ae3
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Feb 9 23:40:04 2022 +0100

    up to 3.23

 nbd.spec          | 20 ++++++++++++--------
 nbd at .service.tmpl | 11 -----------
 2 files changed, 12 insertions(+), 19 deletions(-)
---
diff --git a/nbd.spec b/nbd.spec
index 93750a2..9dbb208 100644
--- a/nbd.spec
+++ b/nbd.spec
@@ -1,23 +1,28 @@
 Summary:	Tools for using the Network Block Device
 Summary(pl.UTF-8):	Narzędzia do używania Network Block Device
 Name:		nbd
-Version:	3.14
+Version:	3.23
 Release:	1
 License:	GPL v2
 Group:		Applications/System
 Source0:	http://downloads.sourceforge.net/nbd/%{name}-%{version}.tar.xz
-# Source0-md5:	fa29f57ca752e363edc15f0e35f0a95f
-Source1:	nbd at .service.tmpl
+# Source0-md5:	c35397bd2c4d53bb9f14523463357096
 Patch0:		%{name}-gznbd.patch
 URL:		http://nbd.sourceforge.net/
+BuildRequires:	bison
 BuildRequires:	docbook-dtd45-sgml
 BuildRequires:	docbook-utils
-BuildRequires:	glib2-devel >= 1:2.26.0
+BuildRequires:	flex
+BuildRequires:	glib2-devel >= 1:2.68.0
+BuildRequires:	gnutls-devel >= 2.12.0
+BuildRequires:	libnl-devel >= 3.1
 BuildRequires:	pkgconfig
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
 BuildRequires:	zlib-devel
-Requires:	glib2 >= 1:2.26.0
+Requires:	glib2 >= 1:2.68.0
+Requires:	gnutls-libs >= 2.12.0
+Requires:	libnl >= 3.1
 Obsoletes:	nbd-tools
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -45,11 +50,9 @@ przypadku stacji bezdyskowych.
 %setup -q
 %patch0 -p1
 
-test ! -f systemd/nbd at .service.tmpl
-cp %{SOURCE1} systemd
-
 %build
 %configure \
+	--disable-silent-rules \
 	--enable-gznbd \
 	--enable-lfs
 
@@ -71,6 +74,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/gznbd
 %attr(755,root,root) %{_bindir}/nbd-server
 %attr(755,root,root) %{_bindir}/nbd-trdump
+%attr(755,root,root) %{_sbindir}/min-nbd-client
 %attr(755,root,root) %{_sbindir}/nbd-client
 %dir %{_sysconfdir}/nbd-server
 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nbd-server/config
diff --git a/nbd at .service.tmpl b/nbd at .service.tmpl
deleted file mode 100644
index 65a2609..0000000
--- a/nbd at .service.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=NBD client connection for %i
-Documentation=man:nbd-client
-PartOf=nbd.service
-[Service]
-Type=forking
-ExecStart=@sbindir@/nbd-client %i
-Before=dev-%i.device
-RequiredBy=dev-%i.device
-[Install]
-RequiredBy=dev-%i.device
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nbd.git/commitdiff/9727b5409d28912eb89cf402b0f6fa1ff31e3ae3



More information about the pld-cvs-commit mailing list