# Generated by rust2rpm 26 # * missing dev-dependency: empfindung %bcond_with check %global debug_package %{nil} %global crate ansi_colours Name: rust-ansi_colours Version: 1.2.3 Release: %autorelease Summary: True-colour ↔ ANSI terminal palette converter License: LGPL-3.0-or-later URL: https://crates.io/crates/ansi_colours Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * relax termcolor dependency to allow versions >= 1.2 Patch: ansi_colours-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: True-colour ↔ ANSI terminal palette converter.} %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 %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_term-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ansi_term-devel %{_description} This package contains library source intended for building other packages which use the "ansi_term" feature of the "%{crate}" crate. %files -n %{name}+ansi_term-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+anstyle-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+anstyle-devel %{_description} This package contains library source intended for building other packages which use the "anstyle" feature of the "%{crate}" crate. %files -n %{name}+anstyle-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rgb-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rgb-devel %{_description} This package contains library source intended for building other packages which use the "rgb" feature of the "%{crate}" crate. %files -n %{name}+rgb-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+termcolor-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+termcolor-devel %{_description} This package contains library source intended for building other packages which use the "termcolor" feature of the "%{crate}" crate. %files -n %{name}+termcolor-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog