Hide the image and sanity-checks crate features

They can be restored when rust-image is at least 0.25.1, RHBZ#2268816
epel10
Benjamin A. Beasley 8 months ago
parent fdcdfeaaef
commit af470fa532

@ -1,5 +1,5 @@
--- oxipng-9.1.1/Cargo.toml 1970-01-01T00:00:01+00:00 --- 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 @@ @@ -150,7 +150,6 @@
[features] [features]
binary = [ binary = [

@ -149,18 +149,6 @@ use the "freestanding" feature of the "%{crate}" crate.
%files -n %{name}+freestanding-devel %files -n %{name}+freestanding-devel
%ghost %{crate_instdir}/Cargo.toml %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 %package -n %{name}+parallel-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
@ -185,18 +173,6 @@ use the "rayon" feature of the "%{crate}" crate.
%files -n %{name}+rayon-devel %files -n %{name}+rayon-devel
%ghost %{crate_instdir}/Cargo.toml %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 %package -n %{name}+zopfli-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch

@ -9,3 +9,12 @@ post = [
"mandest='%{buildroot}%{_mandir}/man1'", "mandest='%{buildroot}%{_mandir}/man1'",
"install -t \"${mandest}\" -D -p -m 0644 \"${mansrc}\"", "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",
]

Loading…
Cancel
Save