Name: libblkio
Release: 1%{?dist}
URL: %{forgeurl}
-Source: %{forgesource}
+Source0: %{forgesource}
License: ASL 2.0 or MIT
+# Bundled missing dependencies.
+#
+# These were created by running "cargo vendor" in the source tree
+# and then making a tarball of just the following directories:
+# vendor/io-uring
+# vendor/memfd
+# vendor/winapi*
+Source1: vendor.tar.gz
+
# Basic build requirements.
BuildRequires: gcc, gcc-c++
BuildRequires: make
BuildRequires: meson
-BuildRequires: rust
+BuildRequires: rust-packaging >= 21
BuildRequires: rustfmt
BuildRequires: cargo
BuildRequires: python3-docutils
-BuildRequires: liburing-devel
BuildRequires: pkgconf
+BuildRequires: crate(autocfg/default)
+BuildRequires: crate(bitflags/default)
+BuildRequires: crate(cc/default)
+BuildRequires: crate(cfg-if/default)
+# BuildRequires: crate(concat-idents...)
+BuildRequires: crate(const-cstr/default)
+# BuildRequires: crate(io-uring...)
+BuildRequires: crate(lazy_static/default)
+BuildRequires: crate(libc/default)
+# BuildRequires: crate(memfd...)
+BuildRequires: crate(memmap/default)
+BuildRequires: crate(memoffset/default)
+BuildRequires: crate(nix/default)
+BuildRequires: crate(proc-macro2/default)
+BuildRequires: crate(syn/default)
+BuildRequires: crate(unicode-xid/default)
+BuildRequires: crate(virtio-bindings/default)
%description
%prep
%forgesetup
+tar zxf %{SOURCE1}
%build