summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--libnvme.spec99
-rw-r--r--sources1
3 files changed, 101 insertions, 0 deletions
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 <fundawang@yeah.net> - 1.10-1
+- update to 1.10
+
+* Sat May 11 2024 tenglei <tenglei@kylinos.cn> - 1.9-1
+- Upgrade to version 1.9
+- add the nvme Cancel command opcode
+
+* Sat Feb 17 2024 Weifeng Su <suweifeng1@huawe.com> - 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 <qiang.wei@suse.com> - 1.2-1
+- Update version to v1.2
+
+* Wed Apr 20 2022 Kai Liu <kai.liu@suse.com> - 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