+Version: 1.1.0
%global forgeurl https://gitlab.com/libblkio/libblkio
-%global commit c8f5ed9a1460d90a522bda55da09f013fa7da61c
-# Upstream has not tagged any versions so far.
-Version: 0.1
+%global tag v%{version}
%forgemeta
Summary: Block device I/O library
# vendor/concat-idents
# vendor/io-uring
# vendor/memfd
+# vendor/num-traits
+# vendor/pci-driver
# vendor/winapi*
Source1: vendor.tar.gz
+# Bundled dependencies
+Provides: bundled(rust-concat-idents)
+Provides: bundled(rust-io-uring)
+Provides: bundled(rust-memfd)
+Provides: bundled(rust-num-traits)
+Provides: bundled(rust-pci-driver)
+
# Basic build requirements.
BuildRequires: gcc, gcc-c++
BuildRequires: make
BuildRequires: crate(memmap/default)
BuildRequires: crate(memoffset/default)
BuildRequires: crate(nix/default)
+# BuildRequires: crate(num-traits/default)
+# BuildRequires: crate(pci-driver/default)
BuildRequires: crate(proc-macro2/default)
+BuildRequires: crate(quote/default)
BuildRequires: crate(syn/default)
BuildRequires: crate(unicode-xid/default)
BuildRequires: crate(virtio-bindings/default)
concat-idents = { path = 'vendor/concat-idents' }
io-uring = { path = 'vendor/io-uring' }
memfd = { path = 'vendor/memfd' }
+num-traits = { path = 'vendor/num-traits' }
+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' }
%install
%{meson_install}
-pushd %{buildroot}%{_libdir}
-ln -s libblkio.so libblkio.so.0
-ln -s libblkio.so.0 libblkio.so.0.0
-popd
-
%files
%license LICENSE-APACHE LICENSE-MIT LICENSE.crosvm
%doc README.rst
-%{_libdir}/libblkio.so.0*
+%{_libdir}/libblkio.so.1*
%files devel
%changelog
-* Tue Sep 06 2022 Richard W.M. Jones <rjones@redhat.com> - 0.1-1
+* Wed Oct 26 2022 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-1
- Initial package