diff --git a/.gitignore b/.gitignore index 95b8616..092c85d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /numtoa-0.2.3.crate +/numtoa-0.2.4.crate diff --git a/rust-numtoa.spec b/rust-numtoa.spec index 47e0b28..b21dddb 100644 --- a/rust-numtoa.spec +++ b/rust-numtoa.spec @@ -1,14 +1,12 @@ -# Generated by rust2rpm-9-1.fc31 -# * Tests are not supposed to work with --release -# https://gitlab.com/mmstick/numtoa/issues/11 -%bcond_with check +# Generated by rust2rpm 17 +%bcond_without check %global debug_package %{nil} %global crate numtoa Name: rust-%{crate} -Version: 0.2.3 -Release: 5%{?dist} +Version: 0.2.4 +Release: 1%{?dist} Summary: Convert numbers into stack-allocated byte arrays # Upstream license specification: MIT OR Apache-2.0 @@ -17,11 +15,14 @@ URL: https://crates.io/crates/numtoa Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%global _description \ -Convert numbers into stack-allocated byte arrays. +%global _description %{expand: +Convert numbers into stack-allocated byte arrays.} %description %{_description} @@ -37,7 +38,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE %doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,12 +50,15 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -63,10 +67,15 @@ which use "default" feature of "%{crate}" crate. %if %{with check} %check -%cargo_test +# skip tests that do not panic as expected in release mode +%cargo_test -- -- --skip too_small %endif %changelog +* Tue Jun 22 2021 Fabio Valentini - 0.2.4-1 +- Update to version 0.2.4. +- Fixes RHBZ#1968161 + * Wed Jan 27 2021 Fedora Release Engineering - 0.2.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index c9af7d0..5cb2bcc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (numtoa-0.2.3.crate) = ca59aca61c7c7e1e9d67106f340f5ea968bb3b2da84e0ba22b0ebcf7199d9c2bc8a438b89f8da8c42ab371f2eff3a89016fff44e19ed55d949c8d182f4fb0bca +SHA512 (numtoa-0.2.4.crate) = d627d2ea465c81b768545a1ed1770d5a567f0cd6fb19e819717ba31d795c47296f1575c56d767a7f7535c83c65d81482cbfda8d1c8e711c209e76ab813065b4a