You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-concolor/rust-concolor.spec

195 lines
5.1 KiB

# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate concolor
Name: rust-concolor
Version: 0.0.11
Release: %autorelease
Summary: Control console coloring across all dependencies
License: MIT OR Apache-2.0
URL: https://crates.io/crates/concolor
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * remove Windows-specific features
Patch: concolor-fix-metadata.diff
# * fix missing cfg-gate for a doctest
Patch: concolor-doc-test-fix.patch
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Control console coloring across all dependencies.}
%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}/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}+api_unstable-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+api_unstable-devel %{_description}
This package contains library source intended for building other packages which
use the "api_unstable" feature of the "%{crate}" crate.
%files -n %{name}+api_unstable-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+auto-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+auto-devel %{_description}
This package contains library source intended for building other packages which
use the "auto" feature of the "%{crate}" crate.
%files -n %{name}+auto-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+bitflags-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bitflags-devel %{_description}
This package contains library source intended for building other packages which
use the "bitflags" feature of the "%{crate}" crate.
%files -n %{name}+bitflags-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+clicolor-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+clicolor-devel %{_description}
This package contains library source intended for building other packages which
use the "clicolor" feature of the "%{crate}" crate.
%files -n %{name}+clicolor-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+concolor-query-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+concolor-query-devel %{_description}
This package contains library source intended for building other packages which
use the "concolor-query" feature of the "%{crate}" crate.
%files -n %{name}+concolor-query-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+core-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+core-devel %{_description}
This package contains library source intended for building other packages which
use the "core" feature of the "%{crate}" crate.
%files -n %{name}+core-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+interactive-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+interactive-devel %{_description}
This package contains library source intended for building other packages which
use the "interactive" feature of the "%{crate}" crate.
%files -n %{name}+interactive-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+no_color-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+no_color-devel %{_description}
This package contains library source intended for building other packages which
use the "no_color" feature of the "%{crate}" crate.
%files -n %{name}+no_color-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
%package -n %{name}+term-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+term-devel %{_description}
This package contains library source intended for building other packages which
use the "term" feature of the "%{crate}" crate.
%files -n %{name}+term-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog