From 4e23dec95909926f488c88deefface341b4eabd9 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 10 Aug 2024 10:11:59 +0000 Subject: automatic import of libnvme --- .gitignore | 1 + libnvme.spec | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 101 insertions(+) create mode 100644 libnvme.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..7053e14 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libnvme-1.10.tar.gz diff --git a/libnvme.spec b/libnvme.spec new file mode 100644 index 0000000..6610f4c --- /dev/null +++ b/libnvme.spec @@ -0,0 +1,99 @@ +Name: libnvme +Version: 1.10 +Release: 1 +Summary: Linux-native nvme device management library +License: LGPL-2.1-or-later +URL: https://github.com/linux-nvme/libnvme + +Source: https://github.com/linux-nvme/libnvme/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: gcc-g++ +BuildRequires: meson >= 0.50.0 +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(json-c) >= 0.13 +BuildRequires: pkgconfig(libkeyutils) +BuildRequires: pkgconfig(openssl) >= 1.1.0 +BuildRequires: perl-interpreter +BuildRequires: swig +BuildRequires: python3-devel + +%description +Provides library functions for accessing and managing nvme devices on a Linux +system. + +%package devel +Summary: Development files for Linux-native nvme +Requires: %{name} = %{version}-%{release} + +%description devel +This package provides header files to include and libraries to link with +for Linux-native nvme device maangement. + +%package_help + +%package -n python3-libnvme +Summary: Python3 bindings for libnvme +Requires: %{name} = %{version}-%{release} +Provides: python3-nvme = %{version}-%{release} +%{?python_provie:%python_provide python3-libnvme} + +%description -n python3-libnvme +This package contains Python binding for libnvme. + +%prep +%autosetup -p1 + +%build +%meson -Ddocs=man +%meson_build + +%install +%meson_install + +%check +%meson_test + +%files +%license COPYING +%{_libdir}/libnvme.so.* +%{_libdir}/libnvme-mi.so.* + +%files devel +%{_includedir}/nvme +%{_includedir}/libnvme.h +%{_includedir}/libnvme-mi.h +%{_libdir}/libnvme.so +%{_libdir}/libnvme-mi.so +%{_libdir}/pkgconfig/* + +%files help +%{_mandir}/man2/* + +%files -n python3-libnvme +%{python3_sitearch}/libnvme + +%changelog +* Thu Aug 08 2024 Funda Wang - 1.10-1 +- update to 1.10 + +* Sat May 11 2024 tenglei - 1.9-1 +- Upgrade to version 1.9 +- add the nvme Cancel command opcode + +* Sat Feb 17 2024 Weifeng Su - 1.8-1 +- Upgrade to version 1.8 + -Support added for Flexible Data Placement(TP4146) + -Add support for Persistent Discovery Controllers + -Replaced the libsystemd dependency with libdbus + -A parser for the NBFT table + -Ignoring fabric connect attempts if the execution context doesn't match + -support for TP8018 + -use sysfs only for topology scan + -auto cleanup for resources + -buf fixed and clean code + +* Mon Dec 19 2022 Qiang Wei - 1.2-1 +- Update version to v1.2 + +* Wed Apr 20 2022 Kai Liu - 1.0-1 +- v1.0 package for openEuler Linux diff --git a/sources b/sources new file mode 100644 index 0000000..913c08e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +0d43167362a119f8a621607b7ee20c51 libnvme-1.10.tar.gz -- cgit v1.2.3