|
|
@ -1,51 +1,57 @@
|
|
|
|
# Generated by rust2rpm 20
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
|
|
%global crate oxipng
|
|
|
|
%global crate oxipng
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-oxipng
|
|
|
|
Version: 5.0.1
|
|
|
|
Version: 9.0.0
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Lossless PNG compression optimizer
|
|
|
|
Summary: Lossless PNG compression optimizer
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://crates.io/crates/oxipng
|
|
|
|
URL: https://crates.io/crates/oxipng
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# Automatically generated patch to strip dependencies and normalize metadata
|
|
|
|
# Downgrade miniz_oxide to version 0.4
|
|
|
|
Patch: oxipng-fix-metadata-auto.diff
|
|
|
|
# Upgrade zopfli to version 0.5
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
Patch0: oxipng-fix-metadata.diff
|
|
|
|
# - Omit unnecessary files from the crate, as in “Exclude more files from the
|
|
|
|
|
|
|
|
# published crate” https://github.com/shssoichiro/oxipng/pull/591
|
|
|
|
|
|
|
|
Patch: oxipng-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Lossless PNG compression optimizer.}
|
|
|
|
A lossless PNG compression optimizer.}
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
# 0BSD or MIT or ASL 2.0
|
|
|
|
# Apache-2.0
|
|
|
|
# ASL 2.0
|
|
|
|
# Apache-2.0 OR MIT
|
|
|
|
# ASL 2.0 and MIT
|
|
|
|
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
|
|
|
|
# ASL 2.0 or MIT
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
# MIT
|
|
|
|
# MIT and zlib or ASL 2.0 and zlib
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
# MIT or ASL 2.0
|
|
|
|
# Unlicense OR MIT
|
|
|
|
# MIT or zlib or ASL 2.0
|
|
|
|
# Zlib OR Apache-2.0 OR MIT
|
|
|
|
# Unlicense or MIT
|
|
|
|
License: %{shrink:
|
|
|
|
# zlib
|
|
|
|
Apache-2.0 AND
|
|
|
|
# zlib or ASL 2.0 or MIT
|
|
|
|
(Apache-2.0 OR MIT) AND
|
|
|
|
License: ASL 2.0 and MIT and zlib
|
|
|
|
(Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND
|
|
|
|
|
|
|
|
MIT AND
|
|
|
|
|
|
|
|
(Unlicense OR MIT) AND
|
|
|
|
|
|
|
|
(Zlib OR Apache-2.0 OR MIT)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.md README.md README.template.md
|
|
|
|
%license LICENSE.dependencies
|
|
|
|
|
|
|
|
%doc CHANGELOG.md
|
|
|
|
|
|
|
|
%doc MANUAL.txt
|
|
|
|
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/oxipng
|
|
|
|
%{_bindir}/oxipng
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
@ -55,12 +61,14 @@ BuildArch: noarch
|
|
|
|
%description devel %{_description}
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "%{crate}" crate.
|
|
|
|
use the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%license %{crate_instdir}/LICENSE
|
|
|
|
%doc CHANGELOG.md README.md README.template.md
|
|
|
|
%doc %{crate_instdir}/CHANGELOG.md
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
%doc %{crate_instdir}/MANUAL.txt
|
|
|
|
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
|
|
|
|
%{crate_instdir}/
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -69,10 +77,10 @@ BuildArch: noarch
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "default" feature of "%{crate}" crate.
|
|
|
|
use the "default" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+binary-devel
|
|
|
|
%package -n %{name}+binary-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -81,10 +89,10 @@ BuildArch: noarch
|
|
|
|
%description -n %{name}+binary-devel %{_description}
|
|
|
|
%description -n %{name}+binary-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "binary" feature of "%{crate}" crate.
|
|
|
|
use the "binary" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+binary-devel
|
|
|
|
%files -n %{name}+binary-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+clap-devel
|
|
|
|
%package -n %{name}+clap-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -93,10 +101,34 @@ BuildArch: noarch
|
|
|
|
%description -n %{name}+clap-devel %{_description}
|
|
|
|
%description -n %{name}+clap-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "clap" feature of "%{crate}" crate.
|
|
|
|
use the "clap" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+clap-devel
|
|
|
|
%files -n %{name}+clap-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%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
|
|
|
|
%package -n %{name}+filetime-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -105,70 +137,70 @@ BuildArch: noarch
|
|
|
|
%description -n %{name}+filetime-devel %{_description}
|
|
|
|
%description -n %{name}+filetime-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "filetime" feature of "%{crate}" crate.
|
|
|
|
use the "filetime" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+filetime-devel
|
|
|
|
%files -n %{name}+filetime-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+libdeflater-devel
|
|
|
|
%package -n %{name}+freestanding-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+libdeflater-devel %{_description}
|
|
|
|
%description -n %{name}+freestanding-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "libdeflater" feature of "%{crate}" crate.
|
|
|
|
use the "freestanding" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+libdeflater-devel
|
|
|
|
%files -n %{name}+freestanding-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+parallel-devel
|
|
|
|
%package -n %{name}+image-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+parallel-devel %{_description}
|
|
|
|
%description -n %{name}+image-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "parallel" feature of "%{crate}" crate.
|
|
|
|
use the "image" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+parallel-devel
|
|
|
|
%files -n %{name}+image-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+rayon-devel
|
|
|
|
%package -n %{name}+parallel-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+rayon-devel %{_description}
|
|
|
|
%description -n %{name}+parallel-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "rayon" feature of "%{crate}" crate.
|
|
|
|
use the "parallel" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+rayon-devel
|
|
|
|
%files -n %{name}+parallel-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+stderrlog-devel
|
|
|
|
%package -n %{name}+rayon-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+stderrlog-devel %{_description}
|
|
|
|
%description -n %{name}+rayon-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "stderrlog" feature of "%{crate}" crate.
|
|
|
|
use the "rayon" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+stderrlog-devel
|
|
|
|
%files -n %{name}+rayon-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+wild-devel
|
|
|
|
%package -n %{name}+sanity-checks-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+wild-devel %{_description}
|
|
|
|
%description -n %{name}+sanity-checks-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "wild" feature of "%{crate}" crate.
|
|
|
|
use the "sanity-checks" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+wild-devel
|
|
|
|
%files -n %{name}+sanity-checks-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+zopfli-devel
|
|
|
|
%package -n %{name}+zopfli-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -177,13 +209,13 @@ BuildArch: noarch
|
|
|
|
%description -n %{name}+zopfli-devel %{_description}
|
|
|
|
%description -n %{name}+zopfli-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use "zopfli" feature of "%{crate}" crate.
|
|
|
|
use the "zopfli" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+zopfli-devel
|
|
|
|
%files -n %{name}+zopfli-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
@ -191,6 +223,8 @@ use "zopfli" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%{cargo_license_summary}
|
|
|
|
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%cargo_install
|
|
|
|