# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate atspi Name: rust-atspi Version: 0.26.2 Release: %autorelease Summary: Pure-Rust, zbus-based AT-SPI2 protocol implementation License: Apache-2.0 OR MIT URL: https://crates.io/crates/atspi Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * relax half dev-dependency from =2.4 to ^2.4 # * drop unused, benchmark-only criterion dev-dependency Patch: atspi-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Pure-Rust, zbus-based AT-SPI2 protocol implementation.} %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}/LICENSE-APACHE2.txt %license %{crate_instdir}/LICENSE-MIT.txt %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-std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-std-devel %{_description} This package contains library source intended for building other packages which use the "async-std" feature of the "%{crate}" crate. %files -n %{name}+async-std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+atspi-connection-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+atspi-connection-devel %{_description} This package contains library source intended for building other packages which use the "atspi-connection" feature of the "%{crate}" crate. %files -n %{name}+atspi-connection-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+atspi-proxies-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+atspi-proxies-devel %{_description} This package contains library source intended for building other packages which use the "atspi-proxies" feature of the "%{crate}" crate. %files -n %{name}+atspi-proxies-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+connection-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+connection-devel %{_description} This package contains library source intended for building other packages which use the "connection" feature of the "%{crate}" crate. %files -n %{name}+connection-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+connection-async-std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+connection-async-std-devel %{_description} This package contains library source intended for building other packages which use the "connection-async-std" feature of the "%{crate}" crate. %files -n %{name}+connection-async-std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+connection-tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+connection-tokio-devel %{_description} This package contains library source intended for building other packages which use the "connection-tokio" feature of the "%{crate}" crate. %files -n %{name}+connection-tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proxies-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proxies-devel %{_description} This package contains library source intended for building other packages which use the "proxies" feature of the "%{crate}" crate. %files -n %{name}+proxies-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proxies-async-std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proxies-async-std-devel %{_description} This package contains library source intended for building other packages which use the "proxies-async-std" feature of the "%{crate}" crate. %files -n %{name}+proxies-async-std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proxies-tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proxies-tokio-devel %{_description} This package contains library source intended for building other packages which use the "proxies-tokio" feature of the "%{crate}" crate. %files -n %{name}+proxies-tokio-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}+tracing-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tracing-devel %{_description} This package contains library source intended for building other packages which use the "tracing" feature of the "%{crate}" crate. %files -n %{name}+tracing-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zbus-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zbus-devel %{_description} This package contains library source intended for building other packages which use the "zbus" feature of the "%{crate}" crate. %files -n %{name}+zbus-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog