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

224 lines
6.1 KiB

# Generated by rust2rpm 21
%bcond_without check
%global debug_package %{nil}
%global crate concolor
Name: rust-%{crate}
Version: 0.0.8
Release: %autorelease
Summary: Control console coloring across all dependencies
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/concolor
Source: %{crates_source}
# Ensure license files are included in packaged crates
# https://github.com/rust-cli/concolor/pull/11
Source: https://github.com/rust-cli/concolor/raw/0e0a0c58ad3a97e9722a02a9a3f1fb8a6cf26e4f/LICENSE-APACHE
Source: https://github.com/rust-cli/concolor/raw/0e0a0c58ad3a97e9722a02a9a3f1fb8a6cf26e4f/LICENSE-MIT
# Backport of https://github.com/rust-cli/concolor/pull/10
Patch: concolor-doc-test-fix.patch
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
%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}+atty-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+atty-devel %{_description}
This package contains library source intended for building other packages which
use the "atty" feature of the "%{crate}" crate.
%files -n %{name}+atty-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
%package -n %{name}+windows-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+windows-devel %{_description}
This package contains library source intended for building other packages which
use the "windows" feature of the "%{crate}" crate.
%files -n %{name}+windows-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
cp -p %SOURCE1 %SOURCE2 .
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog