#
# These were created by running "cargo vendor" in the source tree
# and then making a tarball of just the following directories:
+# vendor/concat-idents
# vendor/io-uring
# vendor/memfd
# vendor/winapi*
%forgesetup
tar zxf %{SOURCE1}
+cat >> Cargo.toml <<EOF
+[patch.crates-io]
+concat-idents = { path = 'vendor/concat-idents' }
+io-uring = { path = 'vendor/io-uring' }
+memfd = { path = 'vendor/memfd' }
+winapi = { path = 'vendor/winapi' }
+winapi-i686-pc-windows-gnu = { path = 'vendor/winapi-i686-pc-windows-gnu' }
+winapi-x86_64-pc-windows-gnu = { path = 'vendor/winapi-x86_64-pc-windows-gnu' }
+EOF
+%cargo_prep
+sed -e 's/--locked/--offline/' -i src/cargo-build.sh
%build
%{meson}