libnvme/libnvme.spec

100 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libnvme
#
# Copyright (c) 2022 SUSE LLC
#
# 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
Name: libnvme
Version: 1.0~2
Release: 0
Summary: Linux-native nvme device management library
License: LGPL-2.1-only
URL: https://github.com/linux-nvme/libnvme/
Source0: libnvme-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libjson-c-devel
BuildRequires: libuuid-devel
BuildRequires: make
BuildRequires: meson >= 0.47.0
BuildRequires: openssl-devel
BuildRequires: python3-Sphinx
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}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%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
Accepting request 1116605 from home:wagi:branches:Base:System - Use glob for python3-libnvme file listening. Workaround pycache_only problems for SLE/Leap builds. - Drop usused libuuid dependency - Update to version 1.6: (jsc#PED-3610 jsc#PED-4879 jsc#PED-5061) * tree: fix segfault in nvme_scan_subsystem() (bsc#1213993) * src/nvme/tree.c: make __nvme_scan_subsystem() returning bool (bsc#1213993) * nvme-tree: avoid warning in 'list-subsys' (bsc#1212598) * tree: Add getter for subsystem iopolicy (bsc#1124564) * tree: Scan all subsystems (bsc#1212598) (bsc#1213527 bsc#1213686) * ioctl: fix RAE bit on last Get Log Page command (bsc#1213618) * fabrics: check genctr after getting discovery entries (bsc#1213618) - Enabled unit test on s390x again (bsc#1207687, bsc#1207686) - Fix invalid string lenght calculcation for UUID (bsc#1209906) - Fix segmentation fault during garbage collection (bsc#1209905) - Always sanitize traddr and trsvcid entries (bsc#1207435) - Allow tracking unique discover controllers (bsc#1186689) - temporarily disable unit tests on s390x (bsc#1207687, bsc#1207686) * tree: Factor lookup code for controller (bsc#1199503) * fabrics: Consider config from file when adding new controller (bsc#1199503) * fabrics: Lower log level in __nvmf_add_ctrl (bsc#1199994 bsc#1199503) * fabrics: Remove double connection error logging (bsc#1199994 bsc#1199503) * Fixes for controller authentication (bsc#1201501 bsc#1201700 bsc#1201701 bsc#1201717) OBS-URL: https://build.opensuse.org/request/show/1116605 OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=45
2023-10-10 09:41:36 +02:00
%meson \
-Dman=true
%meson_build
%install
%meson_install
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{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
%{_mandir}/*/*
%files -n python3-libnvme
%{python3_sitearch}/libnvme
%{python3_sitearch}/libnvme/*.so
%{python3_sitearch}/libnvme/__init__.py
%{python3_sitearch}/libnvme/nvme.py
%changelog