public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-dtoa-short] epel10: Adapt to new packaging
Date: Mon, 15 Jun 2026 14:13:04 GMT [thread overview]
Message-ID: <178153278402.1.6234605109311379729.rpms-rust-dtoa-short-5108d1db3010@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-dtoa-short
Branch : epel10
Commit : 5108d1db30109006f82524de804e081a275f82c1
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2019-02-10T17:31:39+01:00
Stats : +63/-29 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/rust-dtoa-short/c/5108d1db30109006f82524de804e081a275f82c1?branch=epel10
Log:
Adapt to new packaging
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
diff --git a/dtoa-short-0.3.2-fix-metadata.diff b/dtoa-short-0.3.2-fix-metadata.diff
deleted file mode 100644
index eb73ea9..0000000
--- a/dtoa-short-0.3.2-fix-metadata.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- dtoa-short-0.3.2/Cargo.toml 1970-01-01T01:00:00+01:00
-+++ dtoa-short-0.3.2/Cargo.toml 2018-03-12T09:13:14.397388+01:00
-@@ -23,7 +23,7 @@
- [dependencies.dtoa]
- version = "0.4.1"
- [dev-dependencies.float-cmp]
--version = "0.3"
-+version = "0.4"
- [badges.codecov]
- repository = "upsuper/dtoa-short"
-
diff --git a/dtoa-short-fix-metadata.diff b/dtoa-short-fix-metadata.diff
new file mode 100644
index 0000000..5e24882
--- /dev/null
+++ b/dtoa-short-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- dtoa-short-0.3.2/Cargo.toml 1970-01-01T01:00:00+01:00
++++ dtoa-short-0.3.2/Cargo.toml 2019-02-10T17:30:07.115863+01:00
+@@ -23,7 +23,7 @@
+ [dependencies.dtoa]
+ version = "0.4.1"
+ [dev-dependencies.float-cmp]
+-version = "0.3"
++version = "0.4"
+ [badges.codecov]
+ repository = "upsuper/dtoa-short"
+
diff --git a/rust-dtoa-short.spec b/rust-dtoa-short.spec
index daa47d5..b53ecc4 100644
--- a/rust-dtoa-short.spec
+++ b/rust-dtoa-short.spec
@@ -1,46 +1,62 @@
# Generated by rust2rpm
-%bcond_without check
+%bcond_with check
%global debug_package %{nil}
%global crate dtoa-short
Name: rust-%{crate}
Version: 0.3.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Serialize float number and truncate to certain precision
+# Upstream license specification: MPL-2.0
License: MPLv2.0
URL: https://crates.io/crates/dtoa-short
-Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
+Source: %{crates_source}
# Initial patched metadata
# * Bump float-cmp to 0.4, https://github.com/upsuper/dtoa-short/pull/6
-Patch0: dtoa-short-0.3.2-fix-metadata.diff
+Patch0: dtoa-short-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
-# [dependencies]
-BuildRequires: (crate(dtoa) >= 0.4.1 with crate(dtoa) < 0.5.0)
+BuildRequires: (crate(dtoa/default) >= 0.4.1 with crate(dtoa/default) < 0.5.0)
%if %{with check}
-# [dev-dependencies]
-BuildRequires: (crate(float-cmp) >= 0.4.0 with crate(float-cmp) < 0.5.0)
+BuildRequires: (crate(float-cmp/default) >= 0.4.0 with crate(float-cmp/default) < 0.5.0)
%endif
-%description
-%{summary}.
+%global _description \
+Serialize float number and truncate to certain precision.
+
+%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
-%description devel
-Serialize float number and truncate to certain precision.
+%description devel %{_description}
This package contains library source intended for building other packages
-which use %{crate} from crates.io.
+which use "%{crate}" crate.
+
+%files devel
+%license LICENSE
+%{cargo_registry}/%{crate}-%{version}/
+
+%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}/Cargo.toml
%prep
-%autosetup -n %{crate}-%{version} -p1
+%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
@@ -54,11 +70,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
-%files devel
-%license LICENSE
-%{cargo_registry}/%{crate}-%{version}/
-
%changelog
+* Sun Feb 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.2-5
+- Adapt to new packaging
+
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/tests/.fmf/version b/tests/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/tests/provision.fmf b/tests/provision.fmf
new file mode 100644
index 0000000..503a97c
--- /dev/null
+++ b/tests/provision.fmf
@@ -0,0 +1,5 @@
+---
+standard-inventory-qcow2:
+ qemu:
+ # `cargo test` usually eats more than 1G.
+ m: 4G
diff --git a/tests/tests.yml b/tests/tests.yml
new file mode 100644
index 0000000..7ba7308
--- /dev/null
+++ b/tests/tests.yml
@@ -0,0 +1,13 @@
+---
+- hosts: localhost
+ roles:
+ - role: standard-test-basic
+ tags:
+ - classic
+ repositories:
+ - repo: "https://src.fedoraproject.org/tests/rust.git"
+ dest: rust
+ tests:
+ - rust/cargo-test
+ environment:
+ pkg: rust-dtoa-short
reply other threads:[~2026-06-15 14:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178153278402.1.6234605109311379729.rpms-rust-dtoa-short-5108d1db3010@fedoraproject.org \
--to=ignatenkobrain@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox