## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate ureq Name: rust-ureq Version: 2.12.1 Release: %autorelease Summary: Simple, safe HTTP client License: MIT OR Apache-2.0 URL: https://crates.io/crates/ureq Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * temporarily drop brotli feature # until brotli 5+ / brotli-decompressor 4.x is packaged # * bump cookie_store dependency from 0.21 to 0.22: # https://github.com/algesten/ureq/commit/a24929b 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-APACHE %license %{crate_instdir}/src/chunked/LICENSE-MIT %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}+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 # * skip tests that require internet access %{cargo_test -- -- %{shrink: --skip error::tests::status_code_error_redirect --skip test::range::read_range_rustls --skip tests::connect_http_google --skip tests::connect_https_google_rustls --skip src/agent.rs --skip src/error.rs --skip src/lib.rs --skip src/request.rs --skip src/response.rs --skip ipv6_addr_in_dns_name }} %endif %changelog ## START: Generated by rpmautospec * Sat Jan 17 2026 Fedora Release Engineering - 2.12.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Tue Dec 30 2025 Fabio Valentini - 2.12.1-3 - Bump cookie_store dependency from 0.21 to 0.22 * Fri Jul 25 2025 Fedora Release Engineering - 2.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu May 01 2025 Fabio Valentini - 2.12.1-1 - Update to version 2.12.1 * Sun Jan 19 2025 Fedora Release Engineering - 2.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Aug 09 2024 Fabio Valentini - 2.10.1-1 - Update to version 2.10.1; Fixes RHBZ#2303778 * Wed Jul 31 2024 Michel Lind - 2.10.0-1 - Update to version 2.10.0; Fixes: RHBZ#2296095 * Sat Jul 20 2024 Fedora Release Engineering - 2.9.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 27 2024 Fabio Valentini - 2.9.7-1 - Update to version 2.9.7; Fixes RHBZ#2264516 * Thu Feb 15 2024 Michel Lind - 2.9.1-1 - Initial package (rhbz#2263942) ## END: Generated by rpmautospec