The package rpms/rust-reqwest0.10.git has added or updated architecture specific content
in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-reqwest0.10.git/commit/?id=2....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 218fe0b4466ac56f54942a42dce6cb8669c201e3
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun Mar 7 22:33:10 2021 +0100
initial import (reqwest 0.10 compat package)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8f7805d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/results_*/
+/*.src.rpm
+
+/reqwest-0.10.10.crate
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
new file mode 100644
index 0000000..c02f93e
--- /dev/null
+++ b/.rust2rpm.conf
@@ -0,0 +1,13 @@
+[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/README.md b/README.md
deleted file mode 100644
index 8942f1c..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-reqwest0.10
-
-The rust-reqwest0.10 package
diff --git a/reqwest-fix-metadata.diff b/reqwest-fix-metadata.diff
new file mode 100644
index 0000000..ed57c8b
--- /dev/null
+++ b/reqwest-fix-metadata.diff
@@ -0,0 +1,23 @@
+--- reqwest-0.10.10/Cargo.toml 1970-01-01T00:00:00+00:00
++++ reqwest-0.10.10/Cargo.toml 2021-03-07T21:29:16.191496+00:00
+@@ -251,20 +251,3 @@
+ version = "0.2.0"
+ features = ["macros"]
+ default-features = false
+-[target."cfg(target_arch = \"wasm32\")".dependencies.js-sys]
+-version = "0.3.45"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen]
+-version = "0.2.68"
+-features = ["serde-serialize"]
+-
+-[target."cfg(target_arch =
\"wasm32\")".dependencies.wasm-bindgen-futures]
+-version = "0.4.18"
+-
+-[target."cfg(target_arch = \"wasm32\")".dependencies.web-sys]
+-version = "0.3.25"
+-features = ["Headers", "Request", "RequestInit",
"RequestMode", "Response", "Window", "FormData",
"Blob", "BlobPropertyBag", "ServiceWorkerGlobalScope"]
+-[target."cfg(target_arch =
\"wasm32\")".dev-dependencies.wasm-bindgen-test]
+-version = "0.3"
+-[target."cfg(windows)".dependencies.winreg]
+-version = "0.7"
diff --git a/rust-reqwest0.10.spec b/rust-reqwest0.10.spec
new file mode 100644
index 0000000..eafcdd3
--- /dev/null
+++ b/rust-reqwest0.10.spec
@@ -0,0 +1,348 @@
+# Generated by rust2rpm 16
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate reqwest
+
+Name: rust-%{crate}0.10
+Version: 0.10.10
+Release: 1%{?dist}
+Summary: Higher level HTTP client library
+
+# Upstream license specification: MIT/Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/reqwest
+Source: %{crates_source}
+# Initial patched metadata
+# * No windows/wasm32
+Patch0: reqwest-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Higher level HTTP client library.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%license LICENSE-MIT LICENSE-APACHE
+%doc README.md CHANGELOG.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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 "default" feature of "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+__internal_proxy_sys_no_cache-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+__internal_proxy_sys_no_cache-devel %{_description}
+
+This package contains library source intended for building other packages
+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}+__tls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+__tls-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "__tls" feature of "%{crate}" crate.
+
+%files -n %{name}+__tls-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+async-compression-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+async-compression-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "async-compression" feature of "%{crate}" crate.
+
+%files -n %{name}+async-compression-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+blocking-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+blocking-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "blocking" feature of "%{crate}" crate.
+
+%files -n %{name}+blocking-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "brotli" feature of "%{crate}" crate.
+
+%files -n %{name}+brotli-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+cookie_crate-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+cookie_crate-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "cookie_crate" feature of "%{crate}" crate.
+
+%files -n %{name}+cookie_crate-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+cookie_store-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+cookie_store-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "cookie_store" feature of "%{crate}" crate.
+
+%files -n %{name}+cookie_store-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "cookies" feature of "%{crate}" crate.
+
+%files -n %{name}+cookies-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+default-tls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+default-tls-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "default-tls" feature of "%{crate}" crate.
+
+%files -n %{name}+default-tls-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "gzip" feature of "%{crate}" crate.
+
+%files -n %{name}+gzip-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+hyper-tls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+hyper-tls-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "hyper-tls" feature of "%{crate}" crate.
+
+%files -n %{name}+hyper-tls-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "json" feature of "%{crate}" crate.
+
+%files -n %{name}+json-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "native-tls" feature of "%{crate}" crate.
+
+%files -n %{name}+native-tls-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+native-tls-crate-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+native-tls-crate-devel %{_description}
+
+This package contains library source intended for building other packages
+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}+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 "serde_json" feature of "%{crate}" crate.
+
+%files -n %{name}+serde_json-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+socks-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+socks-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "socks" feature of "%{crate}" crate.
+
+%files -n %{name}+socks-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+stream-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+stream-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "stream" feature of "%{crate}" crate.
+
+%files -n %{name}+stream-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+time-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+time-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "time" feature of "%{crate}" crate.
+
+%files -n %{name}+time-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+tokio-socks-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+tokio-socks-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "tokio-socks" feature of "%{crate}" crate.
+
+%files -n %{name}+tokio-socks-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+tokio-tls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+tokio-tls-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "tokio-tls" feature of "%{crate}" crate.
+
+%files -n %{name}+tokio-tls-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+trust-dns-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+trust-dns-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "trust-dns" feature of "%{crate}" crate.
+
+%files -n %{name}+trust-dns-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+trust-dns-resolver-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+trust-dns-resolver-devel %{_description}
+
+This package contains library source intended for building other packages
+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
+
+%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 which require internet access
+# * skip "file" test which depends on Cargo.lock being present
+%cargo_test -- -- \
+ --skip test_badssl_modern \
+ --skip test_badssl_self_signed \
+ --skip test_badssl_wrong_host \
+ --skip file
+%endif
+
+%changelog
+* Sun Mar 07 2021 Fabio Valentini <decathorpe(a)gmail.com> - 0.10.10-1
+- Initial compat package for reqwest 0.10
diff --git a/sources b/sources
new file mode 100644
index 0000000..ab21229
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (reqwest-0.10.10.crate) =
06de1010a618a517741fcf827b2c4297238c86cd3f906be6f7520e57dd4e10bf4e978398bcd90631c4d459c14b2d7218c06b5244b6af1f83610de9c8990c62ae