# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate tonic Name: rust-tonic Version: 0.12.2 Release: %autorelease Summary: GRPC over HTTP/2 implementation License: MIT URL: https://crates.io/crates/tonic Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: tomcli %global _description %{expand: A gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility.} %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 %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}+channel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+channel-devel %{_description} This package contains library source intended for building other packages which use the "channel" feature of the "%{crate}" crate. %files -n %{name}+channel-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+codegen-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+codegen-devel %{_description} This package contains library source intended for building other packages which use the "codegen" feature of the "%{crate}" crate. %files -n %{name}+codegen-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gzip-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gzip-devel %{_description} This package contains library source intended for building other packages which use the "gzip" feature of the "%{crate}" crate. %files -n %{name}+gzip-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+prost-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+prost-devel %{_description} This package contains library source intended for building other packages which use the "prost" feature of the "%{crate}" crate. %files -n %{name}+prost-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+router-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+router-devel %{_description} This package contains library source intended for building other packages which use the "router" feature of the "%{crate}" crate. %files -n %{name}+router-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+server-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+server-devel %{_description} This package contains library source intended for building other packages which use the "server" feature of the "%{crate}" crate. %files -n %{name}+server-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tls-devel %{_description} This package contains library source intended for building other packages which use the "tls" feature of the "%{crate}" crate. %files -n %{name}+tls-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tls-native-roots-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tls-native-roots-devel %{_description} This package contains library source intended for building other packages which use the "tls-native-roots" feature of the "%{crate}" crate. %files -n %{name}+tls-native-roots-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tls-roots-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tls-roots-devel %{_description} This package contains library source intended for building other packages which use the "tls-roots" feature of the "%{crate}" crate. %files -n %{name}+tls-roots-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tls-webpki-roots-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tls-webpki-roots-devel %{_description} This package contains library source intended for building other packages which use the "tls-webpki-roots" feature of the "%{crate}" crate. %files -n %{name}+tls-webpki-roots-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+transport-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+transport-devel %{_description} This package contains library source intended for building other packages which use the "transport" feature of the "%{crate}" crate. %files -n %{name}+transport-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zstd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zstd-devel %{_description} This package contains library source intended for building other packages which use the "zstd" feature of the "%{crate}" crate. %files -n %{name}+zstd-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Remove benches tomcli set Cargo.toml del dev-dependencies.bencher tomcli set Cargo.toml del bench rm -r benches benches-disabled %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %install %cargo_install -a %if %{with check} %check %cargo_test -a %endif %changelog %autochangelog