## START: Set by rpmautospec ## (rpmautospec version 0.6.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 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 ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 0.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 04 2024 Fabio Valentini - 0.2.1-1 - Initial import (#2255554) ## END: Generated by rpmautospec