mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-03 02:12:18 +00:00
9be2fdb0f8
* add: oxipng
* forgot cargo_prep_online
* remove checks
* Revert "remove checks"
This reverts commit 5ddef305d6.
187 lines
4.6 KiB
RPMSpec
187 lines
4.6 KiB
RPMSpec
# Generated by rust2rpm 23
|
|
%bcond_without check
|
|
|
|
%global crate oxipng
|
|
|
|
Name: rust-oxipng
|
|
Version: 8.0.0
|
|
Release: %autorelease
|
|
Summary: Lossless PNG compression optimizer
|
|
|
|
License: MIT
|
|
URL: https://crates.io/crates/oxipng
|
|
Source: %{crates_source}
|
|
|
|
BuildRequires: anda-srpm-macros rust-packaging >= 21
|
|
|
|
%global _description %{expand:
|
|
Lossless PNG compression optimizer.}
|
|
|
|
%description %{_description}
|
|
|
|
%package -n %{crate}
|
|
Summary: %{summary}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%files -n %{crate}
|
|
%license LICENSE
|
|
%doc CHANGELOG.md
|
|
%doc README.md
|
|
%doc README.template.md
|
|
%{_bindir}/oxipng
|
|
|
|
%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}/LICENSE
|
|
%doc %{crate_instdir}/CHANGELOG.md
|
|
%doc %{crate_instdir}/README.md
|
|
%doc %{crate_instdir}/README.template.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}+binary-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+binary-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
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}+filetime-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+filetime-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "filetime" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+filetime-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+freestanding-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+freestanding-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "freestanding" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+freestanding-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+parallel-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+parallel-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
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}+stderrlog-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+stderrlog-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "stderrlog" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+stderrlog-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+wild-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+wild-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "wild" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+wild-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%package -n %{name}+zopfli-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+zopfli-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "zopfli" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+zopfli-devel
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
%cargo_prep_online
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
%autochangelog
|