From 551767f0b984c11bfc4f4a81993b7a9e0f40d40e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 11 Jun 2021 20:35:57 +0200 Subject: [PATCH] update to version 0.11.3 --- .gitignore | 1 + .rust2rpm.conf | 10 --- reqwest-fix-metadata.diff | 6 +- rust-reqwest.spec | 130 +++++++++++++++++++++++++++++++++++++- sources | 2 +- 5 files changed, 132 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 6c41801..867cda8 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /reqwest-0.10.9.crate /reqwest-0.11.1.crate /reqwest-0.11.2.crate +/reqwest-0.11.3.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf index c02f93e..64802b1 100644 --- a/.rust2rpm.conf +++ b/.rust2rpm.conf @@ -1,13 +1,3 @@ [DEFAULT] unwanted-features = - __rustls - hyper-rustls native-tls-vendored - rustls - rustls-native-certs - rustls-tls - rustls-tls-manual-roots - rustls-tls-webpki-roots - rustls-tls-native-roots - tokio-rustls - webpki-roots diff --git a/reqwest-fix-metadata.diff b/reqwest-fix-metadata.diff index 7c28cc3..92d6be0 100644 --- a/reqwest-fix-metadata.diff +++ b/reqwest-fix-metadata.diff @@ -1,5 +1,5 @@ ---- reqwest-0.11.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ reqwest-0.11.2/Cargo.toml 2021-03-23T20:54:23.438337+00:00 +--- reqwest-0.11.3/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ reqwest-0.11.3/Cargo.toml 2021-04-23T16:56:56.112642+00:00 @@ -266,20 +266,3 @@ version = "1.0" features = ["macros", "rt-multi-thread"] @@ -16,7 +16,7 @@ - -[target."cfg(target_arch = \"wasm32\")".dependencies.web-sys] -version = "0.3.25" --features = ["Headers", "Request", "RequestInit", "RequestMode", "Response", "Window", "FormData", "Blob", "BlobPropertyBag", "ServiceWorkerGlobalScope"] +-features = ["Headers", "Request", "RequestInit", "RequestMode", "Response", "Window", "FormData", "Blob", "BlobPropertyBag", "ServiceWorkerGlobalScope", "RequestCredentials"] -[target."cfg(target_arch = \"wasm32\")".dev-dependencies.wasm-bindgen-test] -version = "0.3" -[target."cfg(windows)".dependencies.winreg] diff --git a/rust-reqwest.spec b/rust-reqwest.spec index bc44e04..2204ec2 100644 --- a/rust-reqwest.spec +++ b/rust-reqwest.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 17 %bcond_without check %global debug_package %{nil} %global crate reqwest Name: rust-%{crate} -Version: 0.11.2 +Version: 0.11.3 Release: 1%{?dist} Summary: Higher level HTTP client library @@ -14,7 +14,7 @@ License: MIT or ASL 2.0 URL: https://crates.io/crates/reqwest Source: %{crates_source} # Initial patched metadata -# * No windows/wasm32 dependencies +# * drop windows- and WASM-specific dependencies Patch0: reqwest-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -67,6 +67,18 @@ which use "__internal_proxy_sys_no_cache" feature of "%{crate}" crate. %files -n %{name}+__internal_proxy_sys_no_cache-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "__rustls" feature of "%{crate}" crate. + +%files -n %{name}+__rustls-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+__tls-devel Summary: %{summary} BuildArch: noarch @@ -175,6 +187,18 @@ which use "gzip" feature of "%{crate}" crate. %files -n %{name}+gzip-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+hyper-rustls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+hyper-rustls-devel %{_description} + +This package contains library source intended for building other packages +which use "hyper-rustls" feature of "%{crate}" crate. + +%files -n %{name}+hyper-rustls-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+hyper-tls-devel Summary: %{summary} BuildArch: noarch @@ -247,6 +271,78 @@ which use "native-tls-crate" feature of "%{crate}" crate. %files -n %{name}+native-tls-crate-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "rustls" feature of "%{crate}" crate. + +%files -n %{name}+rustls-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rustls-native-certs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustls-native-certs-devel %{_description} + +This package contains library source intended for building other packages +which use "rustls-native-certs" feature of "%{crate}" crate. + +%files -n %{name}+rustls-native-certs-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rustls-tls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustls-tls-devel %{_description} + +This package contains library source intended for building other packages +which use "rustls-tls" feature of "%{crate}" crate. + +%files -n %{name}+rustls-tls-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rustls-tls-manual-roots-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustls-tls-manual-roots-devel %{_description} + +This package contains library source intended for building other packages +which use "rustls-tls-manual-roots" feature of "%{crate}" crate. + +%files -n %{name}+rustls-tls-manual-roots-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rustls-tls-native-roots-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustls-tls-native-roots-devel %{_description} + +This package contains library source intended for building other packages +which use "rustls-tls-native-roots" feature of "%{crate}" crate. + +%files -n %{name}+rustls-tls-native-roots-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rustls-tls-webpki-roots-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustls-tls-webpki-roots-devel %{_description} + +This package contains library source intended for building other packages +which use "rustls-tls-webpki-roots" feature of "%{crate}" crate. + +%files -n %{name}+rustls-tls-webpki-roots-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+serde_json-devel Summary: %{summary} BuildArch: noarch @@ -307,6 +403,18 @@ which use "tokio-native-tls" feature of "%{crate}" crate. %files -n %{name}+tokio-native-tls-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+tokio-rustls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-rustls-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-rustls" feature of "%{crate}" crate. + +%files -n %{name}+tokio-rustls-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+tokio-socks-devel Summary: %{summary} BuildArch: noarch @@ -355,6 +463,18 @@ which use "trust-dns-resolver" feature of "%{crate}" crate. %files -n %{name}+trust-dns-resolver-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "webpki-roots" feature of "%{crate}" crate. + +%files -n %{name}+webpki-roots-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep @@ -381,6 +501,10 @@ which use "trust-dns-resolver" feature of "%{crate}" crate. %endif %changelog +* Fri Jun 11 2021 Fabio Valentini - 0.11.3-1 +- Update to version 0.11.3. +- Fixes RHBZ#1948875 + * Tue Mar 23 2021 Fabio Valentini - 0.11.2-1 - Update to version 0.11.2. - Fixes RHBZ#1937094 diff --git a/sources b/sources index b39f6df..9d2c5dc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (reqwest-0.11.2.crate) = cb5d2dc85d7a0eccbcfcfc11db3fda7647b5ce706ec33e63e7105613e47facb20ca82cd02f8b9fb44e98be501e4e59fba6d7434bc056ef58225c8845417018b1 +SHA512 (reqwest-0.11.3.crate) = 140751c42180a20e3302a0bf266f2b3c19a720764ed7114b57a4310756f343b41c9935cc47d232e0946a0dceb3a21cc6c21681121c9f2e351c93980cb198b8c8