From af470fa532945243e27e4c02d19ac8067771ed38 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 26 Apr 2024 17:19:17 -0400 Subject: [PATCH] Hide the image and sanity-checks crate features They can be restored when rust-image is at least 0.25.1, RHBZ#2268816 --- oxipng-fix-metadata-auto.diff | 2 +- rust-oxipng.spec | 24 ------------------------ rust2rpm.toml | 9 +++++++++ 3 files changed, 10 insertions(+), 25 deletions(-) diff --git a/oxipng-fix-metadata-auto.diff b/oxipng-fix-metadata-auto.diff index 4b71713..63747d0 100644 --- a/oxipng-fix-metadata-auto.diff +++ b/oxipng-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- oxipng-9.1.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ oxipng-9.1.1/Cargo.toml 2024-04-24T19:26:06.475276+00:00 ++++ oxipng-9.1.1/Cargo.toml 2024-04-26T21:18:32.492352+00:00 @@ -150,7 +150,6 @@ [features] binary = [ diff --git a/rust-oxipng.spec b/rust-oxipng.spec index 75c0f91..2bc4bf0 100644 --- a/rust-oxipng.spec +++ b/rust-oxipng.spec @@ -149,18 +149,6 @@ use the "freestanding" feature of the "%{crate}" crate. %files -n %{name}+freestanding-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+image-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+image-devel %{_description} - -This package contains library source intended for building other packages which -use the "image" feature of the "%{crate}" crate. - -%files -n %{name}+image-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+parallel-devel Summary: %{summary} BuildArch: noarch @@ -185,18 +173,6 @@ use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+sanity-checks-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+sanity-checks-devel %{_description} - -This package contains library source intended for building other packages which -use the "sanity-checks" feature of the "%{crate}" crate. - -%files -n %{name}+sanity-checks-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+zopfli-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.toml b/rust2rpm.toml index ffd8b6d..4d094db 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -9,3 +9,12 @@ post = [ "mandest='%{buildroot}%{_mandir}/man1'", "install -t \"${mandest}\" -D -p -m 0644 \"${mansrc}\"", ] + +[features] +hide = [ + # Waiting for rust-image 0.25.1: + # https://bugzilla.redhat.com/show_bug.cgi?id=2268816 + "image", + # Needs the image feature: + "sanity-checks", +]