# SPDX-License-Identifier: LGPL-2.1-or-later Name: libnvme Version: 3.0 Release: test1 Summary: Linux-native nvme device management library License: LGPL-2.1-or-later # https://github.com/MichaelRabek/nvme-cli/archive/refs/tags/3.0-test-1.tar.gz BuildRoot: %{_tmppath}/%{name}-root URL: https://github.com/MichaelRabek/nvme-cli Source0: %{url}/archive/refs/tags/%{version_no_tilde}-%{release}.tar.gz BuildRequires: gcc gcc-c++ # BuildRequires: swig BuildRequires: python3-devel BuildRequires: meson >= 1.8 BuildRequires: json-c-devel >= 0.18 BuildRequires: openssl-devel BuildRequires: dbus-devel BuildRequires: keyutils-libs-devel %if (0%{?rhel} == 0) BuildRequires: kernel-headers >= 5.15 %endif %description Provides type definitions for NVMe specification structures, enumerations, and bit fields, helper functions to construct, dispatch, and decode commands and payloads, and utilities to connect, scan, and manage nvme devices on a Linux system. NOTICE: This is an expermental version of the libnvme library from the Timberland-sig repository. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Provides: libnvme3.so.1 %description devel This package provides header files to include and libraries to link with for Linux-native nvme device maangement. %package doc Summary: Reference manual for %{name} BuildArch: noarch BuildRequires: perl-interpreter BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme %description doc This package contains the reference manual for %{name}. %define _prefix /usr/local %prep %autosetup -c %build %meson -Ddocs=man -Ddocs-build=true -Ddefault_library=both -Dhtmldir=%{_pkgdocdir} %meson_build %install cd .build %meson_install --skip-subprojects %files %defattr(-,root,root) %attr(0755,root,root) %{_libdir}/libnvme* %doc COPYING %files devel %defattr(-,root,root) %attr(-,root,root) %{_includedir}/nvme/ %attr(0644,root,root) %{_includedir}/libnvme* %attr(0755,root,root) %{_libdir}/libnvme* %attr(0644,root,root) %{_libdir}/pkgconfig/* %attr(0644,root,root) %{_mandir}/man2/* %changelog * Wed Aug 19 2026 Michal Rábek - Updated to upstream 3.0-rc1 * Mon Feb 13 2023 John Meneghini - Fix building rpms * Tue Jan 31 2023 Tomas Bzatek - 1.3-1 - Upstream v1.3 release * Thu Jan 19 2023 Fedora Release Engineering - 1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 01 2022 Tomas Bzatek - 1.2-1 - Upstream v1.2 release * Fri Aug 05 2022 Tomas Bzatek - 1.1-1 - Upstream v1.1 release * Thu Jul 21 2022 Fedora Release Engineering - 1.1~rc0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 15 2022 Tomas Bzatek - 1.1~rc0-1 - Upstream v1.1 Release Candidate 0 * Wed Jul 13 2022 Steven Seungcheol Lee - Enable building rpm - meson is needed higher version then what rpm repo offering (use pip install) * Mon Jun 13 2022 Python Maint - 1.0-2 - Rebuilt for Python 3.11 * Mon Apr 11 2022 Tomas Bzatek - 1.0-1 - Upstream v1.0 release * Fri Apr 01 2022 Tomas Bzatek - 1.0~rc8-1 - Upstream v1.0 Release Candidate 8 * Wed Mar 23 2022 Tomas Bzatek - 1.0~rc7-1 - Upstream v1.0 Release Candidate 7 - Renamed python3-nvme subpackage to python3-libnvme * Mon Mar 14 2022 Tomas Bzatek - 1.0~rc6-1 - Upstream v1.0 Release Candidate 6 * Fri Mar 04 2022 Tomas Bzatek - 1.0~rc5-1 - Upstream v1.0 Release Candidate 5 * Mon Feb 28 2022 Tomas Bzatek - 1.0~rc4-1 - Upstream v1.0 Release Candidate 4 * Fri Feb 11 2022 Tomas Bzatek - 1.0~rc3-1 - Upstream v1.0 Release Candidate 3 * Tue Feb 01 2022 Tomas Bzatek - 1.0~rc2-1 - Upstream v1.0 Release Candidate 2 * Thu Jan 27 2022 Tomas Bzatek - 1.0~rc1-1 - Upstream v1.0 Release Candidate 1 * Mon Jan 17 2022 Tomas Bzatek - 1.0~rc0-1 - Upstream v1.0 Release Candidate 0 * Wed Oct 20 2021 Tomas Bzatek - 0.0.1-1.git1fe38d6 - Initial packaging * Thu Dec 12 2019 Keith Busch - 0.1 - Initial version