|
Tomas Bzatek |
7b2638 |
# RHEL 8 compatibility
|
|
Tomas Bzatek |
7b2638 |
%{!?version_no_tilde: %define version_no_tilde %{shrink:%(echo '%{version}' | tr '~' '-')}}
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
Name: libnvme
|
|
Tomas Bzatek |
7b2638 |
Summary: Linux-native nvme device management library
|
|
Tomas Bzatek |
fb7066 |
Version: 1.4
|
|
Tomas Bzatek |
351c1b |
Release: 1%{?dist}
|
|
Tomas Bzatek |
7b2638 |
License: LGPLv2+
|
|
Tomas Bzatek |
7b2638 |
URL: https://github.com/linux-nvme/libnvme
|
|
Tomas Bzatek |
7b2638 |
Source0: %{url}/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
BuildRequires: gcc gcc-c++
|
|
Tomas Bzatek |
7b2638 |
BuildRequires: swig
|
|
Tomas Bzatek |
7b2638 |
BuildRequires: python3-devel
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
351c1b |
BuildRequires: meson >= 0.50
|
|
Tomas Bzatek |
7b2638 |
BuildRequires: json-c-devel >= 0.13
|
|
Tomas Bzatek |
7b2638 |
BuildRequires: openssl-devel
|
|
Tomas Bzatek |
351c1b |
BuildRequires: dbus-devel
|
|
Tomas Bzatek |
fb7066 |
BuildRequires: keyutils-libs-devel
|
|
Tomas Bzatek |
70fca4 |
%if (0%{?rhel} == 0)
|
|
Tomas Bzatek |
c481bd |
BuildRequires: kernel-headers >= 5.15
|
|
Tomas Bzatek |
70fca4 |
%endif
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%description
|
|
Tomas Bzatek |
7b2638 |
Provides type definitions for NVMe specification structures,
|
|
Tomas Bzatek |
7b2638 |
enumerations, and bit fields, helper functions to construct,
|
|
Tomas Bzatek |
7b2638 |
dispatch, and decode commands and payloads, and utilities to connect,
|
|
Tomas Bzatek |
7b2638 |
scan, and manage nvme devices on a Linux system.
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%package devel
|
|
Tomas Bzatek |
7b2638 |
Summary: Development files for %{name}
|
|
Tomas Bzatek |
7b2638 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%description devel
|
|
Tomas Bzatek |
7b2638 |
This package provides header files to include and libraries to link with
|
|
Tomas Bzatek |
7b2638 |
for Linux-native nvme device management.
|
|
Tomas Bzatek |
7b2638 |
%package doc
|
|
Tomas Bzatek |
7b2638 |
Summary: Reference manual for libnvme
|
|
Tomas Bzatek |
7b2638 |
BuildArch: noarch
|
|
Tomas Bzatek |
7b2638 |
BuildRequires: perl-interpreter
|
|
Tomas Bzatek |
7b2638 |
BuildRequires: python3-sphinx
|
|
Tomas Bzatek |
7b2638 |
BuildRequires: python3-sphinx_rtd_theme
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%description doc
|
|
Tomas Bzatek |
7b2638 |
This package contains the reference manual for %{name}.
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
4a3e65 |
%package -n python3-libnvme
|
|
Tomas Bzatek |
7b2638 |
Summary: Python3 bindings for libnvme
|
|
Tomas Bzatek |
7b2638 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Tomas Bzatek |
4a3e65 |
Provides: python3-nvme = %{version}-%{release}
|
|
Tomas Bzatek |
4a3e65 |
Obsoletes: python3-nvme < 1.0~rc7
|
|
Tomas Bzatek |
4a3e65 |
%{?python_provide:%python_provide python3-libnvme}
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
4a3e65 |
%description -n python3-libnvme
|
|
Tomas Bzatek |
7b2638 |
This package contains Python bindings for libnvme.
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%prep
|
|
Tomas Bzatek |
7b2638 |
%autosetup -p1 -n %{name}-%{version_no_tilde}
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%build
|
|
Tomas Bzatek |
fb7066 |
%meson -Dpython=enabled -Ddocs=all -Ddocs-build=true -Dhtmldir=%{_pkgdocdir}
|
|
Tomas Bzatek |
7b2638 |
%meson_build
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%install
|
|
Tomas Bzatek |
7b2638 |
%meson_install
|
|
Tomas Bzatek |
7b2638 |
%{__install} -pm 644 README.md %{buildroot}%{_pkgdocdir}
|
|
Tomas Bzatek |
7b2638 |
%{__install} -pm 644 doc/config-schema.json %{buildroot}%{_pkgdocdir}
|
|
Tomas Bzatek |
7b2638 |
mv %{buildroot}%{_pkgdocdir}/nvme/html %{buildroot}%{_pkgdocdir}/html
|
|
Tomas Bzatek |
7b2638 |
rm -rf %{buildroot}%{_pkgdocdir}/nvme
|
|
Tomas Bzatek |
b594f7 |
mv %{buildroot}/usr/*.rst %{buildroot}%{_pkgdocdir}/
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%ldconfig_scriptlets
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%files
|
|
Tomas Bzatek |
7b2638 |
%license COPYING ccan/licenses/*
|
|
Tomas Bzatek |
7b2638 |
%{_libdir}/libnvme.so.1
|
|
Tomas Bzatek |
fb7066 |
%{_libdir}/libnvme.so.1.4.0
|
|
Tomas Bzatek |
b594f7 |
%{_libdir}/libnvme-mi.so.1
|
|
Tomas Bzatek |
fb7066 |
%{_libdir}/libnvme-mi.so.1.4.0
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%files devel
|
|
Tomas Bzatek |
7b2638 |
%{_libdir}/libnvme.so
|
|
Tomas Bzatek |
b594f7 |
%{_libdir}/libnvme-mi.so
|
|
Tomas Bzatek |
7b2638 |
%{_includedir}/libnvme.h
|
|
Tomas Bzatek |
b594f7 |
%{_includedir}/libnvme-mi.h
|
|
Tomas Bzatek |
7b2638 |
%dir %{_includedir}/nvme
|
|
Tomas Bzatek |
7b2638 |
%{_includedir}/nvme/*.h
|
|
Tomas Bzatek |
7b2638 |
%{_libdir}/pkgconfig/*.pc
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%files doc
|
|
Tomas Bzatek |
7b2638 |
%doc %{_pkgdocdir}
|
|
Tomas Bzatek |
7b2638 |
%{_mandir}/man2/*.2*
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
4a3e65 |
%files -n python3-libnvme
|
|
Tomas Bzatek |
7b2638 |
%dir %{python3_sitearch}/libnvme
|
|
Tomas Bzatek |
7b2638 |
%{python3_sitearch}/libnvme/*
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
%changelog
|
|
Tomas Bzatek |
fb7066 |
* Mon Apr 03 2023 Tomas Bzatek <tbzatek@redhat.com> - 1.4-1
|
|
Tomas Bzatek |
fb7066 |
- Upstream v1.4 release
|
|
Tomas Bzatek |
fb7066 |
|
|
Tomas Bzatek |
351c1b |
* Tue Jan 31 2023 Tomas Bzatek <tbzatek@redhat.com> - 1.3-1
|
|
Tomas Bzatek |
351c1b |
- Upstream v1.3 release
|
|
Tomas Bzatek |
351c1b |
|
|
Fedora Release Engineering |
7d15b2 |
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
|
|
Fedora Release Engineering |
7d15b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
Fedora Release Engineering |
7d15b2 |
|
|
Tomas Bzatek |
d7b69a |
* Tue Nov 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.2-1
|
|
Tomas Bzatek |
d7b69a |
- Upstream v1.2 release
|
|
Tomas Bzatek |
d7b69a |
|
|
Tomas Bzatek |
4e8691 |
* Fri Aug 05 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.1-1
|
|
Tomas Bzatek |
4e8691 |
- Upstream v1.1 release
|
|
Tomas Bzatek |
4e8691 |
|
|
Fedora Release Engineering |
216aa6 |
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1~rc0-2
|
|
Fedora Release Engineering |
216aa6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
Fedora Release Engineering |
216aa6 |
|
|
Tomas Bzatek |
b594f7 |
* Fri Jul 15 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.1~rc0-1
|
|
Tomas Bzatek |
b594f7 |
- Upstream v1.1 Release Candidate 0
|
|
Tomas Bzatek |
b594f7 |
|
|
Python Maint |
377f07 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.0-2
|
|
Python Maint |
377f07 |
- Rebuilt for Python 3.11
|
|
Python Maint |
377f07 |
|
|
Tomas Bzatek |
450dbc |
* Mon Apr 11 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0-1
|
|
Tomas Bzatek |
450dbc |
- Upstream v1.0 release
|
|
Tomas Bzatek |
450dbc |
|
|
Tomas Bzatek |
f82fab |
* Fri Apr 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc8-1
|
|
Tomas Bzatek |
f82fab |
- Upstream v1.0 Release Candidate 8
|
|
Tomas Bzatek |
f82fab |
|
|
Tomas Bzatek |
4a3e65 |
* Wed Mar 23 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc7-1
|
|
Tomas Bzatek |
4a3e65 |
- Upstream v1.0 Release Candidate 7
|
|
Tomas Bzatek |
4a3e65 |
- Renamed python3-nvme subpackage to python3-libnvme
|
|
Tomas Bzatek |
4a3e65 |
|
|
Tomas Bzatek |
9a72b8 |
* Mon Mar 14 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc6-1
|
|
Tomas Bzatek |
9a72b8 |
- Upstream v1.0 Release Candidate 6
|
|
Tomas Bzatek |
9a72b8 |
|
|
Tomas Bzatek |
ecf623 |
* Fri Mar 04 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc5-1
|
|
Tomas Bzatek |
ecf623 |
- Upstream v1.0 Release Candidate 5
|
|
Tomas Bzatek |
ecf623 |
|
|
Tomas Bzatek |
7b2638 |
* Mon Feb 28 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc4-1
|
|
Tomas Bzatek |
7b2638 |
- Upstream v1.0 Release Candidate 4
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
* Fri Feb 11 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc3-1
|
|
Tomas Bzatek |
7b2638 |
- Upstream v1.0 Release Candidate 3
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
* Tue Feb 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc2-1
|
|
Tomas Bzatek |
7b2638 |
- Upstream v1.0 Release Candidate 2
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
* Thu Jan 27 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc1-1
|
|
Tomas Bzatek |
7b2638 |
- Upstream v1.0 Release Candidate 1
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
* Mon Jan 17 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc0-1
|
|
Tomas Bzatek |
7b2638 |
- Upstream v1.0 Release Candidate 0
|
|
Tomas Bzatek |
7b2638 |
|
|
Tomas Bzatek |
7b2638 |
* Wed Oct 20 2021 Tomas Bzatek <tbzatek@redhat.com> - 0.0.1-1.git1fe38d6
|
|
Tomas Bzatek |
7b2638 |
- Initial packaging
|