From d4540e0c3adb25299800c50cef6f795b99c145a8 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Jan 28 2023 22:25:36 +0000 Subject: Update to version 7.1.3; Fixes RHBZ#2157285 --- diff --git a/.gitignore b/.gitignore index ea507de..19c811d 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /nom-7.0.0.crate /nom-7.1.0.crate /nom-7.1.1.crate +/nom-7.1.3.crate diff --git a/nom-fix-metadata.diff b/nom-fix-metadata.diff index b487d2a..17526d1 100644 --- a/nom-fix-metadata.diff +++ b/nom-fix-metadata.diff @@ -1,16 +1,26 @@ ---- nom-7.1.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ nom-7.1.1/Cargo.toml 2022-03-17T21:43:47.840913+00:00 -@@ -31,25 +31,6 @@ +--- nom-7.1.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ nom-7.1.3/Cargo.toml 2023-01-28T21:50:33.035844+00:00 +@@ -53,35 +53,6 @@ lto = true codegen-units = 1 debug = true - -[[example]] +-name = "custom_error" +-path = "examples/custom_error.rs" +-required-features = ["alloc"] +- +-[[example]] -name = "json" -path = "examples/json.rs" -required-features = ["alloc"] - -[[example]] +-name = "json_iterator" +-path = "examples/json_iterator.rs" +-required-features = ["alloc"] +- +-[[example]] -name = "iterator" -path = "examples/iterator.rs" - diff --git a/rust-nom.spec b/rust-nom.spec index d84921a..a97d7ee 100644 --- a/rust-nom.spec +++ b/rust-nom.spec @@ -1,25 +1,20 @@ -# Generated by rust2rpm 21 -# * temporarily disable tests to work around codegen issues with LLVM 12: -# https://bugzilla.redhat.com/show_bug.cgi?id=2020861 -%bcond_with check +# Generated by rust2rpm 23 +%bcond_without check %global debug_package %{nil} %global crate nom -Name: rust-%{crate} -Version: 7.1.1 +Name: rust-nom +Version: 7.1.3 Release: %autorelease Summary: Byte-oriented, zero-copy, parser combinators library -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/nom Source: %{crates_source} -# Initial patched metadata -# * drop examples that are not shipped with the crate -Patch0: nom-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# Manually created patch for downstream crate metadata changes +# * drop references to example code that is not shipped with the crate +Patch: nom-fix-metadata.diff BuildRequires: rust-packaging >= 21 diff --git a/sources b/sources index cfe2ffb..d10b76e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nom-7.1.1.crate) = 1456efdbda4f5b3da6c8580721acf101ed7d779619ee0190c1df103244e405a8ffa0c3889901a2d8beeab0ab84074ed4c7cec5330c7cc2a5a3c30e36a2530be8 +SHA512 (nom-7.1.3.crate) = 1ffce08dde299bc0e0367ad59c7b6a83e23decfa11115ee076ab91ec53cdd9ef37e4c2103c96eff23a7b6b8b5c3f67c83ce1917928c7d4c6462083bdfa0c9cad