# Generated by rust2rpm 10 %bcond_with check %global debug_package %{nil} %global crate nom Name: rust-%{crate}4 Version: 4.2.3 Release: 2%{?dist} 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 # * the benches are not included in the package # * Update version_check to 0.9, https://github.com/Geal/nom/pull/1073 Patch0: nom-fix-metadata.diff # * https://github.com/Geal/nom/issues/966 Patch0001: 0001-only-build-overflow-tests-on-64-bits-arch.patch # * Finish version_check update Patch0002: 0001-chore-Update-version_check-to-0.9.patch 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 CHANGELOG.md %{cargo_registry}/%{crate}-%{version}/ %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}/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}/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}/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}/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}/Cargo.toml %package -n %{name}+regexp_macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+regexp_macros-devel %{_description} This package contains library source intended for building other packages which use "regexp_macros" feature of "%{crate}" crate. %files -n %{name}+regexp_macros-devel %ghost %{cargo_registry}/%{crate}-%{version}/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}/Cargo.toml %package -n %{name}+verbose-errors-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+verbose-errors-devel %{_description} This package contains library source intended for building other packages which use "verbose-errors" feature of "%{crate}" crate. %files -n %{name}+verbose-errors-devel %ghost %{cargo_registry}/%{crate}-%{version}/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 %cargo_test %endif %changelog * Thu Jan 30 2020 Fedora Release Engineering - 4.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 26 11:29:09 CET 2019 Igor Gnatenko - 4.2.3-1 - Initial package