# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate t1ha Name: rust-t1ha Version: 0.1.0 Release: %autorelease Summary: Implementation of the T1AH (Fast Positive Hash) hash function License: Zlib URL: https://crates.io/crates/t1ha Source: %{crates_source} # Updated dependency using version markd obsolete on crates.io Patch: t1ha-fix-obsolete-dep.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: An implementation of the T1AH (Fast Positive Hash) hash function.} %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}/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}+lazy_static-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+lazy_static-devel %{_description} This package contains library source intended for building other packages which use the "lazy_static" feature of the "%{crate}" crate. %files -n %{name}+lazy_static-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+runtime_select-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+runtime_select-devel %{_description} This package contains library source intended for building other packages which use the "runtime_select" feature of the "%{crate}" crate. %files -n %{name}+runtime_select-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}+unaligned_access-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unaligned_access-devel %{_description} This package contains library source intended for building other packages which use the "unaligned_access" feature of the "%{crate}" crate. %files -n %{name}+unaligned_access-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog