# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate bumpalo
Name: rust-bumpalo
Version: 3.16.0
Release: %autorelease
Summary: Fast bump allocation arena for Rust
License: MIT OR Apache-2.0
URL: https://crates.io/crates/bumpalo
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop tests and benchmarks that are not included in published crates
# * drop unused, benchmark-only criterion dev-dependency
Patch: bumpalo-fix-metadata.diff
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
A fast bump allocation arena for Rust.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+allocator-api2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+allocator-api2-devel %{_description}
This package contains library source intended for building other packages which
use the "allocator-api2" feature of the "%{crate}" crate.
%files -n %{name}+allocator-api2-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+allocator_api-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+allocator_api-devel %{_description}
This package contains library source intended for building other packages which
use the "allocator_api" feature of the "%{crate}" crate.
%files -n %{name}+allocator_api-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+boxed-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+boxed-devel %{_description}
This package contains library source intended for building other packages which
use the "boxed" feature of the "%{crate}" crate.
%files -n %{name}+boxed-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+collections-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+collections-devel %{_description}
This package contains library source intended for building other packages which
use the "collections" feature of the "%{crate}" crate.
%files -n %{name}+collections-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-devel %{_description}
This package contains library source intended for building other packages which
use the "serde" feature of the "%{crate}" crate.
%files -n %{name}+serde-devel
%ghost %{crate_instdir}/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 the "std" feature of the "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
# remove stray executable bit
# https://github.com/fitzgen/bumpalo/pull/249
chmod -x src/lib.rs
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog