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", +]