# Generated by rust2rpm 26 %bcond_without check %global crate ruzstd Name: rust-ruzstd0.5 Version: 0.5.1 Release: %autorelease Summary: Decoder for the zstd compression format License: MIT URL: https://crates.io/crates/ruzstd Source: %{crates_source} # Removed dependency used only in benchmarks Patch: ruzstd-fix-unused-dep.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A decoder for the zstd compression format.} %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 Readme.md %doc optimizations.md %{_bindir}/zstd %{_bindir}/zstd_stream %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}/optimizations.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}+hash-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hash-devel %{_description} This package contains library source intended for building other packages which use the "hash" feature of the "%{crate}" crate. %files -n %{name}+hash-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-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 %if %{with check} %check %cargo_test -- -- --skip tests::decode_corpus --skip tests::dict_test::test_dict_decoding --skip tests::fuzz_regressions --skip 'tests::test_' %endif %changelog %autochangelog