# Generated by rust2rpm 21 # * tests can only be run in-tree %bcond_with check %global debug_package %{nil} %global crate awc Name: rust-%{crate} Version: 3.0.0 Release: %autorelease Summary: Async HTTP and WebSocket client library # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/awc Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Async HTTP and WebSocket client library.} %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 %doc %{crate_instdir}/CHANGES.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}+__compress-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+__compress-devel %{_description} This package contains library source intended for building other packages which use the "__compress" feature of the "%{crate}" crate. %files -n %{name}+__compress-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compress-brotli-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compress-brotli-devel %{_description} This package contains library source intended for building other packages which use the "compress-brotli" feature of the "%{crate}" crate. %files -n %{name}+compress-brotli-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compress-gzip-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compress-gzip-devel %{_description} This package contains library source intended for building other packages which use the "compress-gzip" feature of the "%{crate}" crate. %files -n %{name}+compress-gzip-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compress-zstd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compress-zstd-devel %{_description} This package contains library source intended for building other packages which use the "compress-zstd" feature of the "%{crate}" crate. %files -n %{name}+compress-zstd-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cookie-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cookie-devel %{_description} This package contains library source intended for building other packages which use the "cookie" feature of the "%{crate}" crate. %files -n %{name}+cookie-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cookies-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cookies-devel %{_description} This package contains library source intended for building other packages which use the "cookies" feature of the "%{crate}" crate. %files -n %{name}+cookies-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dangerous-h2c-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dangerous-h2c-devel %{_description} This package contains library source intended for building other packages which use the "dangerous-h2c" feature of the "%{crate}" crate. %files -n %{name}+dangerous-h2c-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+openssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+openssl-devel %{_description} This package contains library source intended for building other packages which use the "openssl" feature of the "%{crate}" crate. %files -n %{name}+openssl-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tls-openssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tls-openssl-devel %{_description} This package contains library source intended for building other packages which use the "tls-openssl" feature of the "%{crate}" crate. %files -n %{name}+tls-openssl-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trust-dns-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trust-dns-devel %{_description} This package contains library source intended for building other packages which use the "trust-dns" feature of the "%{crate}" crate. %files -n %{name}+trust-dns-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trust-dns-resolver-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trust-dns-resolver-devel %{_description} This package contains library source intended for building other packages which use the "trust-dns-resolver" feature of the "%{crate}" crate. %files -n %{name}+trust-dns-resolver-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog