2022-01-18 12:42:11 +01:00
|
|
|
#
|
|
|
|
# spec file for package libnvme
|
|
|
|
#
|
2023-01-30 15:36:03 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-01-18 12:42:11 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2022-02-02 07:30:37 +01:00
|
|
|
|
2022-01-18 12:42:11 +01:00
|
|
|
%define sover 1
|
|
|
|
|
|
|
|
Name: libnvme
|
2023-07-27 14:13:24 +02:00
|
|
|
Version: 1.4
|
2022-01-18 12:42:11 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Linux-native nvme device management library
|
2022-03-08 10:31:35 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2022-01-18 13:59:04 +01:00
|
|
|
URL: https://github.com/linux-nvme/libnvme/
|
2022-01-18 15:34:33 +01:00
|
|
|
Source0: libnvme-%{version}.tar.gz
|
2023-01-30 15:36:03 +01:00
|
|
|
BuildRequires: dbus-1-devel
|
2022-02-02 07:30:37 +01:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
2023-03-31 18:01:20 +02:00
|
|
|
BuildRequires: keyutils-devel
|
2022-01-18 12:42:11 +01:00
|
|
|
BuildRequires: libjson-c-devel
|
2022-02-02 07:30:37 +01:00
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: make
|
2023-01-30 15:36:03 +01:00
|
|
|
BuildRequires: meson >= 0.50.0
|
2022-01-18 12:42:11 +01:00
|
|
|
BuildRequires: openssl-devel
|
2022-02-02 07:30:37 +01:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: swig
|
2022-01-18 12:42:11 +01:00
|
|
|
|
|
|
|
%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}
|
2022-07-14 17:26:26 +02:00
|
|
|
Requires: %{name}-mi%{sover} = %{version}
|
2022-01-18 12:42:11 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2022-07-14 17:26:26 +02:00
|
|
|
%package mi%{sover}
|
|
|
|
Summary: NVMe Managament Interface library for %{name}
|
|
|
|
|
|
|
|
%description mi%{sover}
|
|
|
|
Provides library functions for managing NVMe devices via the NVMe
|
|
|
|
Managament Interface.
|
|
|
|
|
|
|
|
%package -n python3-libnvme
|
2022-01-18 12:42:11 +01:00
|
|
|
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
|
2022-01-19 12:17:34 +01:00
|
|
|
%autosetup -p1
|
2022-01-18 12:42:11 +01:00
|
|
|
|
|
|
|
%build
|
2022-11-02 08:16:54 +01:00
|
|
|
export KBUILD_BUILD_TIMESTAMP=@${SOURCE_DATE_EPOCH:-$(date +%s)}
|
2022-11-03 12:32:15 +01:00
|
|
|
%meson -Ddocs=man %{?_with_docs_build:-Ddocs-build=true}
|
2022-01-18 12:42:11 +01:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
|
2022-07-14 17:26:26 +02:00
|
|
|
%post -n %{name}-mi%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}-mi%{sover} -p /sbin/ldconfig
|
|
|
|
|
2022-01-18 12:42:11 +01:00
|
|
|
%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
|
2022-07-14 17:26:26 +02:00
|
|
|
%{_libdir}/pkgconfig/%{name}-mi.pc
|
2022-08-30 16:00:12 +02:00
|
|
|
%{_mandir}/*/*.gz
|
2022-01-18 12:42:11 +01:00
|
|
|
|
2022-07-14 17:26:26 +02:00
|
|
|
%files -n %{name}-mi%{sover}
|
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%{_libdir}/%{name}-mi.so.%{sover}*
|
|
|
|
|
2022-01-18 12:42:11 +01:00
|
|
|
%files -n python3-libnvme
|
2022-11-03 12:32:15 +01:00
|
|
|
%dir %{python3_sitearch}/libnvme
|
2022-01-18 12:42:11 +01:00
|
|
|
%{python3_sitearch}/libnvme/*.so
|
|
|
|
%{python3_sitearch}/libnvme/__init__.py
|
|
|
|
%{python3_sitearch}/libnvme/nvme.py
|
|
|
|
|
|
|
|
%changelog
|