Misc fixes
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 19 Feb 2024 10:22:20 +0000 (10:22 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 19 Feb 2024 10:28:11 +0000 (10:28 +0000)
https://bugzilla.redhat.com/show_bug.cgi?id=2263333#c3

Install license text.

Make -static depend on -devel.

Tighten up man page %file patterns.

Exclude i686.

xnvme/xnvme.spec

index 7cf3a90..c0a34a2 100644 (file)
@@ -1,12 +1,16 @@
 Name:           xnvme
 Version:        0.7.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Unified API and tools for traditional and emerging I/O interfaces
 
 License:        BSD-3-Clause
 URL:            https://github.com/OpenMPDK/xNVMe
 Source:         %{url}/releases/download/v%{version}/xnvme-%{version}.tar.gz
 
+# The package makes 64 bit assumptions so exclude 32 bit i686.
+# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
+ExcludeArch:    %{ix86}
+
 BuildRequires:  meson
 BuildRequires:  gcc
 BuildRequires:  libaio-devel
@@ -27,6 +31,7 @@ This contains the headers and libraries for developing against %{name}.
 
 %package static
 Summary:        Static library for %{name}
+Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
 
 %description static
 %{summary}.
@@ -49,6 +54,7 @@ Requires:       %{name}%{?_isa} = %{version}-%{release}
 %meson_install
 
 %files
+%license LICENSE
 %{_libdir}/lib%{name}.so.0*
 
 %files devel
@@ -67,13 +73,18 @@ Requires:       %{name}%{?_isa} = %{version}-%{release}
 %{_bindir}/%{name}-driver
 %{_bindir}/%{name}_file
 %{_bindir}/zoned
-%{_mandir}/man1/kvs*
-%{_mandir}/man1/lblk*
-%{_mandir}/man1/xdd*
-%{_mandir}/man1/%{name}-*
-%{_mandir}/man1/%{name}.1.gz
-%{_mandir}/man1/%{name}_file*
-%{_mandir}/man1/zoned*
+%{_mandir}/man1/kvs.1*
+%{_mandir}/man1/kvs-*.1*
+%{_mandir}/man1/lblk.1*
+%{_mandir}/man1/lblk-*.1*
+%{_mandir}/man1/xdd.1*
+%{_mandir}/man1/xdd-*.1*
+%{_mandir}/man1/%{name}.1*
+%{_mandir}/man1/%{name}-*.1*
+%{_mandir}/man1/%{name}_file.1*
+%{_mandir}/man1/%{name}_file-*.1*
+%{_mandir}/man1/zoned.1*
+%{_mandir}/man1/zoned-*.1*
 %{_datadir}/bash-completion/completions/kvs-completions
 %{_datadir}/bash-completion/completions/lblk-completions
 %{_datadir}/bash-completion/completions/xdd-completions
@@ -82,5 +93,5 @@ Requires:       %{name}%{?_isa} = %{version}-%{release}
 %{_datadir}/bash-completion/completions/zoned-completions
 
 %changelog
-* Thu Feb 08 2024 Richard W.M. Jones <rjones@redhat.com> - 0.7.4-1
+* Mon Feb 19 2024 Richard W.M. Jones <rjones@redhat.com> - 0.7.4-2
 - Initial version