# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate pbzx Name: rust-pbzx Version: 0.3.0 Release: %autorelease Summary: Rust library for parsing, extracting, and creating PBZX archives License: MIT URL: https://crates.io/crates/pbzx Source: %{crates_source} # * https://github.com/Dil4rd/dpp/pull/2 Source2: https://github.com/Dil4rd/dpp/raw/refs/tags/v0.3.0/LICENSE BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A Rust library for parsing, extracting, and creating PBZX archives (Apple's payload format).} %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}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %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}+extract-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+extract-devel %{_description} This package contains library source intended for building other packages which use the "extract" feature of the "%{crate}" crate. %files -n %{name}+extract-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+list-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+list-devel %{_description} This package contains library source intended for building other packages which use the "list" feature of the "%{crate}" crate. %files -n %{name}+list-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pack-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pack-devel %{_description} This package contains library source intended for building other packages which use the "pack" feature of the "%{crate}" crate. %files -n %{name}+pack-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 %prep %autosetup -n %{crate}-%{version} -p1 cp -p %SOURCE2 . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog