# Generated by rust2rpm 27 %bcond check 1 %global crate qemu-rdp Name: rust-qemu-rdp Version: 0.1.1 Release: %autorelease Summary: Org.qemu.Display1 RDP server License: MIT URL: https://crates.io/crates/qemu-rdp Source: %{crates_source} # Manually created patch for downstream crate metadata changes Patch: qemu-rdp-fix-metadata.diff # * Drop rustc_tools_util, following upstream Patch2: https://gitlab.com/marcandre.lureau/qemu-display/-/commit/b81e4478eab3ff943899140892a8ecd9fe380e4e.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Org.qemu.Display1 RDP server.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-MIT %license LICENSE.dependencies %doc README.md %{_bindir}/qemu-rdp %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog