2022-03-02 16:39:07 +00:00
|
|
|
# RHEL 8 compatibility
|
|
|
|
%{!?version_no_tilde: %define version_no_tilde %{shrink:%(echo '%{version}' | tr '~' '-')}}
|
|
|
|
|
|
|
|
Name: libnvme
|
|
|
|
Summary: Linux-native nvme device management library
|
2023-12-28 16:09:52 +00:00
|
|
|
Version: 1.7.1
|
2024-01-25 03:04:31 +00:00
|
|
|
Release: 3%{?dist}
|
2023-09-29 12:27:37 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2022-03-02 16:39:07 +00:00
|
|
|
URL: https://github.com/linux-nvme/libnvme
|
|
|
|
Source0: %{url}/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: gcc gcc-c++
|
|
|
|
BuildRequires: swig
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
2023-02-01 10:33:41 +00:00
|
|
|
BuildRequires: meson >= 0.50
|
2022-03-02 16:39:07 +00:00
|
|
|
BuildRequires: json-c-devel >= 0.13
|
|
|
|
BuildRequires: openssl-devel
|
2023-02-01 10:33:41 +00:00
|
|
|
BuildRequires: dbus-devel
|
2023-04-03 13:38:20 +00:00
|
|
|
BuildRequires: keyutils-libs-devel
|
2022-07-22 14:40:55 +00:00
|
|
|
%if (0%{?rhel} == 0)
|
2022-07-15 16:31:19 +00:00
|
|
|
BuildRequires: kernel-headers >= 5.15
|
2022-07-22 14:40:55 +00:00
|
|
|
%endif
|
2022-03-02 16:39:07 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides header files to include and libraries to link with
|
|
|
|
for Linux-native nvme device management.
|
|
|
|
%package doc
|
|
|
|
Summary: Reference manual for libnvme
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
BuildRequires: python3-sphinx_rtd_theme
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the reference manual for %{name}.
|
|
|
|
|
2022-03-23 14:53:58 +00:00
|
|
|
%package -n python3-libnvme
|
2022-03-02 16:39:07 +00:00
|
|
|
Summary: Python3 bindings for libnvme
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2022-03-23 14:53:58 +00:00
|
|
|
Provides: python3-nvme = %{version}-%{release}
|
|
|
|
Obsoletes: python3-nvme < 1.0~rc7
|
|
|
|
%{?python_provide:%python_provide python3-libnvme}
|
2022-03-02 16:39:07 +00:00
|
|
|
|
2022-03-23 14:53:58 +00:00
|
|
|
%description -n python3-libnvme
|
2022-03-02 16:39:07 +00:00
|
|
|
This package contains Python bindings for libnvme.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{name}-%{version_no_tilde}
|
|
|
|
|
|
|
|
%build
|
2023-07-04 13:35:52 +00:00
|
|
|
%meson -Dpython=enabled -Dlibdbus=enabled -Ddocs=all -Ddocs-build=true -Dhtmldir=%{_pkgdocdir}
|
2022-03-02 16:39:07 +00:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
%{__install} -pm 644 README.md %{buildroot}%{_pkgdocdir}
|
|
|
|
%{__install} -pm 644 doc/config-schema.json %{buildroot}%{_pkgdocdir}
|
|
|
|
mv %{buildroot}%{_pkgdocdir}/nvme/html %{buildroot}%{_pkgdocdir}/html
|
|
|
|
rm -rf %{buildroot}%{_pkgdocdir}/nvme
|
2022-07-15 16:09:39 +00:00
|
|
|
mv %{buildroot}/usr/*.rst %{buildroot}%{_pkgdocdir}/
|
2022-03-02 16:39:07 +00:00
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING ccan/licenses/*
|
|
|
|
%{_libdir}/libnvme.so.1
|
2023-12-28 16:09:52 +00:00
|
|
|
%{_libdir}/libnvme.so.1.7.1
|
2022-07-15 16:09:39 +00:00
|
|
|
%{_libdir}/libnvme-mi.so.1
|
2023-12-28 16:09:52 +00:00
|
|
|
%{_libdir}/libnvme-mi.so.1.7.1
|
2022-03-02 16:39:07 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libnvme.so
|
2022-07-15 16:09:39 +00:00
|
|
|
%{_libdir}/libnvme-mi.so
|
2022-03-02 16:39:07 +00:00
|
|
|
%{_includedir}/libnvme.h
|
2022-07-15 16:09:39 +00:00
|
|
|
%{_includedir}/libnvme-mi.h
|
2022-03-02 16:39:07 +00:00
|
|
|
%dir %{_includedir}/nvme
|
|
|
|
%{_includedir}/nvme/*.h
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{_pkgdocdir}
|
|
|
|
%{_mandir}/man2/*.2*
|
|
|
|
|
2022-03-23 14:53:58 +00:00
|
|
|
%files -n python3-libnvme
|
2022-03-02 16:39:07 +00:00
|
|
|
%dir %{python3_sitearch}/libnvme
|
|
|
|
%{python3_sitearch}/libnvme/*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-25 03:04:31 +00:00
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-21 04:51:08 +00:00
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-12-28 16:09:52 +00:00
|
|
|
* Thu Dec 28 2023 Tomas Bzatek <tbzatek@redhat.com> - 1.7.1-1
|
|
|
|
- Upstream v1.7.1 release
|
|
|
|
|
2023-10-24 19:00:54 +00:00
|
|
|
* Tue Oct 24 2023 Tomas Bzatek <tbzatek@redhat.com> - 1.6-2
|
|
|
|
- Backport stack smashing fixes (#2245707)
|
|
|
|
|
2023-09-29 12:27:37 +00:00
|
|
|
* Fri Sep 29 2023 Tomas Bzatek <tbzatek@redhat.com> - 1.6-1
|
|
|
|
- Upstream v1.6 release
|
|
|
|
|
2023-07-20 11:37:30 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-07-04 16:32:47 +00:00
|
|
|
* Tue Jul 04 2023 Python Maint <python-maint@redhat.com> - 1.5-2
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
2023-07-04 13:35:52 +00:00
|
|
|
* Tue Jul 04 2023 Tomas Bzatek <tbzatek@redhat.com> - 1.5-1
|
|
|
|
- Upstream v1.5 release
|
|
|
|
|
2023-06-15 12:41:36 +00:00
|
|
|
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 1.4-3
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
2023-04-20 13:58:48 +00:00
|
|
|
* Thu Apr 20 2023 Tomas Bzatek <tbzatek@redhat.com> - 1.4-2
|
|
|
|
- Backport the NBFT parser from git master
|
|
|
|
|
2023-04-03 13:38:20 +00:00
|
|
|
* Mon Apr 03 2023 Tomas Bzatek <tbzatek@redhat.com> - 1.4-1
|
|
|
|
- Upstream v1.4 release
|
|
|
|
|
2023-02-01 10:33:41 +00:00
|
|
|
* Tue Jan 31 2023 Tomas Bzatek <tbzatek@redhat.com> - 1.3-1
|
|
|
|
- Upstream v1.3 release
|
|
|
|
|
2023-01-19 17:02:09 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-11-01 13:15:29 +00:00
|
|
|
* Tue Nov 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.2-1
|
|
|
|
- Upstream v1.2 release
|
|
|
|
|
2022-08-05 15:05:30 +00:00
|
|
|
* Fri Aug 05 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.1-1
|
|
|
|
- Upstream v1.1 release
|
|
|
|
|
2022-07-21 18:32:46 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1~rc0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-07-15 16:09:39 +00:00
|
|
|
* Fri Jul 15 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.1~rc0-1
|
|
|
|
- Upstream v1.1 Release Candidate 0
|
|
|
|
|
2022-06-13 16:19:53 +00:00
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.0-2
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
2022-04-11 12:06:52 +00:00
|
|
|
* Mon Apr 11 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0-1
|
|
|
|
- Upstream v1.0 release
|
|
|
|
|
2022-04-01 13:30:33 +00:00
|
|
|
* Fri Apr 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc8-1
|
|
|
|
- Upstream v1.0 Release Candidate 8
|
|
|
|
|
2022-03-23 14:53:58 +00:00
|
|
|
* Wed Mar 23 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc7-1
|
|
|
|
- Upstream v1.0 Release Candidate 7
|
|
|
|
- Renamed python3-nvme subpackage to python3-libnvme
|
|
|
|
|
2022-03-14 15:08:48 +00:00
|
|
|
* Mon Mar 14 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc6-1
|
|
|
|
- Upstream v1.0 Release Candidate 6
|
|
|
|
|
2022-03-04 11:25:49 +00:00
|
|
|
* Fri Mar 04 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc5-1
|
|
|
|
- Upstream v1.0 Release Candidate 5
|
|
|
|
|
2022-03-02 16:39:07 +00:00
|
|
|
* Mon Feb 28 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc4-1
|
|
|
|
- Upstream v1.0 Release Candidate 4
|
|
|
|
|
|
|
|
* Fri Feb 11 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc3-1
|
|
|
|
- Upstream v1.0 Release Candidate 3
|
|
|
|
|
|
|
|
* Tue Feb 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc2-1
|
|
|
|
- Upstream v1.0 Release Candidate 2
|
|
|
|
|
|
|
|
* Thu Jan 27 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc1-1
|
|
|
|
- Upstream v1.0 Release Candidate 1
|
|
|
|
|
|
|
|
* Mon Jan 17 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc0-1
|
|
|
|
- Upstream v1.0 Release Candidate 0
|
|
|
|
|
|
|
|
* Wed Oct 20 2021 Tomas Bzatek <tbzatek@redhat.com> - 0.0.1-1.git1fe38d6
|
|
|
|
- Initial packaging
|