diff --git a/.gitignore b/.gitignore index c5b66a6..0b7b35e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /nom-4.1.0.crate /nom-4.1.1.crate /nom-4.2.0.crate +/nom-4.2.1.crate diff --git a/nom-fix-metadata.diff b/nom-fix-metadata.diff new file mode 100644 index 0000000..355bd01 --- /dev/null +++ b/nom-fix-metadata.diff @@ -0,0 +1,32 @@ +--- nom-4.2.1/Cargo.toml 1969-12-31T16:00:00-08:00 ++++ nom-4.2.1/Cargo.toml 2019-02-28T12:19:38.703284-08:00 +@@ -92,29 +92,6 @@ + [[test]] + name = "test1" + +-[[bench]] +-name = "arithmetic" +-harness = false +- +-[[bench]] +-name = "http" +-harness = false +- +-[[bench]] +-name = "ini" +-harness = false +- +-[[bench]] +-name = "ini_complete" +-harness = false +- +-[[bench]] +-name = "ini_str" +-harness = false +- +-[[bench]] +-name = "json" +-harness = false + [dependencies.lazy_static] + version = "^1.0" + optional = true diff --git a/rust-nom.spec b/rust-nom.spec index d13471b..c2075cf 100644 --- a/rust-nom.spec +++ b/rust-nom.spec @@ -5,13 +5,16 @@ %global crate nom Name: rust-%{crate} -Version: 4.2.0 -Release: 3%{?dist} +Version: 4.2.1 +Release: 1%{?dist} Summary: Byte-oriented, zero-copy, parser combinators library License: MIT URL: https://crates.io/crates/nom Source: %{crates_source} +# Initial patched metadata +# * the benches are not included in the package +Patch0: nom-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -21,6 +24,10 @@ 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(regex/default) >= 1.0.0 with crate(regex/default) < 2.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. @@ -153,6 +160,9 @@ which use "verbose-errors" feature of "%{crate}" crate. %endif %changelog +* Thu Feb 28 2019 Josh Stone - 4.2.1-1 +- Update to 4.2.1 + * Mon Feb 11 2019 Igor Gnatenko - 4.2.0-3 - Run tests in infrastructure diff --git a/sources b/sources index 7825137..6eb49e0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nom-4.2.0.crate) = 68c0d7b3db10936fde9569294f885af44a991c8d7caa05628a32aa9e6a9ea3314704b5ab01dd4ccc6fc4a85d1834feb18a85bbaf0b54858b51a065650c365f6a +SHA512 (nom-4.2.1.crate) = cf22de9de56bbcf7d1b75b2c78534c214d35ea30aa1c094bb11406941ebd4c27776a111fedde8df38da73b8831a6b10e7ee89429a36f744f8ecd7a7dbb7d2d1e