%global gitdate 20241028 %global gitversion c3ad0e43e Name: rutabaga-gfx-ffi Version: 0.1.2 Release: 3.%{gitdate}git%{gitversion}%{?dist} Summary: Handling virtio-gpu protocols URL: https://chromium.googlesource.com/crosvm/crosvm # rutabaga_gfx: BSD-3-Clause # crate dependencies: # - BSD-2-Clause # - MIT OR Apache-2.0 # - MIT # - Unlicense OR MIT License: BSD-3-Clause AND BSD-2-Clause AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) #VCS: https://chromium.googlesource.com/crosvm/crosvm # git snapshot. to recreate, run: # ./make-git-snapshot.sh `cat commitid` Source0: https://github.com/jgouly/aaaa/raw/refs/heads/f40/rutabaga-gfx-20241028.tar.xz Source1: make-git-snapshot.sh # drop a Windows-specific dependency Patch0000: drop-winapi.patch # set library SONAME correctly Patch0001: set-soname.patch BuildRequires: cargo-rpm-macros BuildRequires: virglrenderer-devel # current bindgen limitation ExclusiveArch: x86_64 aarch64 %description A library for handling 2D and 3D virtio-gpu hypercalls, along with graphics swapchain allocation and mapping. %package devel Summary: Rutabaga-gfx-ffi development files Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Rutabaga-gfx-ffi development files, used by QEMU to build against. %prep %autosetup -n rutabaga-gfx-%{gitdate} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires cd ffi %cargo_generate_buildrequires cd .. %build pushd ffi %cargo_build -f virgl_renderer %cargo_license_summary %{cargo_license} > ../LICENSE.dependencies popd %install pushd ffi install -D -m 755 target/rpm/librutabaga_gfx_ffi.so %{buildroot}%{_libdir}/librutabaga_gfx_ffi.so.0.1.2 ln -s librutabaga_gfx_ffi.so.0.1.2 %{buildroot}%{_libdir}/librutabaga_gfx_ffi.so.0 ln -s librutabaga_gfx_ffi.so.0.1.2 %{buildroot}%{_libdir}/librutabaga_gfx_ffi.so install -D -m 644 src/include/rutabaga_gfx_ffi.h %{buildroot}%{_includedir}/rutabaga_gfx/rutabaga_gfx_ffi.h popd %files %license LICENSE %license LICENSE.dependencies %{_libdir}/librutabaga_gfx_ffi.so.0{,.*} %files devel %dir %{_includedir}/rutabaga_gfx %{_includedir}/rutabaga_gfx/*.h %{_libdir}/librutabaga_gfx_ffi.so %changelog * Sat Jan 27 2024 Fedora Release Engineering - 0.1.2-3.20230913gitc3ad0e43e - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Oct 01 2023 Fabio Valentini - 0.1.2-2.20230913gitc3ad0e43e - Fix build with rust-packaging v25. * Tue Sep 12 2023 Marc-André Lureau - 0.1.2-1.20230912git5611439c - Initial packaging (rhbz#2238751)