# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate tonic Name: rust-tonic Version: 0.14.5 Release: %autorelease Summary: GRPC over HTTP/2 implementation License: MIT URL: https://crates.io/crates/tonic Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Remove bencher dependency (benchmark only) Patch: tonic-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %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}+_tls-any-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+_tls-any-devel %{_description} This package contains library source intended for building other packages which use the "_tls-any" feature of the "%{crate}" crate. %files -n %{name}+_tls-any-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}+deflate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deflate-devel %{_description} This package contains library source intended for building other packages which use the "deflate" feature of the "%{crate}" crate. %files -n %{name}+deflate-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}+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-connect-info-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tls-connect-info-devel %{_description} This package contains library source intended for building other packages which use the "tls-connect-info" feature of the "%{crate}" crate. %files -n %{name}+tls-connect-info-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-ring-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tls-ring-devel %{_description} This package contains library source intended for building other packages which use the "tls-ring" feature of the "%{crate}" crate. %files -n %{name}+tls-ring-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 rm -r benches %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * encode_too_big: Fails to allocate memory for i686 %cargo_test -- -- --skip codec::prost::tests::encode_too_big %endif %changelog %autochangelog