public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-timeago] f45: Regenerate with rust2rpm v28
@ 2026-08-29 15:27 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-08-29 15:27 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-timeago
Branch : f45
Commit : 438c1b823d0cfb4ae762d73dc788ecc6a6edfe12
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2026-08-29T17:20:57+02:00
Stats : +21/-13 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rust-timeago/c/438c1b823d0cfb4ae762d73dc788ecc6a6edfe12?branch=f45
Log:
Regenerate with rust2rpm v28
---
diff --git a/rust-timeago.spec b/rust-timeago.spec
index 079c960..d159d40 100644
--- a/rust-timeago.spec
+++ b/rust-timeago.spec
@@ -1,7 +1,10 @@
-# Generated by rust2rpm 24
-%bcond_without check
+# Generated by rust2rpm 28
+%bcond check 1
%global debug_package %{nil}
+# prevent executables from being installed
+%global cargo_install_bin 0
+
%global crate timeago
Name: rust-timeago
@@ -13,11 +16,10 @@ License: MIT OR Apache-2.0
URL: https://crates.io/crates/timeago
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
-# * prevent unwanted binary from being built and shipped
# * remove unused support for ISO 639 language codes
Patch: timeago-fix-metadata.diff
-BuildRequires: rust-packaging >= 21
+BuildRequires: cargo-rpm-macros >= 26
%global _description %{expand:
Given a Duration, lossily format it like in 'N days ago'. Parsing it
@@ -77,7 +79,7 @@ use the "translations" feature of the "%{crate}" crate.
%ghost %{crate_instdir}/Cargo.toml
%prep
-%autosetup -n %{crate}-%{version_no_tilde} -p1
+%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..ec43d46
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,6 @@
+[package]
+cargo-install-bin = false
+cargo-toml-patch-comments = [
+ "remove unused support for ISO 639 language codes",
+]
+
diff --git a/timeago-fix-metadata.diff b/timeago-fix-metadata.diff
index 4c67fad..a33fa1b 100644
--- a/timeago-fix-metadata.diff
+++ b/timeago-fix-metadata.diff
@@ -1,14 +1,14 @@
--- timeago-0.4.2/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ timeago-0.4.2/Cargo.toml 2023-09-18T21:46:53.398582+00:00
-@@ -18,6 +18,7 @@
- readme = "README.md"
- license = "MIT OR Apache-2.0"
- repository = "https://github.com/vi/timeago"
-+autobins = false
-
++++ timeago-0.4.2/Cargo.toml 2026-08-29T15:19:25.068434+00:00
+@@ -22,7 +22,6 @@
[package.metadata.docs.rs]
features = [
-@@ -30,14 +31,9 @@
+ "translations",
+- "isolang",
+ "chrono",
+ ]
+
+@@ -30,14 +29,9 @@
version = "0.4"
optional = true
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-29 15:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-29 15:27 [rpms/rust-timeago] f45: Regenerate with rust2rpm v28 Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox