## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## 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 28 %bcond check 1 %global debug_package %{nil} # prevent executables from being installed %global cargo_install_bin 0 %global crate crc-fast Name: rust-crc-fast Version: 1.10.0 Release: %autorelease Summary: World's fastest generic CRC16, CRC32, and CRC64 calculator using SIMD License: (MIT OR Apache-2.0) AND Zlib URL: https://crates.io/crates/crc-fast Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * update license expression for Zlib code: # * https://github.com/awesomized/crc-fast-rust/pull/41 # * remove dev dependencies on criterion and wasm-bindgen-test Patch: crc-fast-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: World's fastest generic CRC16, CRC32, and CRC64 calculator using SIMD. Supplies a C-compatible shared library for use in other languages.} %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-Apache %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/crc-check.txt %{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}+alloc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cache-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cache-devel %{_description} This package contains library source intended for building other packages which use the "cache" feature of the "%{crate}" crate. %files -n %{name}+cache-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cli-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cli-devel %{_description} This package contains library source intended for building other packages which use the "cli" feature of the "%{crate}" crate. %files -n %{name}+cli-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+digest-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+digest-devel %{_description} This package contains library source intended for building other packages which use the "digest" feature of the "%{crate}" crate. %files -n %{name}+digest-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ffi-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ffi-devel %{_description} This package contains library source intended for building other packages which use the "ffi" feature of the "%{crate}" crate. %files -n %{name}+ffi-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hashbrown-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hashbrown-devel %{_description} This package contains library source intended for building other packages which use the "hashbrown" feature of the "%{crate}" crate. %files -n %{name}+hashbrown-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+optimize_crc32_auto-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+optimize_crc32_auto-devel %{_description} This package contains library source intended for building other packages which use the "optimize_crc32_auto" feature of the "%{crate}" crate. %files -n %{name}+optimize_crc32_auto-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+optimize_crc32_avx512_v4s3x3-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+optimize_crc32_avx512_v4s3x3-devel %{_description} This package contains library source intended for building other packages which use the "optimize_crc32_avx512_v4s3x3" feature of the "%{crate}" crate. %files -n %{name}+optimize_crc32_avx512_v4s3x3-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+optimize_crc32_avx512_vpclmulqdq_v3x2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+optimize_crc32_avx512_vpclmulqdq_v3x2-devel %{_description} This package contains library source intended for building other packages which use the "optimize_crc32_avx512_vpclmulqdq_v3x2" feature of the "%{crate}" crate. %files -n %{name}+optimize_crc32_avx512_vpclmulqdq_v3x2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+optimize_crc32_neon_blended-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+optimize_crc32_neon_blended-devel %{_description} This package contains library source intended for building other packages which use the "optimize_crc32_neon_blended" feature of the "%{crate}" crate. %files -n %{name}+optimize_crc32_neon_blended-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+optimize_crc32_neon_eor3_v9s3x2e_s3-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+optimize_crc32_neon_eor3_v9s3x2e_s3-devel %{_description} This package contains library source intended for building other packages which use the "optimize_crc32_neon_eor3_v9s3x2e_s3" feature of the "%{crate}" crate. %files -n %{name}+optimize_crc32_neon_eor3_v9s3x2e_s3-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+optimize_crc32_neon_v12e_v1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+optimize_crc32_neon_v12e_v1-devel %{_description} This package contains library source intended for building other packages which use the "optimize_crc32_neon_v12e_v1" feature of the "%{crate}" crate. %files -n %{name}+optimize_crc32_neon_v12e_v1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+optimize_crc32_neon_v3s4x2e_v2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+optimize_crc32_neon_v3s4x2e_v2-devel %{_description} This package contains library source intended for building other packages which use the "optimize_crc32_neon_v3s4x2e_v2" feature of the "%{crate}" crate. %files -n %{name}+optimize_crc32_neon_v3s4x2e_v2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+optimize_crc32_sse_v4s3x3-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+optimize_crc32_sse_v4s3x3-devel %{_description} This package contains library source intended for building other packages which use the "optimize_crc32_sse_v4s3x3" feature of the "%{crate}" crate. %files -n %{name}+optimize_crc32_sse_v4s3x3-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+panic-handler-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+panic-handler-devel %{_description} This package contains library source intended for building other packages which use the "panic-handler" feature of the "%{crate}" crate. %files -n %{name}+panic-handler-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+spin-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+spin-devel %{_description} This package contains library source intended for building other packages which use the "spin" feature of the "%{crate}" crate. %files -n %{name}+spin-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 %package -n %{name}+vpclmulqdq-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+vpclmulqdq-devel %{_description} This package contains library source intended for building other packages which use the "vpclmulqdq" feature of the "%{crate}" crate. %files -n %{name}+vpclmulqdq-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f cli %build %cargo_build -f cli %install %cargo_install -f cli # FIXME: install shared library %if %{with check} %check # * skip test_ffi_header - checks metadata of recursive dependencies # * skip benchmark tests %{cargo_test -f cli -- -- %{shrink: --skip lib::test_ffi_header --skip test_benchmark_ }} %endif %changelog ## START: Generated by rpmautospec * Fri Jan 02 2026 John Doe - 1.10.0-1 - Uncommitted changes ## END: Generated by rpmautospec