Blame SPECS/libnvme.spec

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