|
|
@ -1,11 +1,11 @@
|
|
|
|
# Generated by rust2rpm 16
|
|
|
|
# Generated by rust2rpm 18
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate nom
|
|
|
|
%global crate nom
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 6.1.2
|
|
|
|
Version: 6.2.1
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Byte-oriented, zero-copy, parser combinators library
|
|
|
|
Summary: Byte-oriented, zero-copy, parser combinators library
|
|
|
|
|
|
|
|
|
|
|
@ -14,8 +14,10 @@ License: MIT
|
|
|
|
URL: https://crates.io/crates/nom
|
|
|
|
URL: https://crates.io/crates/nom
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# Initial patched metadata
|
|
|
|
|
|
|
|
# * relax memchr dependency range (MSRV is not relevant for Fedora)
|
|
|
|
# * drop benchmarks and examples not shipped with the crate
|
|
|
|
# * drop benchmarks and examples not shipped with the crate
|
|
|
|
# * drop optional jemallocator dev-dependency (not packaged)
|
|
|
|
# * drop criterion dev-dependency (used only in benchmarks)
|
|
|
|
|
|
|
|
# * drop unused optional jemallocator dev-dependency
|
|
|
|
Patch0: nom-fix-metadata.diff
|
|
|
|
Patch0: nom-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
@ -41,7 +43,7 @@ which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
%doc doc README.md CHANGELOG.md doc/nom_recipes.md
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
%package -n %{name}+default-devel
|
|
|
@ -196,15 +198,9 @@ which use "std" feature of "%{crate}" crate.
|
|
|
|
# https://github.com/Geal/nom/issues/1278
|
|
|
|
# https://github.com/Geal/nom/issues/1278
|
|
|
|
%cargo_test -- -- --skip issue_848_overflow_incomplete_bits_to_bytes
|
|
|
|
%cargo_test -- -- --skip issue_848_overflow_incomplete_bits_to_bytes
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%ifarch aarch64
|
|
|
|
|
|
|
|
# skip doctests when rustdoc fails to compile tests on aarch64
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1902663
|
|
|
|
|
|
|
|
%cargo_test -- --lib
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%cargo_test
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
%autochangelog
|
|
|
|
%autochangelog
|
|
|
|