From 359fe6385e60096123dfb75e35b2aaba15b58bed Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 22 Jun 2019 20:30:31 +0200 Subject: [PATCH] Regenerate Signed-off-by: Igor Gnatenko --- nom-fix-metadata.diff | 14 +++++++++++++- rust-nom.spec | 25 ++++++++++++++----------- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/nom-fix-metadata.diff b/nom-fix-metadata.diff index 459ba3a..80b5b78 100644 --- a/nom-fix-metadata.diff +++ b/nom-fix-metadata.diff @@ -1,5 +1,5 @@ --- nom-4.2.3/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ nom-4.2.3/Cargo.toml 2019-03-23T19:07:34.790946+00:00 ++++ nom-4.2.3/Cargo.toml 2019-06-22T18:31:25.976995+00:00 @@ -92,29 +92,6 @@ [[test]] name = "test1" @@ -30,3 +30,15 @@ [dependencies.lazy_static] version = "^1.0" optional = true +@@ -126,11 +103,6 @@ + [dependencies.regex] + version = "^1.0" + optional = true +-[dev-dependencies.criterion] +-version = "0.2" +- +-[dev-dependencies.jemallocator] +-version = "^0.1" + [build-dependencies.version_check] + version = "^0.1" + diff --git a/rust-nom.spec b/rust-nom.spec index 154d0fd..a3b3403 100644 --- a/rust-nom.spec +++ b/rust-nom.spec @@ -1,5 +1,5 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate nom @@ -9,6 +9,7 @@ Version: 4.2.3 Release: 1%{?dist} Summary: Byte-oriented, zero-copy, parser combinators library +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/nom Source: %{crates_source} @@ -17,18 +18,14 @@ Source: %{crates_source} Patch0: nom-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(memchr) >= 2.0.0 with crate(memchr) < 3.0.0) -BuildRequires: (crate(memchr/use_std) >= 2.0.0 with crate(memchr/use_std) < 3.0.0) -BuildRequires: (crate(version_check/default) >= 0.1.0 with crate(version_check/default) < 0.2.0) -%if %{with check} -BuildRequires: (crate(criterion/default) >= 0.2.0 with crate(criterion/default) < 0.3.0) -BuildRequires: (crate(jemallocator/default) >= 0.1.0 with crate(jemallocator/default) < 0.2.0) -%endif -%global _description \ -A byte-oriented, zero-copy, parser combinators library. +%global _description %{expand: +Byte-oriented, zero-copy, parser combinators library.} %description %{_description} @@ -146,6 +143,9 @@ which use "verbose-errors" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -158,6 +158,9 @@ which use "verbose-errors" feature of "%{crate}" crate. %endif %changelog +* Sat Jun 22 20:30:03 CEST 2019 Igor Gnatenko - 4.2.3-2 +- Regenerate + * Sat Mar 23 20:07:35 CET 2019 Igor Gnatenko - 4.2.3-1 - Update to 4.2.3