Notification time stamped 2021-08-28 21:43:12 UTC
From 6635caf37c8dd38775f4726d72fee4a454fd1571 Mon Sep 17 00:00:00 2001 From: Fabio Valentini decathorpe@gmail.com Date: Aug 28 2021 21:14:32 +0000 Subject: Initial import (nom 6 compat package)
---
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c8b2aa4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/nom-6.2.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 874a86b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-nom6 - -The rust-nom6 package diff --git a/nom-fix-metadata.diff b/nom-fix-metadata.diff new file mode 100644 index 0000000..319e3b4 --- /dev/null +++ b/nom-fix-metadata.diff @@ -0,0 +1,87 @@ +--- nom-6.2.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ nom-6.2.1/Cargo.toml 2021-08-28T21:11:38.842304+00:00 +@@ -34,21 +34,6 @@ + + [lib] + bench = false +- +-[[example]] +-name = "json" +-path = "examples/json.rs" +-required-features = ["alloc"] +- +-[[example]] +-name = "s_expression" +-path = "examples/s_expression.rs" +-required-features = ["alloc"] +- +-[[example]] +-name = "string" +-path = "examples/string.rs" +-required-features = ["alloc"] + + [[test]] + name = "arithmetic" +@@ -111,40 +96,6 @@ + name = "fnmut" + required-features = ["alloc"] + +-[[bench]] +-name = "arithmetic" +-path = "benches/arithmetic.rs" +-harness = false +- +-[[bench]] +-name = "number" +-path = "benches/number.rs" +-harness = false +- +-[[bench]] +-name = "http" +-path = "benches/http.rs" +-harness = false +- +-[[bench]] +-name = "ini" +-path = "benches/ini.rs" +-harness = false +- +-[[bench]] +-name = "ini_complete" +-path = "benches/ini_complete.rs" +-harness = false +- +-[[bench]] +-name = "ini_str" +-path = "benches/ini_str.rs" +-harness = false +- +-[[bench]] +-name = "json" +-path = "benches/json.rs" +-harness = false + [dependencies.bitvec] + version = "0.19.3" + optional = true +@@ -164,20 +115,16 @@ + optional = true + + [dependencies.memchr] +-version = ">=2.0, <2.4" ++version = "2.0" + default-features = false + + [dependencies.regex] + version = "^1.0" + optional = true +-[dev-dependencies.criterion] +-version = "0.3" + + [dev-dependencies.doc-comment] + version = "0.3" + +-[dev-dependencies.jemallocator] +-version = "^0.3" + [build-dependencies.version_check] + version = "0.9" + diff --git a/rust-nom6.spec b/rust-nom6.spec new file mode 100644 index 0000000..9a833e3 --- /dev/null +++ b/rust-nom6.spec @@ -0,0 +1,206 @@ +# Generated by rust2rpm 18 +%bcond_without check +%global debug_package %{nil} + +%global crate nom + +Name: rust-%{crate}6 +Version: 6.2.1 +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 +# * relax memchr dependency range (MSRV is not relevant for Fedora) +# * drop benchmarks and examples not shipped with the crate +# * drop criterion dev-dependency (used only in benchmarks) +# * drop unused optional jemallocator dev-dependency +Patch0: nom-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Byte-oriented, zero-copy, parser combinators library.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%doc doc README.md CHANGELOG.md doc/nom_recipes.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages +which use "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+bitvec-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bitvec-devel %{_description} + +This package contains library source intended for building other packages +which use "bitvec" feature of "%{crate}" crate. + +%files -n %{name}+bitvec-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+docsrs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+docsrs-devel %{_description} + +This package contains library source intended for building other packages +which use "docsrs" feature of "%{crate}" crate. + +%files -n %{name}+docsrs-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+funty-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+funty-devel %{_description} + +This package contains library source intended for building other packages +which use "funty" feature of "%{crate}" crate. + +%files -n %{name}+funty-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+lazy_static-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lazy_static-devel %{_description} + +This package contains library source intended for building other packages +which use "lazy_static" feature of "%{crate}" crate. + +%files -n %{name}+lazy_static-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+lexical-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lexical-devel %{_description} + +This package contains library source intended for building other packages +which use "lexical" feature of "%{crate}" crate. + +%files -n %{name}+lexical-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+lexical-core-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lexical-core-devel %{_description} + +This package contains library source intended for building other packages +which use "lexical-core" feature of "%{crate}" crate. + +%files -n %{name}+lexical-core-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+regex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+regex-devel %{_description} + +This package contains library source intended for building other packages +which use "regex" feature of "%{crate}" crate. + +%files -n %{name}+regex-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+regexp-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+regexp-devel %{_description} + +This package contains library source intended for building other packages +which use "regexp" feature of "%{crate}" crate. + +%files -n %{name}+regexp-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%ifarch %{ix86} %{arm} +# skip a test with wrong overflow behaviour on 32-bit architectures +# https://github.com/Geal/nom/issues/1278 +%cargo_test -- -- --skip issue_848_overflow_incomplete_bits_to_bytes +%else +%cargo_test +%endif +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..fdd1003 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nom-6.2.1.crate) = d881cb1162b5e5752931ea40b7806c628e08733960d20d739c7527785de507f76c4a0b041d1072c4f2c137083a2da982cf9f371fa822896d6092a1a5bda34f46
https://src.fedoraproject.org/rpms/rust-nom6/c/6635caf37c8dd38775f4726d72fee...
scm-commits@lists.fedoraproject.org