You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-imagequant/rust-imagequant.spec

110 lines
2.8 KiB

# Generated by rust2rpm 25
2 years ago
%bcond_without check
%global debug_package %{nil}
%global crate imagequant
Name: rust-imagequant
Version: 4.2.2
2 years ago
Release: %autorelease
Summary: Convert 24/32-bit images to 8-bit palette with alpha channel
License: GPL-3.0-or-later
URL: https://crates.io/crates/imagequant
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * Drop benchmark dependency (lodepng)
Patch: imagequant-fix-metadata.diff
2 years ago
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Convert 24/32-bit images to 8-bit palette with alpha channel. For lossy
PNG compression and high-quality GIF images Dual-licensed like pngquant.
See https://pngquant.org for details.}
2 years ago
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/COPYRIGHT
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+_internal_c_ffi-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+_internal_c_ffi-devel %{_description}
This package contains library source intended for building other packages which
use the "_internal_c_ffi" feature of the "%{crate}" crate.
%files -n %{name}+_internal_c_ffi-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+large_palettes-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+large_palettes-devel %{_description}
This package contains library source intended for building other packages which
use the "large_palettes" feature of the "%{crate}" crate.
%files -n %{name}+large_palettes-devel
%ghost %{crate_instdir}/Cargo.toml
2 years ago
%package -n %{name}+threads-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+threads-devel %{_description}
This package contains library source intended for building other packages which
use the "threads" feature of the "%{crate}" crate.
%files -n %{name}+threads-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
2 years ago
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog