Initial package (rhbz#2270528)

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
epel10
Michel Lind 10 months ago
parent 3021076a5a
commit fe94477347
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

1
.gitignore vendored

@ -0,0 +1 @@
/supports-color-2.1.0.crate

@ -0,0 +1,70 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate supports-color
Name: rust-supports-color2
Version: 2.1.0
Release: %autorelease
Summary: Detects whether a terminal supports color, and gives details about that support
License: Apache-2.0
URL: https://crates.io/crates/supports-color
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Detects whether a terminal supports color, and gives details about that
support.}
%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}/CHANGELOG.md
%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
%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

@ -0,0 +1 @@
SHA512 (supports-color-2.1.0.crate) = 29438ef0cd6705b9bc4b5bd1a04383266eaf18d41d2328c35da63d12bafc7150ba01b37253f51fa9ca356279e8bdb8c381843801500ea4e58fce9fef119ca2be
Loading…
Cancel
Save