# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate testing_table Name: rust-testing_table Version: 0.1.1 Release: %autorelease Summary: Easy to use library for pretty print tables of Rust structs and enums License: MIT URL: https://crates.io/crates/testing_table Source: %{crates_source} # add missing license file # see https://github.com/zhiburt/tabled/pull/449 Source: https://github.com/zhiburt/tabled/blob/v0.15.1/tabled/LICENSE-MIT # Manually created patch for downstream crate metadata changes # * relax unicode-width dependency from =0.1.11 to 0.1.11 Patch: testing_table-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: An easy to use library for pretty print tables of Rust `struct`s and `enum`s.} %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-MIT %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}+ansi-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ansi-devel %{_description} This package contains library source intended for building other packages which use the "ansi" feature of the "%{crate}" crate. %files -n %{name}+ansi-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ansitok-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ansitok-devel %{_description} This package contains library source intended for building other packages which use the "ansitok" feature of the "%{crate}" crate. %files -n %{name}+ansitok-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 # copy in license file cp -p %{SOURCE1} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog