# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate hexf-parse Name: rust-hexf-parse Version: 0.2.1 Release: %autorelease Summary: Parses hexadecimal floats (see also hexf) # The included patches bring this package to the exact state of the hexf-parse # subproject *after* the project was relicensed from CC0-1.0 to 0BSD: # https://github.com/lifthrasiir/hexf/commits/8a14eb6/parse License: 0BSD URL: https://crates.io/crates/hexf-parse Source: %{crates_source} # https://github.com/lifthrasiir/hexf/pull/27 Source: https://github.com/lifthrasiir/hexf/raw/f43eda3/LICENSE # Manually created patch for downstream crate metadata changes # * backport upstream change: use libm crate for exp2 # https://github.com/lifthrasiir/hexf/commit/55d8ea4 # * backport upstream change: relicense to 0BSD # https://github.com/lifthrasiir/hexf/commit/8a14eb6 Patch: hexf-parse-fix-metadata.diff Patch: 0001-backport-upstream-commit-55d8ea4.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Parses hexadecimal floats (see also hexf).} %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 %{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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp -pav %{SOURCE1} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog