# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate bitmaps Name: rust-bitmaps Version: 2.1.0 Release: %autorelease Summary: Fixed size boolean arrays License: MPL-2.0 URL: https://crates.io/crates/bitmaps Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * fix invalid SPDX identifier in crate license: # https://github.com/bodil/bitmaps/issues/24 # * bump proptest dev-dependency from 0.9 to 1.0 # * bump proptest-derive dev-dependency from 0.1 to 0.3 Patch: bitmaps-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: Fixed size boolean arrays.} %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}/LICENCE.md %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.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}+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_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