Blame rust-winnow.spec

3aa28d5
# Generated by rust2rpm 26
7b58a4b
%bcond_without check
7b58a4b
%global debug_package %{nil}
7b58a4b
7b58a4b
%global crate winnow
7b58a4b
7b58a4b
Name:           rust-winnow
9069c5f
Version:        0.6.6
7b58a4b
Release:        %autorelease
7b58a4b
Summary:        Byte-oriented, zero-copy, parser combinators library
7b58a4b
7b58a4b
License:        MIT
7b58a4b
URL:            https://crates.io/crates/winnow
7b58a4b
Source:         %{crates_source}
7b58a4b
# Manually created patch for downstream crate metadata changes
532e0d4
# * remove references to benchmark and example binaries from Cargo.toml
b21bab2
# * drop unused, benchmark-only criterion dev-dependency
532e0d4
# * drop dev-dependencies which are only needed for example binaries
7b58a4b
Patch:          winnow-fix-metadata.diff
7b58a4b
7b58a4b
BuildRequires:  cargo-rpm-macros >= 24
7b58a4b
7b58a4b
%global _description %{expand:
7b58a4b
A byte-oriented, zero-copy, parser combinators library.}
7b58a4b
7b58a4b
%description %{_description}
7b58a4b
7b58a4b
%package        devel
7b58a4b
Summary:        %{summary}
7b58a4b
BuildArch:      noarch
7b58a4b
7b58a4b
%description    devel %{_description}
7b58a4b
7b58a4b
This package contains library source intended for building other packages which
7b58a4b
use the "%{crate}" crate.
7b58a4b
7b58a4b
%files          devel
7b58a4b
%license %{crate_instdir}/LICENSE-MIT
7b58a4b
%doc %{crate_instdir}/README.md
7b58a4b
%{crate_instdir}/
7b58a4b
7b58a4b
%package     -n %{name}+default-devel
7b58a4b
Summary:        %{summary}
7b58a4b
BuildArch:      noarch
7b58a4b
7b58a4b
%description -n %{name}+default-devel %{_description}
7b58a4b
7b58a4b
This package contains library source intended for building other packages which
7b58a4b
use the "default" feature of the "%{crate}" crate.
7b58a4b
7b58a4b
%files       -n %{name}+default-devel
7b58a4b
%ghost %{crate_instdir}/Cargo.toml
7b58a4b
7b58a4b
%package     -n %{name}+alloc-devel
7b58a4b
Summary:        %{summary}
7b58a4b
BuildArch:      noarch
7b58a4b
7b58a4b
%description -n %{name}+alloc-devel %{_description}
7b58a4b
7b58a4b
This package contains library source intended for building other packages which
7b58a4b
use the "alloc" feature of the "%{crate}" crate.
7b58a4b
7b58a4b
%files       -n %{name}+alloc-devel
7b58a4b
%ghost %{crate_instdir}/Cargo.toml
7b58a4b
b21bab2
%package     -n %{name}+debug-devel
b21bab2
Summary:        %{summary}
b21bab2
BuildArch:      noarch
b21bab2
b21bab2
%description -n %{name}+debug-devel %{_description}
b21bab2
b21bab2
This package contains library source intended for building other packages which
b21bab2
use the "debug" feature of the "%{crate}" crate.
b21bab2
b21bab2
%files       -n %{name}+debug-devel
b21bab2
%ghost %{crate_instdir}/Cargo.toml
b21bab2
7b58a4b
%package     -n %{name}+simd-devel
7b58a4b
Summary:        %{summary}
7b58a4b
BuildArch:      noarch
7b58a4b
7b58a4b
%description -n %{name}+simd-devel %{_description}
7b58a4b
7b58a4b
This package contains library source intended for building other packages which
7b58a4b
use the "simd" feature of the "%{crate}" crate.
7b58a4b
7b58a4b
%files       -n %{name}+simd-devel
7b58a4b
%ghost %{crate_instdir}/Cargo.toml
7b58a4b
7b58a4b
%package     -n %{name}+std-devel
7b58a4b
Summary:        %{summary}
7b58a4b
BuildArch:      noarch
7b58a4b
7b58a4b
%description -n %{name}+std-devel %{_description}
7b58a4b
7b58a4b
This package contains library source intended for building other packages which
7b58a4b
use the "std" feature of the "%{crate}" crate.
7b58a4b
7b58a4b
%files       -n %{name}+std-devel
7b58a4b
%ghost %{crate_instdir}/Cargo.toml
7b58a4b
7b58a4b
%package     -n %{name}+unstable-doc-devel
7b58a4b
Summary:        %{summary}
7b58a4b
BuildArch:      noarch
7b58a4b
7b58a4b
%description -n %{name}+unstable-doc-devel %{_description}
7b58a4b
7b58a4b
This package contains library source intended for building other packages which
7b58a4b
use the "unstable-doc" feature of the "%{crate}" crate.
7b58a4b
7b58a4b
%files       -n %{name}+unstable-doc-devel
7b58a4b
%ghost %{crate_instdir}/Cargo.toml
7b58a4b
02e47ca
%package     -n %{name}+unstable-recover-devel
02e47ca
Summary:        %{summary}
02e47ca
BuildArch:      noarch
02e47ca
02e47ca
%description -n %{name}+unstable-recover-devel %{_description}
02e47ca
02e47ca
This package contains library source intended for building other packages which
02e47ca
use the "unstable-recover" feature of the "%{crate}" crate.
02e47ca
02e47ca
%files       -n %{name}+unstable-recover-devel
02e47ca
%ghost %{crate_instdir}/Cargo.toml
02e47ca
7b58a4b
%prep
c3afe61
%autosetup -n %{crate}-%{version} -p1
7b58a4b
%cargo_prep
7b58a4b
7b58a4b
%generate_buildrequires
7b58a4b
%cargo_generate_buildrequires
7b58a4b
7b58a4b
%build
7b58a4b
%cargo_build
7b58a4b
7b58a4b
%install
7b58a4b
%cargo_install
7b58a4b
7b58a4b
%if %{with check}
7b58a4b
%check
532e0d4
%cargo_test
7b58a4b
%endif
7b58a4b
7b58a4b
%changelog
7b58a4b
%autochangelog