# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate qapi Name: rust-qapi Version: 0.15.0 Release: %autorelease Summary: QEMU QMP and Guest Agent API License: MIT URL: https://crates.io/crates/qapi Source: %{crates_source} # https://github.com/arcnmx/qapi-rs/pull/26 Source1: https://github.com/arcnmx/qapi-rs/raw/COPYING BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: QEMU QMP and Guest Agent API.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/COPYING %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-devel %{_description} This package contains library source intended for building other packages which use the "async" feature of the "%{crate}" crate. %files -n %{name}+async-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-tokio-devel %{_description} This package contains library source intended for building other packages which use the "async-tokio" feature of the "%{crate}" crate. %files -n %{name}+async-tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-tokio-all-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-tokio-all-devel %{_description} This package contains library source intended for building other packages which use the "async-tokio-all" feature of the "%{crate}" crate. %files -n %{name}+async-tokio-all-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-tokio-net-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-tokio-net-devel %{_description} This package contains library source intended for building other packages which use the "async-tokio-net" feature of the "%{crate}" crate. %files -n %{name}+async-tokio-net-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-tokio-spawn-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-tokio-spawn-devel %{_description} This package contains library source intended for building other packages which use the "async-tokio-spawn" feature of the "%{crate}" crate. %files -n %{name}+async-tokio-spawn-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-tower-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-tower-devel %{_description} This package contains library source intended for building other packages which use the "async-tower" feature of the "%{crate}" crate. %files -n %{name}+async-tower-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bytes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bytes-devel %{_description} This package contains library source intended for building other packages which use the "bytes" feature of the "%{crate}" crate. %files -n %{name}+bytes-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-devel %{_description} This package contains library source intended for building other packages which use the "futures" feature of the "%{crate}" crate. %files -n %{name}+futures-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+memchr-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+memchr-devel %{_description} This package contains library source intended for building other packages which use the "memchr" feature of the "%{crate}" crate. %files -n %{name}+memchr-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+qapi-qga-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+qapi-qga-devel %{_description} This package contains library source intended for building other packages which use the "qapi-qga" feature of the "%{crate}" crate. %files -n %{name}+qapi-qga-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+qapi-qmp-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+qapi-qmp-devel %{_description} This package contains library source intended for building other packages which use the "qapi-qmp" feature of the "%{crate}" crate. %files -n %{name}+qapi-qmp-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+qga-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+qga-devel %{_description} This package contains library source intended for building other packages which use the "qga" feature of the "%{crate}" crate. %files -n %{name}+qga-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+qmp-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+qmp-devel %{_description} This package contains library source intended for building other packages which use the "qmp" feature of the "%{crate}" crate. %files -n %{name}+qmp-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-devel %{_description} This package contains library source intended for building other packages which use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-util-devel %{_description} This package contains library source intended for building other packages which use the "tokio-util" feature of the "%{crate}" crate. %files -n %{name}+tokio-util-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tower-service-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tower-service-devel %{_description} This package contains library source intended for building other packages which use the "tower-service" feature of the "%{crate}" crate. %files -n %{name}+tower-service-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 cp -pav %{SOURCE1} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog