From 80307258117aae76787a3d5201a0de1fb55cb802 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 25 Jan 2022 23:20:17 +0100 Subject: [PATCH] drop unused / unsupported nightly feature --- num-bigint-dig-fix-metadata.diff | 9 +++-- rust-num-bigint-dig.spec | 62 ++++++++++++++------------------ 2 files changed, 33 insertions(+), 38 deletions(-) diff --git a/num-bigint-dig-fix-metadata.diff b/num-bigint-dig-fix-metadata.diff index 0003d10..eaa1a7c 100644 --- a/num-bigint-dig-fix-metadata.diff +++ b/num-bigint-dig-fix-metadata.diff @@ -1,6 +1,6 @@ --- num-bigint-dig-0.6.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ num-bigint-dig-0.6.0/Cargo.toml 2020-07-19T11:42:36.349861+00:00 -@@ -85,7 +85,7 @@ ++++ num-bigint-dig-0.6.0/Cargo.toml 2022-01-25T22:19:07.342570+00:00 +@@ -85,12 +85,11 @@ [dev-dependencies.serde_test] version = "1.0" [build-dependencies.autocfg] @@ -9,3 +9,8 @@ [features] default = ["std", "i128", "u64_digit"] + i128 = ["num-integer/i128", "num-traits/i128"] +-nightly = ["rand/nightly"] + prime = ["rand"] + std = ["num-integer/std", "num-traits/std", "smallvec/write", "rand/std", "serde/std"] + u64_digit = [] diff --git a/rust-num-bigint-dig.spec b/rust-num-bigint-dig.spec index f96f851..01ad439 100644 --- a/rust-num-bigint-dig.spec +++ b/rust-num-bigint-dig.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} @@ -6,20 +6,19 @@ Name: rust-%{crate} Version: 0.6.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Big integer implementation for Rust # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/num-bigint-dig Source: %{crates_source} -# Update autocfg to 1.0.0 +# Initial patched metadata +# * bump autocfg from 0.1.5 to 1.0.0 +# * drop unused / unsupported nightly feature Patch0: num-bigint-dig-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -34,8 +33,8 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT @@ -48,8 +47,8 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -60,32 +59,20 @@ BuildArch: noarch %description -n %{name}+i128-devel %{_description} -This package contains library source intended for building other packages -which use "i128" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "i128" feature of the "%{crate}" crate. %files -n %{name}+i128-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+nightly-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+nightly-devel %{_description} - -This package contains library source intended for building other packages -which use "nightly" feature of "%{crate}" crate. - -%files -n %{name}+nightly-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+prime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+prime-devel %{_description} -This package contains library source intended for building other packages -which use "prime" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "prime" feature of the "%{crate}" crate. %files -n %{name}+prime-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -96,8 +83,8 @@ BuildArch: noarch %description -n %{name}+rand-devel %{_description} -This package contains library source intended for building other packages -which use "rand" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "rand" feature of the "%{crate}" crate. %files -n %{name}+rand-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -108,8 +95,8 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -120,8 +107,8 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -132,8 +119,8 @@ BuildArch: noarch %description -n %{name}+u64_digit-devel %{_description} -This package contains library source intended for building other packages -which use "u64_digit" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "u64_digit" feature of the "%{crate}" crate. %files -n %{name}+u64_digit-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -144,8 +131,8 @@ BuildArch: noarch %description -n %{name}+zeroize-devel %{_description} -This package contains library source intended for building other packages -which use "zeroize" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "zeroize" feature of the "%{crate}" crate. %files -n %{name}+zeroize-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -169,6 +156,9 @@ which use "zeroize" feature of "%{crate}" crate. %endif %changelog +* Tue Jan 25 2022 Fabio Valentini - 0.6.0-8 +- Drop unused / unsupported nightly feature. + * Fri Jan 21 2022 Fedora Release Engineering - 0.6.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild