# Generated by rust2rpm 26 %bcond_without check %global crate busd Name: rust-busd Version: 0.3.1 Release: %autorelease Summary: D-Bus bus (broker) implementation License: MIT URL: https://crates.io/crates/busd Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unstable-only tracing feature from tokio Patch: busd-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A D-Bus bus (broker) implementation.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # Unlicense OR MIT License: ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND (Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE-MIT %license LICENSE.dependencies %doc CONTRIBUTING.md %doc README.md %{_bindir}/busd %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}/LICENSE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CONTRIBUTING.md %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}+console-subscriber-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+console-subscriber-devel %{_description} This package contains library source intended for building other packages which use the "console-subscriber" feature of the "%{crate}" crate. %files -n %{name}+console-subscriber-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tracing-subscriber-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tracing-subscriber-devel %{_description} This package contains library source intended for building other packages which use the "tracing-subscriber" feature of the "%{crate}" crate. %files -n %{name}+tracing-subscriber-devel %ghost %{crate_instdir}/Cargo.toml %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