[packages/nbd] - updated to 3.11 - removed obsolete types patch

qboosh qboosh at pld-linux.org
Wed Jul 1 17:23:08 CEST 2015


commit f279f13b2b46c1867e405bebe9321a326cde03b0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jul 1 17:24:56 2015 +0200

    - updated to 3.11
    - removed obsolete types patch

 nbd-types.patch | 20 --------------------
 nbd.spec        | 32 ++++++++++++--------------------
 2 files changed, 12 insertions(+), 40 deletions(-)
---
diff --git a/nbd.spec b/nbd.spec
index 594ccf2..bf6155a 100644
--- a/nbd.spec
+++ b/nbd.spec
@@ -1,19 +1,20 @@
 Summary:	Tools for using the Network Block Device
 Summary(pl.UTF-8):	Narzędzia do używania Network Block Device
 Name:		nbd
-Version:	2.9.24
+Version:	3.11
 Release:	1
 License:	GPL v2
 Group:		Applications/System
-Source0:	http://downloads.sourceforge.net/nbd/%{name}-%{version}.tar.bz2
-# Source0-md5:	39fa29a1b7c1da9d36c53bbb0a25e6cf
-Patch0:		%{name}-types.patch
-Patch1:		%{name}-gznbd.patch
+Source0:	http://downloads.sourceforge.net/nbd/%{name}-%{version}.tar.xz
+# Source0-md5:	73d11644a28b9f335292cdb3bdc4b74b
+Patch0:		%{name}-gznbd.patch
 URL:		http://nbd.sourceforge.net/
 BuildRequires:	docbook-dtd45-sgml
 BuildRequires:	docbook-utils
-BuildRequires:	glib2-devel >= 1:2.6.0
+BuildRequires:	glib2-devel >= 1:2.26.0
 BuildRequires:	pkgconfig
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
 BuildRequires:	zlib-devel
 Requires:	glib2 >= 1:2.6.0
 Obsoletes:	nbd-tools
@@ -42,40 +43,31 @@ przypadku stacji bezdyskowych.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
 
 %build
 %configure \
+	--enable-gznbd \
 	--enable-lfs
 
-# omit knbd-client (broken)
-%{__make} \
-	sbin_PROGRAMS=nbd-client
-
-cd gznbd
-
-%{__cc} %{rpmldflags} %{rpmcflags} -DMY_NAME='"gznbd"' -Wall -o gznbd gznbd.c -lz
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/nbd-server
 
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT \
-	sbin_PROGRAMS=nbd-client
-
-install gznbd/gznbd $RPM_BUILD_ROOT%{_sbindir}
+	DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc README.md
+%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}/nbd-client
-%attr(755,root,root) %{_sbindir}/gznbd
 %dir %{_sysconfdir}/nbd-server
 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nbd-server/config
 %{_mandir}/man1/nbd-server.1*
diff --git a/nbd-types.patch b/nbd-types.patch
deleted file mode 100644
index 2bacbfd..0000000
--- a/nbd-types.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- nbd-2.9.11/gznbd/gznbd.c.orig	2008-03-14 13:19:32.000000000 +0100
-+++ nbd-2.9.11/gznbd/gznbd.c	2008-07-20 09:07:02.282041412 +0200
-@@ -95,7 +95,7 @@
-       fprintf(stderr,"%s: %s does not appear to be a valid size\n",argv[0],argv[3]);
-       exit(1);
-     }
--    printf("%s: file=%s, size=%Ld\n",argv[0],argv[2],size);
-+    printf("%s: file=%s, size=%Ld\n",argv[0],argv[2],(long long)size);
-   } else {
-     char buffer[BLOCK];
-     int result;
-@@ -110,7 +110,7 @@
-     }
- 
-     if(result==0){
--      printf("size=%Ld\n",size);
-+      printf("size=%Ld\n",(long long)size);
-     } else {
-       printf("failed\n");
-       if(result<0){
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list