Add xnvme
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 8 Feb 2024 13:16:31 +0000 (13:16 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 8 Feb 2024 13:35:28 +0000 (13:35 +0000)
Copied from:
http://copr-dist-git.fedorainfracloud.org/git/karlowich/xNVMe/xnvme.git

xnvme/.gitignore [new file with mode: 0644]
xnvme/sources [new file with mode: 0644]
xnvme/xnvme.spec [new file with mode: 0644]

diff --git a/xnvme/.gitignore b/xnvme/.gitignore
new file mode 100644 (file)
index 0000000..ccca441
--- /dev/null
@@ -0,0 +1,4 @@
+/xnvme-0.3.0.tar.gz
+/xnvme-0.4.0.tar.gz
+/xnvme-0.7.3.tar.gz
+/xnvme-0.7.4.tar.gz
diff --git a/xnvme/sources b/xnvme/sources
new file mode 100644 (file)
index 0000000..2782e1a
--- /dev/null
@@ -0,0 +1 @@
+19a33f1bf5a5b83a79c6faa4b4685fa6  xnvme-0.7.4.tar.gz
diff --git a/xnvme/xnvme.spec b/xnvme/xnvme.spec
new file mode 100644 (file)
index 0000000..4d3060e
--- /dev/null
@@ -0,0 +1,95 @@
+Name:           xnvme
+Version:        0.7.4
+Release:        1%{?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
+
+BuildRequires:  meson gcc
+BuildRequires:  libaio-devel liburing-devel
+
+%global major_version %(echo %{version} | cut -b 1)
+
+%description
+%{summary}.
+Minimal-overhead libraries and tools for cross-platform storage I/O and
+NVMe-native development. A unified API encapsulating traditional block-I/O via
+psync, libaio, and io_uring as well as user-space NVMe drivers.
+
+%package devel
+Summary:        Development library and header files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+%{summary}.
+
+%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
+Summary:        Command-line tools for storage I/O and NVMe-native development
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description cli
+%{summary}.
+
+%prep
+%autosetup
+
+%build
+%meson -Dforce_completions=true -Dwith-libvfn=disabled -Dwith-isal=disabled -Dwith-spdk=false -Dexamples=false -Dtests=false
+%meson_build
+
+%install
+%meson_install
+
+%files
+%{_libdir}/lib%{name}.so
+%{_libdir}/lib%{name}.so.%{major_version}
+%{_libdir}/lib%{name}.so.%{version}
+
+%files devel
+%{_includedir}/lib%{name}*.h
+%{_libdir}/pkgconfig/%{name}.pc
+
+%files static
+%{_libdir}/lib%{name}.a
+
+%files devel-static
+%{_includedir}/lib%{name}*.h
+%{_libdir}/pkgconfig/%{name}.pc
+
+%files cli
+%{_bindir}/kvs
+%{_bindir}/lblk
+%{_bindir}/xdd
+%{_bindir}/%{name}
+%{_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*
+/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