# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate attohttpc Name: rust-attohttpc Version: 0.22.0 Release: %autorelease Summary: Small and lightweight HTTP client License: MPL-2.0 URL: https://crates.io/crates/attohttpc Source: %{crates_source} # Manually created patch for downstream crate metadata changes # - temporarily downgrade rusttls to 0.19, webpki and webpki-roots to 0.21 # - drop tls-vendored feature Patch: attohttpc-fix-metadata.diff ExclusiveArch: %{rust_arches} # attohttpc depends on ring, which does not support s390x and ppc64le: # https://bugzilla.redhat.com/show_bug.cgi?id=1869980 ExcludeArch: s390x %{power64} BuildRequires: rust-packaging >= 21 %global _description %{expand: Small and lightweight HTTP client.} %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}+base64-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+base64-devel %{_description} This package contains library source intended for building other packages which use the "base64" feature of the "%{crate}" crate. %files -n %{name}+base64-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+basic-auth-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+basic-auth-devel %{_description} This package contains library source intended for building other packages which use the "basic-auth" feature of the "%{crate}" crate. %files -n %{name}+basic-auth-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+charsets-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+charsets-devel %{_description} This package contains library source intended for building other packages which use the "charsets" feature of the "%{crate}" crate. %files -n %{name}+charsets-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}+encoding_rs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+encoding_rs-devel %{_description} This package contains library source intended for building other packages which use the "encoding_rs" feature of the "%{crate}" crate. %files -n %{name}+encoding_rs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+encoding_rs_io-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+encoding_rs_io-devel %{_description} This package contains library source intended for building other packages which use the "encoding_rs_io" feature of the "%{crate}" crate. %files -n %{name}+encoding_rs_io-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+flate2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+flate2-devel %{_description} This package contains library source intended for building other packages which use the "flate2" feature of the "%{crate}" crate. %files -n %{name}+flate2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+form-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+form-devel %{_description} This package contains library source intended for building other packages which use the "form" feature of the "%{crate}" crate. %files -n %{name}+form-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+json-devel %{_description} This package contains library source intended for building other packages which use the "json" feature of the "%{crate}" crate. %files -n %{name}+json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mime-devel %{_description} This package contains library source intended for building other packages which use the "mime" feature of the "%{crate}" crate. %files -n %{name}+mime-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+multipart-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+multipart-devel %{_description} This package contains library source intended for building other packages which use the "multipart" feature of the "%{crate}" crate. %files -n %{name}+multipart-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+multipart-form-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+multipart-form-devel %{_description} This package contains library source intended for building other packages which use the "multipart-form" feature of the "%{crate}" crate. %files -n %{name}+multipart-form-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+native-tls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+native-tls-devel %{_description} This package contains library source intended for building other packages which use the "native-tls" feature of the "%{crate}" crate. %files -n %{name}+native-tls-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-opt-dep-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustls-opt-dep-devel %{_description} This package contains library source intended for building other packages which use the "rustls-opt-dep" feature of the "%{crate}" crate. %files -n %{name}+rustls-opt-dep-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} This package contains library source intended for building other packages which use the "serde_json" feature of the "%{crate}" crate. %files -n %{name}+serde_json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_urlencoded-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_urlencoded-devel %{_description} This package contains library source intended for building other packages which use the "serde_urlencoded" feature of the "%{crate}" crate. %files -n %{name}+serde_urlencoded-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-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 %package -n %{name}+webpki-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+webpki-devel %{_description} This package contains library source intended for building other packages which use the "webpki" feature of the "%{crate}" crate. %files -n %{name}+webpki-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+webpki-roots-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+webpki-roots-devel %{_description} This package contains library source intended for building other packages which use the "webpki-roots" feature of the "%{crate}" crate. %files -n %{name}+webpki-roots-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 # skip tests requiring network access %cargo_test -- -- --skip test_accept_invalid_certs_ok_when_self_signed --skip test_accept_invalid_certs_ok_when_wrong_host --skip test_accept_invalid_hostnames_error_when_expired --skip test_accept_invalid_hostnames_ok_when_wrong_host --skip test_error_when_self_signed --skip test_error_when_wrong_host %endif %changelog %autochangelog