summaryrefslogtreecommitdiff
path: root/libnvme.spec
blob: 6610f4c168b892826752b726a76843ef9512628c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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