# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate bb8 Name: rust-bb8 Version: 0.8.0 Release: %autorelease Summary: Full-featured async (tokio-based) connection pool (like r2d2) License: MIT URL: https://crates.io/crates/bb8 Source: %{crates_source} # * See https://github.com/djc/bb8/blob/main/LICENSE # * Bug report: https://github.com/djc/bb8/issues/247 # * Will be fixed in 0.9+ Source2: LICENSE # * See https://github.com/djc/bb8/blob/main/README.md # * Will be fixed in 0.9.0 Source3: README.md # Manually created patch for downstream crate metadata changes # * Fix README.md Patch: bb8-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Full-featured async (tokio-based) connection pool (like r2d2).} %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 %{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 %prep %autosetup -n %{crate}-%{version} -p1 cp %{SOURCE2} . cp %{SOURCE3} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install install -m 0644 LICENSE %{buildroot}%{crate_instdir}/LICENSE %if %{with check} %check %cargo_test %endif %changelog %autochangelog