Blame SPECS/libnvme.spec

f806c6
# RHEL 8 compatibility
f806c6
%{!?version_no_tilde: %define version_no_tilde %{shrink:%(echo '%{version}' | tr '~' '-')}}
f806c6
f806c6
Name:    libnvme
f806c6
Summary: Linux-native nvme device management library
894e80
Version: 1.2
894e80
Release: 2%{?dist}
f806c6
License: LGPLv2+
f806c6
URL:     https://github.com/linux-nvme/libnvme
f806c6
Source0: %{url}/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
f806c6
894e80
Patch0: 0001-fabrics-Fix-bad-UUID-size-introduced-in-recent-UUID-.patch
894e80
f806c6
BuildRequires: gcc gcc-c++
f806c6
BuildRequires: swig
f806c6
BuildRequires: python3-devel
894e80
BuildRequires: meson >= 0.48.0
f806c6
BuildRequires: json-c-devel >= 0.13
f806c6
BuildRequires: openssl-devel
f806c6
f806c6
%description
f806c6
Provides type definitions for NVMe specification structures,
f806c6
enumerations, and bit fields, helper functions to construct,
f806c6
dispatch, and decode commands and payloads, and utilities to connect,
f806c6
scan, and manage nvme devices on a Linux system.
f806c6
f806c6
%package devel
f806c6
Summary: Development files for %{name}
f806c6
Requires: %{name}%{?_isa} = %{version}-%{release}
f806c6
f806c6
%description devel
f806c6
This package provides header files to include and libraries to link with
f806c6
for Linux-native nvme device management.
f806c6
%package doc
f806c6
Summary: Reference manual for libnvme
f806c6
BuildArch: noarch
f806c6
BuildRequires: perl-interpreter
f806c6
BuildRequires: python3-sphinx
f806c6
BuildRequires: python3-sphinx_rtd_theme
f806c6
f806c6
%description doc
f806c6
This package contains the reference manual for %{name}.
f806c6
f806c6
%package -n python3-libnvme
f806c6
Summary:  Python3 bindings for libnvme
f806c6
Requires: %{name}%{?_isa} = %{version}-%{release}
f806c6
Provides:  python3-nvme = %{version}-%{release}
f806c6
Obsoletes: python3-nvme < 1.0~rc7
f806c6
%{?python_provide:%python_provide python3-libnvme}
f806c6
f806c6
%description -n python3-libnvme
f806c6
This package contains Python bindings for libnvme.
f806c6
f806c6
%prep
f806c6
%autosetup -p1 -n %{name}-%{version_no_tilde}
f806c6
f806c6
%build
f806c6
%meson -Dpython=true -Ddocs=all -Ddocs-build=true -Dhtmldir=%{_pkgdocdir}
f806c6
%meson_build
f806c6
f806c6
%install
f806c6
%meson_install
f806c6
%{__install} -pm 644 README.md %{buildroot}%{_pkgdocdir}
f806c6
%{__install} -pm 644 doc/config-schema.json %{buildroot}%{_pkgdocdir}
f806c6
mv %{buildroot}%{_pkgdocdir}/nvme/html %{buildroot}%{_pkgdocdir}/html
f806c6
rm -rf %{buildroot}%{_pkgdocdir}/nvme
894e80
mv %{buildroot}/usr/*.rst %{buildroot}%{_pkgdocdir}/
f806c6
f806c6
%ldconfig_scriptlets
f806c6
f806c6
%files
f806c6
%license COPYING ccan/licenses/*
f806c6
%{_libdir}/libnvme.so.1
894e80
%{_libdir}/libnvme.so.1.2.0
894e80
%{_libdir}/libnvme-mi.so.1
894e80
%{_libdir}/libnvme-mi.so.1.2.0
f806c6
f806c6
%files devel
f806c6
%{_libdir}/libnvme.so
894e80
%{_libdir}/libnvme-mi.so
f806c6
%{_includedir}/libnvme.h
894e80
%{_includedir}/libnvme-mi.h
f806c6
%dir %{_includedir}/nvme
f806c6
%{_includedir}/nvme/*.h
f806c6
%{_libdir}/pkgconfig/*.pc
f806c6
f806c6
%files doc
f806c6
%doc %{_pkgdocdir}
f806c6
%{_mandir}/man2/*.2*
f806c6
f806c6
%files -n python3-libnvme
f806c6
%dir %{python3_sitearch}/libnvme
f806c6
%{python3_sitearch}/libnvme/*
f806c6
f806c6
%changelog
894e80
* Thu Jan 12 2023 John Meneghini <jmeneghi@redhat.com> - 1.2-2
894e80
- Fix BZ2158264
894e80
894e80
* Fri Nov 04 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.2-1
894e80
- Update to upstream version v1.2
894e80
894e80
* Mon Sep 19 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.1-1
894e80
- Update to upstream version v1.1
894e80
f806c6
* Fri Jun 24 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.0-5
f806c6
- Rebuild for RHEL9.1
f806c6
f806c6
* Thu Jun 09 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.0-4
f806c6
- Add gating tests
f806c6
f806c6
* Wed Jun 01 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.0-3
f806c6
- Rebuild for RHEL 9.1
f806c6
f806c6
* Wed Apr 27 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.0-2
f806c6
-  Porting to RHEL 9
f806c6
f806c6
* Mon Apr 11 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0-1
f806c6
- Upstream v1.0 release
f806c6
f806c6
* Fri Apr 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc8-1
f806c6
- Upstream v1.0 Release Candidate 8
f806c6
f806c6
* Wed Mar 23 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc7-1
f806c6
- Upstream v1.0 Release Candidate 7
f806c6
- Renamed python3-nvme subpackage to python3-libnvme
f806c6
f806c6
* Mon Mar 14 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc6-1
f806c6
- Upstream v1.0 Release Candidate 6
f806c6
f806c6
* Fri Mar 04 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc5-1
f806c6
- Upstream v1.0 Release Candidate 5
f806c6
f806c6
* Mon Feb 28 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc4-1
f806c6
- Upstream v1.0 Release Candidate 4
f806c6
f806c6
* Fri Feb 11 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc3-1
f806c6
- Upstream v1.0 Release Candidate 3
f806c6
f806c6
* Tue Feb 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc2-1
f806c6
- Upstream v1.0 Release Candidate 2
f806c6
f806c6
* Thu Jan 27 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc1-1
f806c6
- Upstream v1.0 Release Candidate 1
f806c6
f806c6
* Mon Jan 17 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc0-1
f806c6
- Upstream v1.0 Release Candidate 0
f806c6
f806c6
* Wed Oct 20 2021 Tomas Bzatek <tbzatek@redhat.com> - 0.0.1-1.git1fe38d6
f806c6
- Initial packaging