[packages/libzbc] - new URLs, updated to 5.12.0 (new soname) - removed obsolete format,no-common patches

qboosh qboosh at pld-linux.org
Fri Oct 22 21:24:39 CEST 2021


commit bf0e4acc84c4b76ca0b8e29f7df2dac798e1692f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 22 21:29:54 2021 +0200

    - new URLs, updated to 5.12.0 (new soname)
    - removed obsolete format,no-common patches

 libzbc-format.patch    | 11 -----------
 libzbc-no-common.patch | 38 --------------------------------------
 libzbc.spec            | 24 ++++++++++++------------
 3 files changed, 12 insertions(+), 61 deletions(-)
---
diff --git a/libzbc.spec b/libzbc.spec
index 5684b61..802db02 100644
--- a/libzbc.spec
+++ b/libzbc.spec
@@ -1,22 +1,20 @@
 #
 # Conditional build:
-%bcond_without	apidocs		# do not build and package API docs
+%bcond_without	apidocs		# API documentation
 %bcond_without	gtk		# GTK+ 3 based GUI
-%bcond_without	static_libs	# don't build static libraries
+%bcond_without	static_libs	# static library
 #
 Summary:	Library for accessing and managing ZBC/ZAC devices
 Summary(pl.UTF-8):	Biblioteka do dostępu i zarządzania urządzeniami ZBC/ZAC
 Name:		libzbc
-Version:	5.8.5
+Version:	5.12.0
 Release:	1
 License:	BSD or LGPL v3+
 Group:		Libraries
-#Source0Download: https://github.com/hgst/libzbc/releases
-Source0:	https://github.com/hgst/libzbc/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	f2be03832fface56f94dc4bc625bb46c
-Patch0:		%{name}-format.patch
-Patch1:		%{name}-no-common.patch
-URL:		https://github.com/hgst/libzbc
+#Source0Download: https://github.com/westerndigitalcorporation/libzbc/releases
+Source0:	https://github.com/westerndigitalcorporation/libzbc/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	d1d1599637a7c4856052d0bec5a8dc49
+URL:		https://github.com/westerndigitalcorporation/libzbc
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake >= 1:1.11
 %{?with_apidocs:BuildRequires:	doxygen}
@@ -86,8 +84,6 @@ Narzędzia dla libzbc z graficznym interfejsem użytkownika.
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -125,7 +121,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc COPYING.BSD README.md
 %attr(755,root,root) %{_bindir}/zbc_*
-%attr(755,root,root) %{_libdir}/libzbc-%{version}.so
+%attr(755,root,root) %{_libdir}/libzbc.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libzbc.so.5
+%{_mandir}/man8/zbc_*.8*
 
 %files devel
 %defattr(644,root,root,755)
@@ -150,4 +148,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/gzbc
 %attr(755,root,root) %{_bindir}/gzviewer
+%{_mandir}/man8/gzbc.8*
+%{_mandir}/man8/gzviewer.8*
 %endif
diff --git a/libzbc-format.patch b/libzbc-format.patch
deleted file mode 100644
index 8d63484..0000000
--- a/libzbc-format.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- libzbc-5.8.5/tools/gzbc/gzbc_if_dev.c.orig	2020-03-09 06:44:41.000000000 +0100
-+++ libzbc-5.8.5/tools/gzbc/gzbc_if_dev.c	2020-05-30 20:16:54.056454623 +0200
-@@ -1441,7 +1441,7 @@
- 						GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
- 						GTK_MESSAGE_ERROR,
- 						GTK_BUTTONS_OK,
--						str);
-+						"%s", str);
- 		gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
- 							 "Error %d (%s)",
- 							 ret, strerror(ret));
diff --git a/libzbc-no-common.patch b/libzbc-no-common.patch
deleted file mode 100644
index e78f057..0000000
--- a/libzbc-no-common.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- libzbc-5.8.5/lib/zbc.h.orig	2020-03-09 06:44:41.000000000 +0100
-+++ libzbc-5.8.5/lib/zbc.h	2020-05-30 21:29:06.973574281 +0200
-@@ -177,22 +177,22 @@
- /**
-  * Block device driver (requires kernel support).
-  */
--struct zbc_drv zbc_block_drv;
-+extern struct zbc_drv zbc_block_drv;
- 
- /**
-  * ZAC (ATA) device driver (uses SG_IO).
-  */
--struct zbc_drv zbc_ata_drv;
-+extern struct zbc_drv zbc_ata_drv;
- 
- /**
-  * ZBC (SCSI) device driver (uses SG_IO).
-  */
--struct zbc_drv zbc_scsi_drv;
-+extern struct zbc_drv zbc_scsi_drv;
- 
- /**
-  * ZBC emulation driver (file or block device).
-  */
--struct zbc_drv zbc_fake_drv;
-+extern struct zbc_drv zbc_fake_drv;
- 
- #define container_of(ptr, type, member) \
-     ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
-@@ -266,7 +266,7 @@
- /**
-  * Library log level.
-  */
--int zbc_log_level;
-+extern int zbc_log_level;
- 
- #define zbc_print(stream,format,args...)		\
- 	do {						\
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libzbc.git/commitdiff/bf0e4acc84c4b76ca0b8e29f7df2dac798e1692f



More information about the pld-cvs-commit mailing list