forked from pool/libnvme
* tree: preserve dhchap_key to during scan * test/mi: initialize struct args * mi-mctp: Fix compile bug in test/mi-mctp.c when !HAVE_LINUX_MCTP_H * linux: Add nvme_get_uuid_list function * tree: support apple-nvme transport * test: add hkdf_add1 test * linux: use EVP_PKEY_CTX_add1_hkdf_info only once in compat function (bsc#1246914) * nvme/linux: check for empty digest in gen_tls_identity() (bsc#1246914) * examples/discover-loop.py: actually implement a discovery loop * examples/discover-loop.py: rework to use 'with' statement * python: support 'with' statement for objects * python: remove "iter" elements * python: fix iterators failing on empty lists * libnvme/nvme.i: raise exception when disconnect fails * python: Don't exit immediately on discovery fail. * nvme/linux: add fallback implementation for nvme_insert_tls_key_compat() (bsc#1246914) * examples/discovery-loop.py: update to use tcp transport * libnvme/nvme.i: Update subsystem definitions * nvme.i: fixup typo in nvme:discover * libnvme: propagate the error to the caller if nvme_get_log_page() fails * python: fix typo in nvmf_discovery_log * linux: fix HKDF TLS key derivation back to OpenSSL 3.0.8 (bsc#1246914) * nvme.i: decode 'tsas' discovery log page entry * nvme.i: fix crash on ctrl.discover() without a connection * docs: add missing API types documentation * libnvme: TLS PSK derivation fixes (bsc#1246914) * linux: rename __nvme_insert_tls_key_versioned() to __nvme_insert_tls_key() (bsc#1246914) * linux: rename __nvme_insert_tls_key() to __nvme_import_tls_key() (bsc#1246914) * test/psk: add testcase for TLS identity derivation (bsc#1246914) * linux: set errno when nvme_generate_tls_key_identity() fails (bsc#1246914) * linux: Add functions to set and clear etdas bit * tree: do not try to strdup NULL pointer (bsc#1247225) OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=74
127 lines
3.1 KiB
RPMSpec
127 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package libnvme
|
|
#
|
|
# Copyright (c) 2026 SUSE LLC and contributors
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 1
|
|
|
|
%bcond_without check
|
|
|
|
Name: libnvme
|
|
Version: 1.16.1
|
|
Release: 0
|
|
Summary: Linux-native nvme device management library
|
|
License: LGPL-2.1-or-later
|
|
URL: https://github.com/linux-nvme/libnvme/
|
|
Source0: libnvme-%{version}.tar.gz
|
|
BuildRequires: dbus-1-devel
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: keyutils-devel
|
|
BuildRequires: libjson-c-devel
|
|
BuildRequires: meson
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: python3-devel
|
|
BuildRequires: swig
|
|
|
|
%description
|
|
Provides library functions for accessing and managing NVMe devices on a Linux
|
|
system.
|
|
|
|
%package -n %{name}%{sover}
|
|
Summary: Linux-native nvme device management library
|
|
|
|
%description -n %{name}%{sover}
|
|
Provides library functions for accessing and managing NVMe devices on a Linux
|
|
system.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{sover} = %{version}
|
|
Requires: %{name}-mi%{sover} = %{version}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
%package mi%{sover}
|
|
Summary: NVMe Managament Interface library for %{name}
|
|
|
|
%description mi%{sover}
|
|
Provides library functions for managing NVMe devices via the NVMe
|
|
Managament Interface.
|
|
|
|
%package -n python3-libnvme
|
|
Summary: Python binding for %{name}
|
|
|
|
%description -n python3-libnvme
|
|
Provides library functions for accessing and managing NVMe devices on a Linux
|
|
system.
|
|
|
|
Python binding part.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
export KBUILD_BUILD_TIMESTAMP=@${SOURCE_DATE_EPOCH:-$(date +%s)}
|
|
%meson \
|
|
-Ddocs=man \
|
|
%{?_with_docs_build:-Ddocs-build=true} \
|
|
-Dversion-tag=%{version} \
|
|
-Dlibdbus=enabled \
|
|
%if 0%{?suse_version} < 1600
|
|
-Dliburing=disabled
|
|
%endif
|
|
%meson_build
|
|
|
|
%if %{with check}
|
|
%check
|
|
%meson_test
|
|
%endif
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%post -n %{name}-mi%{sover} -p /sbin/ldconfig
|
|
%postun -n %{name}-mi%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n %{name}%{sover}
|
|
%license COPYING
|
|
%doc README.md
|
|
%{_libdir}/%{name}.so.%{sover}*
|
|
|
|
%files devel
|
|
%doc README.md
|
|
%{_includedir}/*
|
|
%{_libdir}/%{name}*.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_libdir}/pkgconfig/%{name}-mi.pc
|
|
%{_mandir}/*/*.gz
|
|
|
|
%files -n %{name}-mi%{sover}
|
|
%license COPYING
|
|
%doc README.md
|
|
%{_libdir}/%{name}-mi.so.%{sover}*
|
|
|
|
%files -n python3-libnvme
|
|
%{python3_sitearch}/*
|
|
|
|
%changelog
|