URL: https://github.com/OpenMPDK/xNVMe
Source: %{url}/releases/download/v%{version}/xnvme-%{version}.tar.gz
-BuildRequires: meson gcc
-BuildRequires: libaio-devel liburing-devel
-
-%global major_version %(echo %{version} | cut -b 1)
+BuildRequires: meson
+BuildRequires: gcc
+BuildRequires: libaio-devel
+BuildRequires: liburing-devel
%description
%{summary}.
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
-%{summary}.
+This contains the headers and libraries for developing against %{name}.
%package static
Summary: Static library for %{name}
%description static
%{summary}.
-%package devel-static
-Summary: Static development library and header files for %{name}
-Requires: %{name}-static%{?_isa} = %{version}-%{release}
-
-%description devel-static
-%{summary}.
-
-
-%package cli
+%package tools
Summary: Command-line tools for storage I/O and NVMe-native development
Requires: %{name}%{?_isa} = %{version}-%{release}
-%description cli
+%description tools
%{summary}.
%prep
%meson_install
%files
-%{_libdir}/lib%{name}.so
-%{_libdir}/lib%{name}.so.%{major_version}
-%{_libdir}/lib%{name}.so.%{version}
+%{_libdir}/lib%{name}.so.0*
%files devel
-%{_includedir}/lib%{name}*.h
+%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
+%{_includedir}/lib%{name}*.h
%files static
%{_libdir}/lib%{name}.a
-%files devel-static
-%{_includedir}/lib%{name}*.h
-%{_libdir}/pkgconfig/%{name}.pc
-
-%files cli
+%files tools
%{_bindir}/kvs
%{_bindir}/lblk
%{_bindir}/xdd
%{_mandir}/man1/%{name}.1.gz
%{_mandir}/man1/%{name}_file*
%{_mandir}/man1/zoned*
-/usr/share/bash-completion/completions/kvs-completions
-/usr/share/bash-completion/completions/lblk-completions
-/usr/share/bash-completion/completions/xdd-completions
-/usr/share/bash-completion/completions/%{name}-completions
-/usr/share/bash-completion/completions/%{name}_file-completions
-/usr/share/bash-completion/completions/zoned-completions
+%{_datadir}/bash-completion/completions/kvs-completions
+%{_datadir}/bash-completion/completions/lblk-completions
+%{_datadir}/bash-completion/completions/xdd-completions
+%{_datadir}/bash-completion/completions/%{name}-completions
+%{_datadir}/bash-completion/completions/%{name}_file-completions
+%{_datadir}/bash-completion/completions/zoned-completions
+
+%changelog
+* Thu Feb 08 2024 Richard W.M. Jones <rjones@redhat.com> - 0.7.4-1
+- Initial version