# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate dmidecode Name: rust-dmidecode Version: 1.0.1 Release: 1%{?dist} Summary: Decode SMBIOS/DMI information into accessible data structures License: MIT URL: https://crates.io/crates/dmidecode Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Decode SMBIOS/DMI information into accessible data structures.} %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}+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 %install %cargo_install %if %{with check} %check # bitfield::tests::from_iterator_shift_overflow expects an integer overflow # panic, which only happens when overflow checks are on. The rpm profile used # by %%cargo_test uses a release-build profile without these checks enabled, so # the test fails. # Remove once fixed upstream: https://github.com/jcreekmore/dmidecode/issues/57 export CARGO_PROFILE_RPM_OVERFLOW_CHECKS=true %cargo_test %endif %changelog * Sun Nov 22 2026 Rafi Goldhammer-Baum - 1.0.1-1 - Initial package