## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 26 %bcond_without check %global crate oxipng Name: rust-oxipng Version: 9.1.1 Release: %autorelease Summary: Lossless PNG compression optimizer License: MIT URL: https://crates.io/crates/oxipng Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: oxipng-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A lossless PNG compression optimizer.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc MANUAL.txt %doc README.md %{_bindir}/oxipng %{_mandir}/man1/oxipng.1* %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}/MANUAL.txt %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}+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}+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 %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}+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 %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}+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 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} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install mansrc='target/release/assets/oxipng.1' mandest='%{buildroot}%{_mandir}/man1' install -t "${mandest}" -D -p -m 0644 "${mansrc}" %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Tue Apr 23 2024 Benjamin A. Beasley - 9.1.1-1 - Update to 9.1.1 (close RHBZ#2276572) - Replace downstream man page with upstream generated man page * Sat Mar 16 2024 Benjamin A. Beasley - 9.0.0-4 - Add a man page * Fri Mar 15 2024 Benjamin A. Beasley - 9.0.0-3 - Use rust2rpm 26 features to simplify packaging * Sat Feb 17 2024 Benjamin A. Beasley - 9.0.0-1 - Unretire and update to 9.0.0 (close RHBZ#2259760) * Mon May 31 2021 RĂ©mi Lauzier - 4.0.3-1 - Initial package ## END: Generated by rpmautospec