From 9a839c333e56622e187bd5f444c283a9f721d07f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 13 Jun 2023 00:20:50 +0200 Subject: [PATCH] Initial import (dtoa 0.4 compat package) --- .gitignore | 1 + README.md | 3 --- rust-dtoa0.4.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-dtoa0.4.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b4aeb7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dtoa-0.4.8.crate diff --git a/README.md b/README.md deleted file mode 100644 index abe972b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-dtoa0.4 - -The rust-dtoa0.4 package diff --git a/rust-dtoa0.4.spec b/rust-dtoa0.4.spec new file mode 100644 index 0000000..4eb2ec1 --- /dev/null +++ b/rust-dtoa0.4.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate dtoa + +Name: rust-dtoa0.4 +Version: 0.4.8 +Release: %autorelease +Summary: Fast functions for printing floating-point primitives to an io::Write + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/dtoa +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Fast functions for printing floating-point primitives to an io::Write.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..fcfd042 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dtoa-0.4.8.crate) = fe1701ba2c40988b92f5f4ef78a8c81718b140ff8ca2d04023b09a89440e6ddb53ef36d1ebd9dd3e948428b361ed6611bd24ec1a31b5010c220c555e1f0bf6b8