# Generated by rust2rpm 25 # * missing dev-dependency: rcgen ^0.10 %bcond_with check %global debug_package %{nil} %global crate quinn-proto Name: rust-quinn-proto Version: 0.10.6 Release: %autorelease Summary: State machine for the QUIC transport protocol License: MIT OR Apache-2.0 URL: https://crates.io/crates/quinn-proto Source: %{crates_source} Source: https://github.com/quinn-rs/quinn/raw/0.10.0/LICENSE-APACHE Source: https://github.com/quinn-rs/quinn/raw/0.10.0/LICENSE-MIT # Manually created patch for downstream crate metadata changes # * bump ring dependency from 0.16 to 0.17 Patch: quinn-proto-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: State machine for the QUIC transport protocol.} %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-APACHE %license %{crate_instdir}/LICENSE-MIT %{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}+arbitrary-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+arbitrary-devel %{_description} This package contains library source intended for building other packages which use the "arbitrary" feature of the "%{crate}" crate. %files -n %{name}+arbitrary-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-devel %{_description} This package contains library source intended for building other packages which use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+native-certs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+native-certs-devel %{_description} This package contains library source intended for building other packages which use the "native-certs" feature of the "%{crate}" crate. %files -n %{name}+native-certs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ring-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ring-devel %{_description} This package contains library source intended for building other packages which use the "ring" feature of the "%{crate}" crate. %files -n %{name}+ring-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustls-devel %{_description} This package contains library source intended for building other packages which use the "rustls" feature of the "%{crate}" crate. %files -n %{name}+rustls-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustls-native-certs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustls-native-certs-devel %{_description} This package contains library source intended for building other packages which use the "rustls-native-certs" feature of the "%{crate}" crate. %files -n %{name}+rustls-native-certs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tls-rustls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tls-rustls-devel %{_description} This package contains library source intended for building other packages which use the "tls-rustls" feature of the "%{crate}" crate. %files -n %{name}+tls-rustls-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp -pav %{SOURCE1} %{SOURCE2} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog