diff --git a/.gitignore b/.gitignore index 4d63db9..f000a30 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ /reqwest-0.12.7.crate /reqwest-0.12.8.crate /reqwest-0.12.9.crate +/reqwest-0.12.12.crate diff --git a/reqwest-fix-metadata-auto.diff b/reqwest-fix-metadata-auto.diff index 0e7812b..b73ac4a 100644 --- a/reqwest-fix-metadata-auto.diff +++ b/reqwest-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- reqwest-0.12.9/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ reqwest-0.12.9/Cargo.toml 2024-10-30T22:19:12.691722+00:00 -@@ -285,7 +285,7 @@ +--- reqwest-0.12.12/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ reqwest-0.12.12/Cargo.toml 2025-01-04T14:02:28.391991+00:00 +@@ -132,7 +132,7 @@ "dep:futures-channel", ] json = ["dep:serde_json"] @@ -9,7 +9,7 @@ multipart = ["dep:mime_guess"] native-tls = ["default-tls"] native-tls-alpn = [ -@@ -326,7 +326,6 @@ +@@ -173,7 +173,6 @@ stream = [ "tokio/fs", "dep:tokio-util", @@ -17,7 +17,7 @@ ] trust-dns = [] zstd = [ -@@ -566,57 +565,8 @@ +@@ -593,57 +592,8 @@ version = "0.13" package = "zstd" diff --git a/reqwest-fix-metadata.diff b/reqwest-fix-metadata.diff index 7673082..abfc5ba 100644 --- a/reqwest-fix-metadata.diff +++ b/reqwest-fix-metadata.diff @@ -1,32 +1,6 @@ ---- reqwest-0.12.9/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ reqwest-0.12.9/Cargo.toml 2024-10-30T22:21:02.376394+00:00 -@@ -71,10 +71,6 @@ - path = "examples/form.rs" - - [[example]] --name = "h3_simple" --path = "examples/h3_simple.rs" -- --[[example]] - name = "json_dynamic" - path = "examples/json_dynamic.rs" - required-features = ["json"] -@@ -101,14 +97,6 @@ - name = "blocking" - path = "tests/blocking.rs" - required-features = ["blocking"] -- --[[test]] --name = "brotli" --path = "tests/brotli.rs" --required-features = [ -- "brotli", -- "stream", --] - - [[test]] - name = "client" -@@ -224,7 +212,6 @@ +--- reqwest-0.12.12/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ reqwest-0.12.12/Cargo.toml 2025-01-04T14:04:13.275543+00:00 +@@ -71,7 +71,6 @@ "hyper-rustls?/ring", "tokio-rustls?/ring", "rustls?/ring", @@ -34,7 +8,7 @@ ] __tls = [ "dep:rustls-pemfile", -@@ -237,11 +224,6 @@ +@@ -84,11 +83,6 @@ "futures-util/sink", "tokio/sync", ] @@ -46,7 +20,7 @@ charset = ["dep:encoding_rs"] cookies = [ "dep:cookie_crate", -@@ -251,7 +233,6 @@ +@@ -98,7 +92,6 @@ "default-tls", "charset", "http2", @@ -54,7 +28,7 @@ ] default-tls = [ "dep:hyper-tls", -@@ -276,16 +257,7 @@ +@@ -123,16 +116,7 @@ "hyper-util/http2", "hyper-rustls?/http2", ] @@ -71,7 +45,7 @@ multipart = ["dep:mime_guess"] native-tls = ["default-tls"] native-tls-alpn = [ -@@ -293,10 +265,6 @@ +@@ -140,10 +124,6 @@ "native-tls-crate?/alpn", "hyper-tls?/alpn", ] @@ -82,7 +56,33 @@ rustls-tls = ["rustls-tls-webpki-roots"] rustls-tls-manual-roots = [ "rustls-tls-manual-roots-no-provider", -@@ -361,14 +329,6 @@ +@@ -199,10 +179,6 @@ + path = "examples/form.rs" + + [[example]] +-name = "h3_simple" +-path = "examples/h3_simple.rs" +- +-[[example]] + name = "json_dynamic" + path = "examples/json_dynamic.rs" + required-features = ["json"] +@@ -229,14 +205,6 @@ + name = "blocking" + path = "tests/blocking.rs" + required-features = ["blocking"] +- +-[[test]] +-name = "brotli" +-path = "tests/brotli.rs" +-required-features = [ +- "brotli", +- "stream", +-] + + [[test]] + name = "client" +@@ -380,14 +348,6 @@ version = "0.4" optional = true @@ -97,7 +97,7 @@ [target.'cfg(not(target_arch = "wasm32"))'.dependencies.hickory-resolver] version = "0.24" features = ["tokio-runtime"] -@@ -432,15 +392,6 @@ +@@ -451,15 +411,6 @@ [target.'cfg(not(target_arch = "wasm32"))'.dependencies.pin-project-lite] version = "0.2.11" @@ -113,7 +113,7 @@ [target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls] version = "0.23.4" features = [ -@@ -501,10 +452,6 @@ +@@ -528,10 +479,6 @@ [target.'cfg(not(target_arch = "wasm32"))'.dependencies.webpki-roots] version = "0.26.0" optional = true diff --git a/rust-reqwest.spec b/rust-reqwest.spec index 2b4bd82..2d3fe7b 100644 --- a/rust-reqwest.spec +++ b/rust-reqwest.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 26 -%bcond_without check +# Generated by rust2rpm 27 +%bcond check 1 %global debug_package %{nil} %global crate reqwest Name: rust-reqwest -Version: 0.12.9 +Version: 0.12.12 Release: %autorelease Summary: Higher level HTTP client library @@ -432,10 +432,13 @@ rm tests/brotli.rs %if %{with check} %check -# * run tests single-threaded to avoid clobbered environment variables: -# https://github.com/seanmonstar/reqwest/issues/2468 # * skip tests which require internet access -%cargo_test -- -- --test-threads 1 --exact --skip test_allowed_methods --skip test_badssl_modern --skip test_badssl_self_signed --skip test_tls_info +%{cargo_test -- -- --exact %{shrink: + --skip test_allowed_methods + --skip test_badssl_modern + --skip test_badssl_self_signed + --skip test_tls_info +}} %endif %changelog diff --git a/sources b/sources index c571a30..1b9df32 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (reqwest-0.12.9.crate) = 027a31a57822a347fcc73101c602a5ec68dcb92f472d85dd76fe3465e45eb1e7ba07477700cb6a55ca77d926f9bc69b56a65499fc4dfebc5fe14732f56fa6441 +SHA512 (reqwest-0.12.12.crate) = c94ba8449d5a1d709e9676537ffab187b5f844fec44c80118e7fe467282305660f195995ade0bd1a49529ab9a8284f82a52094b43ea4be87e4517014be6ae349