Skip to content

Commit

Permalink
fix: oxipng (#1520) (#1527)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1aaacb5)

Co-authored-by: madomado <[email protected]>
  • Loading branch information
raboneko and madonuko authored Jul 13, 2024
1 parent 913f817 commit 0a8605a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 71 deletions.
18 changes: 9 additions & 9 deletions anda/langs/rust/oxipng/oxipng-fix-metadata-auto.diff
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
--- oxipng-9.0.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ oxipng-9.0.0/Cargo.toml 2023-10-30T06:36:01.294365+00:00
@@ -116,7 +116,6 @@
--- oxipng-9.1.2/Cargo.toml 1970-01-01T00:00:01+00:00
+++ oxipng-9.1.2/Cargo.toml 2024-07-13T07:08:09.478330+00:00
@@ -150,7 +150,6 @@
[features]
binary = [
"clap",
- "glob",
"env_logger",
"dep:clap",
- "dep:glob",
"dep:env_logger",
]
default = [
@@ -133,13 +132,10 @@
]
sanity-checks = ["image"]
@@ -169,13 +168,10 @@
sanity-checks = ["dep:image"]
zopfli = ["dep:zopfli"]

-[target."cfg(windows)".dependencies.glob]
-version = "0.3.1"
Expand Down
66 changes: 4 additions & 62 deletions anda/langs/rust/oxipng/rust-oxipng.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Generated by rust2rpm 25
# Generated by rust2rpm 26
%bcond_without check
# don't mangle shebangs
%global __brp_mangle_shebangs %{nil}

%global crate oxipng

Name: rust-oxipng
Version: 9.1.2
Release: 1%?dist
Release: %autorelease
Summary: Lossless PNG compression optimizer

License: MIT
Expand Down Expand Up @@ -77,42 +79,6 @@ use the "binary" feature of the "%{crate}" crate.
%files -n %{name}+binary-devel
%ghost %{crate_instdir}/Cargo.toml

%package -n %{name}+clap-devel
Summary: %{summary}
BuildArch: noarch

%description -n %{name}+clap-devel %{_description}

This package contains library source intended for building other packages which
use the "clap" feature of the "%{crate}" crate.

%files -n %{name}+clap-devel
%ghost %{crate_instdir}/Cargo.toml

%package -n %{name}+crossbeam-channel-devel
Summary: %{summary}
BuildArch: noarch

%description -n %{name}+crossbeam-channel-devel %{_description}

This package contains library source intended for building other packages which
use the "crossbeam-channel" feature of the "%{crate}" crate.

%files -n %{name}+crossbeam-channel-devel
%ghost %{crate_instdir}/Cargo.toml

%package -n %{name}+env_logger-devel
Summary: %{summary}
BuildArch: noarch

%description -n %{name}+env_logger-devel %{_description}

This package contains library source intended for building other packages which
use the "env_logger" feature of the "%{crate}" crate.

%files -n %{name}+env_logger-devel
%ghost %{crate_instdir}/Cargo.toml

%package -n %{name}+filetime-devel
Summary: %{summary}
BuildArch: noarch
Expand All @@ -137,18 +103,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
Expand All @@ -161,18 +115,6 @@ use the "parallel" feature of the "%{crate}" crate.
%files -n %{name}+parallel-devel
%ghost %{crate_instdir}/Cargo.toml

%package -n %{name}+rayon-devel
Summary: %{summary}
BuildArch: noarch

%description -n %{name}+rayon-devel %{_description}

This package contains library source intended for building other packages which
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
Expand Down

0 comments on commit 0a8605a

Please sign in to comment.