2015-03-20 20:18:57 +01:00
|
|
|
#
|
|
|
|
# spec file for package libzbc
|
|
|
|
#
|
2021-05-22 12:50:56 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2015-03-20 20:18:57 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-20 09:43:04 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-03-20 20:18:57 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libzbc
|
2021-07-28 13:27:55 +02:00
|
|
|
%define lname libzbc5
|
|
|
|
Version: 5.11.1
|
2015-03-20 20:18:57 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for manipulating ZBC and ZAC disks
|
2018-03-18 22:49:25 +01:00
|
|
|
License: BSD-2-Clause AND LGPL-3.0-or-later
|
|
|
|
Group: Hardware/Other
|
2021-05-22 12:50:56 +02:00
|
|
|
URL: https://github.com/westerndigitalcorporation/libzbc
|
2015-03-20 20:18:57 +01:00
|
|
|
|
2021-05-22 12:50:56 +02:00
|
|
|
Source: https://github.com/westerndigitalcorporation/libzbc/archive/v%version.tar.gz
|
2020-03-09 14:48:14 +01:00
|
|
|
BuildRequires: autoconf-archive
|
2015-03-20 20:18:57 +01:00
|
|
|
BuildRequires: libtool >= 2
|
|
|
|
BuildRequires: pkg-config
|
2015-06-09 01:13:54 +02:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libzbc is a simple library providing functions for manipulating Zoned
|
|
|
|
Block Command (ZBC) and Zoned-device ATA command set (ZAC) disks.
|
|
|
|
libzbc also has an mode for emulating the behavior of a zoned disk
|
|
|
|
using a regular file or raw block device.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Library for manipulating ZBC and ZAC disks
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
libzbc is a simple library providing functions for manipulating Zoned
|
|
|
|
Block Command (ZBC) and Zoned-device ATA command set (ZAC) disks.
|
|
|
|
libzbc also has an mode for emulating the behavior of a zoned disk
|
|
|
|
using a regular file or raw block device.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libzbc, a ZBC/ZAC disk manipulation library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
libzbc is a simple library providing functions for manipulating Zoned
|
|
|
|
Block Command (ZBC), Zoned-device ATA command set (ZAC) disks.
|
|
|
|
|
|
|
|
This subpackage contains the files needed to build against libzbc.
|
|
|
|
|
|
|
|
%package gui
|
|
|
|
Summary: Graphical frontend for ZBC tools
|
|
|
|
Group: Hardware/Other
|
|
|
|
|
|
|
|
%description gui
|
|
|
|
A simple graphical interface showing zone information of a zoned device.
|
|
|
|
It also displays the write status (write pointer position) of zones
|
|
|
|
graphically using color coding (red for written space and green for
|
2021-05-22 12:50:56 +02:00
|
|
|
unwritten space).
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Command line utilities for ZBC/ZAC disk manipulation
|
|
|
|
Group: Hardware/Other
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
libzbc is a simple library providing functions for manipulating Zoned
|
|
|
|
Block Command (ZBC), Zoned-device ATA command set (ZAC) disks.
|
|
|
|
|
|
|
|
%prep
|
2019-09-03 08:09:15 +02:00
|
|
|
%autosetup -p1
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
2021-05-22 12:50:56 +02:00
|
|
|
#mkdir obj
|
|
|
|
#pushd obj/
|
|
|
|
#define _configure ../configure
|
|
|
|
# includedir intentional, cf. bugzilla.opensuse.org/795968
|
2020-03-16 08:20:26 +01:00
|
|
|
%configure --disable-static --includedir="%_includedir/%name" CFLAGS="%optflags -fno-common"
|
2021-05-22 12:50:56 +02:00
|
|
|
%make_build
|
|
|
|
#popd
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%install
|
2021-05-22 12:50:56 +02:00
|
|
|
%make_install
|
2016-02-13 19:15:50 +01:00
|
|
|
find "%buildroot/%_libdir" -type f -name "*.la" -delete
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%check
|
2021-05-22 12:50:56 +02:00
|
|
|
%make_build check
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%_bindir/zbc_*
|
2021-05-22 12:50:56 +02:00
|
|
|
%_mandir/man*/*z*
|
2020-03-09 14:48:14 +01:00
|
|
|
%license COPYING.LESSER
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%files gui
|
2019-09-03 08:09:15 +02:00
|
|
|
%_bindir/gz*
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%files -n %lname
|
2021-07-28 13:27:55 +02:00
|
|
|
%_libdir/libzbc.so.5*
|
2020-03-09 14:48:14 +01:00
|
|
|
%license COPYING.BSD
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_includedir/%name/
|
|
|
|
%_libdir/libzbc.so
|
|
|
|
%_libdir/pkgconfig/libzbc.pc
|
|
|
|
|
|
|
|
%changelog
|