# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate ureq Name: rust-ureq Version: 2.9.1 Release: %autorelease Summary: Simple, safe HTTP client # src/chunked is forked from chunked_transfer back when it was Apache-2.0, # see https://github.com/algesten/ureq/pull/727 License: (MIT OR Apache-2.0) AND Apache-2.0 URL: https://crates.io/crates/ureq Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * exclude shell scripts and other unnecessary files # https://github.com/algesten/ureq/pull/728 Patch: ureq-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Simple, safe 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-APACHE %license %{crate_instdir}/LICENSE-MIT %license %{crate_instdir}/src/chunked/LICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/FUTURE.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/RELEASE.txt %{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}+brotli-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+brotli-devel %{_description} This package contains library source intended for building other packages which use the "brotli" feature of the "%{crate}" crate. %files -n %{name}+brotli-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+charset-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+charset-devel %{_description} This package contains library source intended for building other packages which use the "charset" feature of the "%{crate}" crate. %files -n %{name}+charset-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}+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}+http-crate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+http-crate-devel %{_description} This package contains library source intended for building other packages which use the "http-crate" feature of the "%{crate}" crate. %files -n %{name}+http-crate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+http-interop-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+http-interop-devel %{_description} This package contains library source intended for building other packages which use the "http-interop" feature of the "%{crate}" crate. %files -n %{name}+http-interop-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}+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}+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}+proxy-from-env-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proxy-from-env-devel %{_description} This package contains library source intended for building other packages which use the "proxy-from-env" feature of the "%{crate}" crate. %files -n %{name}+proxy-from-env-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+socks-proxy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+socks-proxy-devel %{_description} This package contains library source intended for building other packages which use the "socks-proxy" feature of the "%{crate}" crate. %files -n %{name}+socks-proxy-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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * These tests require network access %cargo_test -- -- --exact --skip test::range::read_range_rustls --skip tests::connect_http_google --skip tests::connect_https_google_rustls %endif %changelog %autochangelog