2015-03-20 20:18:57 +01:00
|
|
|
#
|
|
|
|
# spec file for package libzbc
|
|
|
|
#
|
2024-05-16 08:05:01 +02:00
|
|
|
# Copyright (c) 2024 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
|
2024-06-10 13:43:42 +02:00
|
|
|
%define lname libzbc6
|
|
|
|
Version: 6.0.0
|
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
|
|
|
# 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
|
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
|
|
|
|
2024-05-16 08:05:01 +02:00
|
|
|
%ldconfig_scriptlets -n %lname
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%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*
|
2024-06-10 15:08:42 +02:00
|
|
|
%_datadir/applications/
|
|
|
|
%_datadir/pixmaps/*
|
|
|
|
%_datadir/polkit-1/
|
2015-03-20 20:18:57 +01:00
|
|
|
|
|
|
|
%files -n %lname
|
2024-06-10 13:43:42 +02:00
|
|
|
%_libdir/libzbc.so.*
|
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
|