From 930ba3b08f08fdf7c8b62c6b69c605d3399f055c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 22 Sep 2024 03:24:57 +0200 Subject: [PATCH] Drop even more unused features and dependencies --- hickory-proto-fix-metadata.diff | 2 +- rust-hickory-proto.spec | 121 +------------------------------- rust2rpm.toml | 10 +++ 3 files changed, 12 insertions(+), 121 deletions(-) diff --git a/hickory-proto-fix-metadata.diff b/hickory-proto-fix-metadata.diff index 112cac8..cc9cf33 100644 --- a/hickory-proto-fix-metadata.diff +++ b/hickory-proto-fix-metadata.diff @@ -1,5 +1,5 @@ --- hickory-proto-0.24.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ hickory-proto-0.24.1/Cargo.toml 2024-09-22T01:08:09.562726+00:00 ++++ hickory-proto-0.24.1/Cargo.toml 2024-09-22T01:23:53.081734+00:00 @@ -139,7 +139,7 @@ version = "0.8" diff --git a/rust-hickory-proto.spec b/rust-hickory-proto.spec index 64a8716..abd6cde 100644 --- a/rust-hickory-proto.spec +++ b/rust-hickory-proto.spec @@ -12,6 +12,7 @@ Summary: Hickory DNS is a safe and secure DNS library License: MIT OR Apache-2.0 URL: https://crates.io/crates/hickory-proto Source: %{crates_source} +# Manually created patch for downstream crate metadata changes # * bump ring dependency from 0.16 to 0.17 # * remove unused tracing-subscriber dev-dependency # * add missing "tokio/io-util" dependency for the "tokio-runtime" feature @@ -103,18 +104,6 @@ use the "dns-over-openssl" feature of the "%{crate}" crate. %files -n %{name}+dns-over-openssl-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+dns-over-rustls-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+dns-over-rustls-devel %{_description} - -This package contains library source intended for building other packages which -use the "dns-over-rustls" feature of the "%{crate}" crate. - -%files -n %{name}+dns-over-rustls-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+dns-over-tls-devel Summary: %{summary} BuildArch: noarch @@ -151,42 +140,6 @@ use the "dnssec-openssl" feature of the "%{crate}" crate. %files -n %{name}+dnssec-openssl-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+dnssec-ring-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+dnssec-ring-devel %{_description} - -This package contains library source intended for building other packages which -use the "dnssec-ring" feature of the "%{crate}" crate. - -%files -n %{name}+dnssec-ring-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+h2-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+h2-devel %{_description} - -This package contains library source intended for building other packages which -use the "h2" feature of the "%{crate}" crate. - -%files -n %{name}+h2-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+http-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+http-devel %{_description} - -This package contains library source intended for building other packages which -use the "http" feature of the "%{crate}" crate. - -%files -n %{name}+http-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+mdns-devel Summary: %{summary} BuildArch: noarch @@ -199,18 +152,6 @@ use the "mdns" feature of the "%{crate}" crate. %files -n %{name}+mdns-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 @@ -235,42 +176,6 @@ use the "openssl" feature of the "%{crate}" crate. %files -n %{name}+openssl-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+ring-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+ring-devel %{_description} - -This package contains library source intended for building other packages which -use the "ring" feature of the "%{crate}" crate. - -%files -n %{name}+ring-devel -%ghost %{crate_instdir}/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 the "rustls" feature of the "%{crate}" crate. - -%files -n %{name}+rustls-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+rustls-pemfile-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+rustls-pemfile-devel %{_description} - -This package contains library source intended for building other packages which -use the "rustls-pemfile" feature of the "%{crate}" crate. - -%files -n %{name}+rustls-pemfile-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch @@ -379,30 +284,6 @@ use the "tokio-runtime" feature of the "%{crate}" crate. %files -n %{name}+tokio-runtime-devel %ghost %{crate_instdir}/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 the "tokio-rustls" feature of the "%{crate}" crate. - -%files -n %{name}+tokio-rustls-devel -%ghost %{crate_instdir}/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 the "webpki-roots" feature of the "%{crate}" crate. - -%files -n %{name}+webpki-roots-devel -%ghost %{crate_instdir}/Cargo.toml - %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep diff --git a/rust2rpm.toml b/rust2rpm.toml index 7cb093b..ed70d3f 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -5,12 +5,22 @@ hide = [ "wasm-bindgen-crate", "wasm-bindgen", # outdated dependencies + "h2", "h3", "h3-quinn", + "http", "quinn", + "ring", + "rustls", + "rustls-pemfile", + "tokio-rustls", + "webpki-roots", "dns-over-h3", "dns-over-https", "dns-over-https-rustls", "dns-over-quic", + "dns-over-rustls", + "dnssec-ring", + "native-certs", ]