From 4552b1d20987b4a80fe22fb6873eaf69ea8e2615 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Tue, 21 Jul 2020 19:52:47 +0100 Subject: [PATCH] initial import --- .gitignore | 1 + num-bigint-dig-fix-metadata.diff | 11 ++ rust-num-bigint-dig.spec | 179 +++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 192 insertions(+) create mode 100644 .gitignore create mode 100644 num-bigint-dig-fix-metadata.diff create mode 100644 rust-num-bigint-dig.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e068631 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/num-bigint-dig-*.crate diff --git a/num-bigint-dig-fix-metadata.diff b/num-bigint-dig-fix-metadata.diff new file mode 100644 index 0000000..0003d10 --- /dev/null +++ b/num-bigint-dig-fix-metadata.diff @@ -0,0 +1,11 @@ +--- 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 @@ + [dev-dependencies.serde_test] + version = "1.0" + [build-dependencies.autocfg] +-version = "0.1.5" ++version = "1.0.0" + + [features] + default = ["std", "i128", "u64_digit"] diff --git a/rust-num-bigint-dig.spec b/rust-num-bigint-dig.spec new file mode 100644 index 0000000..d5464ad --- /dev/null +++ b/rust-num-bigint-dig.spec @@ -0,0 +1,179 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate num-bigint-dig + +Name: rust-%{crate} +Version: 0.6.0 +Release: 3%{?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 +Patch0: num-bigint-dig-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Big integer implementation for Rust.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%doc README.md RELEASES.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+i128-devel +Summary: %{summary} +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. + +%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. + +%files -n %{name}+prime-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rand-devel +Summary: %{summary} +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. + +%files -n %{name}+rand-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +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. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+u64_digit-devel +Summary: %{summary} +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. + +%files -n %{name}+u64_digit-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+zeroize-devel +Summary: %{summary} +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. + +%files -n %{name}+zeroize-devel +%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 + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jul 20 2020 Peter Robinson - 0.6.0-3 +- Review Updates + +* Sun Jul 19 2020 Peter Robinson - 0.6.0-2 +- Update autocfg dependency + +* Sun Jul 19 2020 Peter Robinson - 0.6.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6873c9e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (num-bigint-dig-0.6.0.crate) = 11b029c52945dbd460a8736b07affb425a27524fa1f507c39aa035a6fe298863d0b4f09bb8c390f77cd0bd73a65b9e6f010f9882e72c753c457788049d585ccc