# These were created by running "cargo vendor" in the source tree
# and then making a tarball of just the following directories:
# vendor/memfd
-# vendor/pci-driver
# vendor/winapi*
Source1: vendor.tar.gz
# Bundled dependencies
Provides: bundled(crate(memfd/default)) = 0.4.1
-Provides: bundled(crate(pci-driver/default)) = 0.1.2
# Basic build requirements.
BuildRequires: gcc, gcc-c++
BuildRequires: crate(memoffset/default)
BuildRequires: crate(nix/default)
BuildRequires: crate(num-traits/default)
-# BuildRequires: crate(pci-driver/default)
+BuildRequires: crate(pci-driver/default)
BuildRequires: crate(proc-macro2/default)
BuildRequires: crate(quote/default)
BuildRequires: crate(syn/default)
cat >> Cargo.toml <<EOF
[patch.crates-io]
memfd = { path = 'vendor/memfd' }
-pci-driver = { path = 'vendor/pci-driver' }
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' }