## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate vhost-device-media Name: rust-vhost-device-media Version: 0.1.1 Release: %autorelease Summary: Virtio-media device using the vhost-user protocol License: Apache-2.0 OR BSD-3-Clause URL: https://crates.io/crates/vhost-device-media Source: %{crates_source} Source: vhost-device-media-0.1.1-vendor.tar.xz # * Add SPDX license = MIT to vendored v4l2r (upstream only has license-file) # and refresh cargo vendor checksums. Patch2: v4l2r-fix-metadata.diff ExclusiveArch: x86_64 aarch64 BuildRequires: cargo-rpm-macros >= 26 BuildRequires: clang-devel BuildRequires: llvm-devel BuildRequires: kernel-headers %global _description %{expand: A virtio-media device using the vhost-user protocol.} %description %{_description} %package -n %{crate} Summary: %{summary} # %%cargo_license_summary (default features). Re-check after version bumps. # Apache-2.0 # Apache-2.0 AND BSD-3-Clause # Apache-2.0 OR BSD-3-Clause # Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # BSD-3-Clause OR Apache-2.0 # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR LGPL-2.1-or-later # Unlicense OR MIT License: Apache-2.0 AND (Apache-2.0 AND BSD-3-Clause) AND (Apache-2.0 OR BSD-3-Clause) AND (Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND (BSD-3-Clause OR Apache-2.0) AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-BSD-3-Clause %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/vhost-device-media %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build export LIBCLANG_PATH=%{_libdir} %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Mon Oct 19 2026 Albert Esteve - 0.1.1-2 - rust-vhost-device-media.spec: Add ExclusiveArch * Mon Oct 19 2026 Albert Esteve - 0.1.1-1 - Initial import (fedora-rawhide). ## END: Generated by rpmautospec