[packages/nbd] - updated to 3.14 - include missing file as source1

qboosh qboosh at pld-linux.org
Fri Aug 5 05:44:02 CEST 2016


commit 5e2b5bf1d0cd292082e252c5c67e609f6e095466
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Aug 5 05:44:41 2016 +0200

    - updated to 3.14
    - include missing file as source1

 nbd.spec          | 11 ++++++++---
 nbd at .service.tmpl | 11 +++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/nbd.spec b/nbd.spec
index bf6155a..93750a2 100644
--- a/nbd.spec
+++ b/nbd.spec
@@ -1,12 +1,13 @@
 Summary:	Tools for using the Network Block Device
 Summary(pl.UTF-8):	Narzędzia do używania Network Block Device
 Name:		nbd
-Version:	3.11
+Version:	3.14
 Release:	1
 License:	GPL v2
 Group:		Applications/System
 Source0:	http://downloads.sourceforge.net/nbd/%{name}-%{version}.tar.xz
-# Source0-md5:	73d11644a28b9f335292cdb3bdc4b74b
+# Source0-md5:	fa29f57ca752e363edc15f0e35f0a95f
+Source1:	nbd at .service.tmpl
 Patch0:		%{name}-gznbd.patch
 URL:		http://nbd.sourceforge.net/
 BuildRequires:	docbook-dtd45-sgml
@@ -16,7 +17,7 @@ BuildRequires:	pkgconfig
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
 BuildRequires:	zlib-devel
-Requires:	glib2 >= 1:2.6.0
+Requires:	glib2 >= 1:2.26.0
 Obsoletes:	nbd-tools
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -44,6 +45,9 @@ przypadku stacji bezdyskowych.
 %setup -q
 %patch0 -p1
 
+test ! -f systemd/nbd at .service.tmpl
+cp %{SOURCE1} systemd
+
 %build
 %configure \
 	--enable-gznbd \
@@ -73,4 +77,5 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/nbd-server.1*
 %{_mandir}/man1/nbd-trdump.1*
 %{_mandir}/man5/nbd-server.5*
+%{_mandir}/man5/nbdtab.5*
 %{_mandir}/man8/nbd-client.8*
diff --git a/nbd at .service.tmpl b/nbd at .service.tmpl
new file mode 100644
index 0000000..65a2609
--- /dev/null
+++ b/nbd at .service.tmpl
@@ -0,0 +1,11 @@
+[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/5e2b5bf1d0cd292082e252c5c67e609f6e095466



More information about the pld-cvs-commit mailing list