public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-tera] rawhide: Update to version 2.4.0; Fixes RHBZ#2531901
Date: Thu, 08 Oct 2026 11:22:57 GMT	[thread overview]
Message-ID: <179145857761.1.7613573432597503382.rpms-rust-tera-8ebd46780577@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-tera
Branch : rawhide
Commit : 8ebd46780577f955cac22b274eb3c076333a498c
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-10-07T21:40:50+01:00
Stats  : +5/-175 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-tera/c/8ebd46780577f955cac22b274eb3c076333a498c?branch=rawhide

Log:
Update to version 2.4.0; Fixes RHBZ#2531901

---
diff --git a/0001-Only-run-parsing-instructions-tests-test_size-on-64-.patch b/0001-Only-run-parsing-instructions-tests-test_size-on-64-.patch
deleted file mode 100644
index 9735e37..0000000
--- a/0001-Only-run-parsing-instructions-tests-test_size-on-64-.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From c92d561b06b9c612c46dc79ca412c83753279c14 Mon Sep 17 00:00:00 2001
-From: "Benjamin A. Beasley" <code@musicinmybrain.net>
-Date: Tue, 1 Sep 2026 11:31:51 +0100
-Subject: [PATCH] Only run parsing::instructions::tests::test_size on 64-bit
- targets
-
----
- src/parsing/instructions.rs | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/parsing/instructions.rs b/src/parsing/instructions.rs
-index 2d0cb58..fab245f 100644
---- a/src/parsing/instructions.rs
-+++ b/src/parsing/instructions.rs
-@@ -348,6 +348,8 @@ impl fmt::Debug for Chunk {
- mod tests {
-     use super::*;
- 
-+    // Expected size is based on a typical 64-bit target
-+    #[cfg(target_pointer_width = "64")]
-     #[test]
-     fn test_size() {
-         assert_eq!(std::mem::size_of::<Instruction>(), 32);
--- 
-2.55.0
-

diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index dfa35b4..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2025 Vincent Prouillet
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-

diff --git a/rust-tera.spec b/rust-tera.spec
index 7956aa5..c936c73 100644
--- a/rust-tera.spec
+++ b/rust-tera.spec
@@ -5,28 +5,16 @@
 %global crate tera
 
 Name:           rust-tera
-Version:        2.3.0
+Version:        2.4.0
 Release:        %autorelease
 Summary:        Template engine for Rust based on Jinja2/Django
 
 License:        MIT
 URL:            https://crates.io/crates/tera
 Source:         %{crates_source}
-# * Fix missing license text in published crates
-# * https://github.com/Keats/tera/pull/1031
-Source10:       https://github.com/Keats/tera/raw/refs/tags/v%{version}/LICENSE
 # Manually created patch for downstream crate metadata changes
 # * Remove unused, benchmark-only dev-dependency on criterion
-# * Explicitly specify the serde/derive dev-dependency (and stop using
-#   serde_derive directly): https://github.com/Keats/tera/pull/1032
 Patch:          tera-fix-metadata.diff
-# * Stop using serde_derive directly
-# * https://github.com/Keats/tera/pull/1032
-Patch10:        tera-2.3.0-serde_derive.patch
-# * Only run parsing::instructions::tests::test_size on 64-bit targets
-# * https://github.com/Keats/tera/pull/1033
-# * Exported with git format-patch --relative to apply to the published crate
-Patch11:        0001-Only-run-parsing-instructions-tests-test_size-on-64-.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 
@@ -148,7 +136,6 @@ use the "unicode" feature of the "%{crate}" crate.
 %prep
 %autosetup -n %{crate}-%{version} -p1
 %cargo_prep
-cp --preserve '%{SOURCE10}' .
 
 %generate_buildrequires
 %cargo_generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 6a1144c..7e18f72 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,40 +1,4 @@
 [package]
 cargo-toml-patch-comments = [
     "Remove unused, benchmark-only dev-dependency on criterion",
-    """\
-Explicitly specify the serde/derive dev-dependency \
-(and stop using serde_derive directly): \
-https://github.com/Keats/tera/pull/1032\
-""",
-]
-license-files.include = ["LICENSE"]
-
-[[package.extra-patches]]
-number = 10
-file = "tera-2.3.0-serde_derive.patch"
-comments = [
-    "Stop using serde_derive directly",
-    "https://github.com/Keats/tera/pull/1032",
-]
-
-[[package.extra-patches]]
-number = 11
-file = "0001-Only-run-parsing-instructions-tests-test_size-on-64-.patch"
-comments = [
-    "Only run parsing::instructions::tests::test_size on 64-bit targets",
-    "https://github.com/Keats/tera/pull/1033",
-    "Exported with git format-patch --relative to apply to the published crate",
-]
-
-[[package.extra-sources]]
-number = 10
-file = "https://github.com/Keats/tera/raw/refs/tags/v%{version}/LICENSE"
-comments = [
-    "Fix missing license text in published crates",
-    "https://github.com/Keats/tera/pull/1031",
-]
-
-[scripts.prep]
-post = [
-    "cp --preserve '%{SOURCE10}' .",
 ]

diff --git a/sources b/sources
index 583268a..4d5fc69 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tera-2.3.0.crate) = 68a313472bf99c6ee4d8c8d2e716f95f7df3fde436b8db06c89d679956428e6b1ef75297ed40fceba578fcf0c42908f3a8d93151761a422ca3e2511a1f9c48cd
+SHA512 (tera-2.4.0.crate) = 304a92602f7e84d20c4ad56cfb8f27293efd5a994731dfeea9b6d7b78658650f3a5ca7bcf7d6d55ecb1d2393c870017ada9476dd50c20a1621fa72d2e571d01d

diff --git a/tera-2.3.0-serde_derive.patch b/tera-2.3.0-serde_derive.patch
deleted file mode 100644
index f68fd96..0000000
--- a/tera-2.3.0-serde_derive.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-diff --git a/benches/templates.rs b/benches/templates.rs
-index cdcf0c9..0e54a20 100644
---- a/benches/templates.rs
-+++ b/benches/templates.rs
-@@ -2,7 +2,7 @@ use std::hint::black_box;
- 
- use criterion::{Criterion, criterion_group, criterion_main};
- 
--use serde_derive::Serialize;
-+use serde::Serialize;
- 
- use tera::{Context, Tera};
- 
-diff --git a/benches/value.rs b/benches/value.rs
-index 9abb9e0..b55c126 100644
---- a/benches/value.rs
-+++ b/benches/value.rs
-@@ -2,7 +2,7 @@ use std::hint::black_box;
- use std::path::PathBuf;
- 
- use criterion::{Criterion, criterion_group, criterion_main};
--use serde_derive::Serialize;
-+use serde::Serialize;
- 
- use tera::value::Value;
- 
-diff --git a/src/value/de.rs b/src/value/de.rs
-index e6b4b2b..bf8115b 100644
---- a/src/value/de.rs
-+++ b/src/value/de.rs
-@@ -244,7 +244,7 @@ impl<'de> de::Deserializer<'de> for &Value {
- mod tests {
-     use super::*;
-     use serde::Deserialize;
--    use serde_derive::Serialize;
-+    use serde::Serialize;
- 
-     #[derive(Debug, Serialize, Deserialize, PartialEq)]
-     enum Kind {
-diff --git a/src/value/ser.rs b/src/value/ser.rs
-index fecc897..efaee38 100644
---- a/src/value/ser.rs
-+++ b/src/value/ser.rs
-@@ -632,7 +632,7 @@ mod tests {
- 
-     #[test]
-     fn from_serializable_nested_values_are_cloned() {
--        #[derive(serde_derive::Serialize)]
-+        #[derive(serde::Serialize)]
-         struct Section {
-             name: &'static str,
-             children: Vec<Value>,
-diff --git a/tests/undefined.rs b/tests/undefined.rs
-index d22c5e9..b9301a3 100644
---- a/tests/undefined.rs
-+++ b/tests/undefined.rs
-@@ -1,6 +1,6 @@
- use std::collections::BTreeMap;
- 
--use serde_derive::Serialize;
-+use serde::Serialize;
- 
- use tera::{Context, Tera, Value};
- 

diff --git a/tera-fix-metadata.diff b/tera-fix-metadata.diff
index e09db91..9cd0b73 100644
--- a/tera-fix-metadata.diff
+++ b/tera-fix-metadata.diff
@@ -1,6 +1,6 @@
---- tera-2.3.0/Cargo.toml	2006-07-24T01:21:28+00:00
-+++ tera-2.3.0/Cargo.toml	2026-09-01T10:43:36.360582+00:00
-@@ -135,15 +135,13 @@
+--- tera-2.4.0/Cargo.toml	2006-07-24T01:21:28+00:00
++++ tera-2.4.0/Cargo.toml	2026-10-07T20:39:52.660289+00:00
+@@ -136,9 +136,6 @@
  version = "2.5.0"
  optional = true
  
@@ -10,12 +10,3 @@
  [dev-dependencies.insta]
  version = "1"
  features = ["glob"]
- 
--[dev-dependencies.serde_derive]
--version = "1.0.156"
-+[dev-dependencies.serde]
-+version = "1"
-+features = ["derive"]
- 
- [dev-dependencies.tempfile]
- version = "3"

                 reply	other threads:[~2026-10-08 11:22 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=179145857761.1.7613573432597503382.rpms-rust-tera-8ebd46780577@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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