From fe94477347edf9cd700204728eb8222e5484ced0 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Wed, 20 Mar 2024 15:45:34 -0500 Subject: [PATCH] Initial package (rhbz#2270528) Signed-off-by: Michel Lind --- .gitignore | 1 + rust-supports-color2.spec | 70 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 rust-supports-color2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b78286f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/supports-color-2.1.0.crate diff --git a/rust-supports-color2.spec b/rust-supports-color2.spec new file mode 100644 index 0000000..da0e8ab --- /dev/null +++ b/rust-supports-color2.spec @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..6cbbd50 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (supports-color-2.1.0.crate) = 29438ef0cd6705b9bc4b5bd1a04383266eaf18d41d2328c35da63d12bafc7150ba01b37253f51fa9ca356279e8bdb8c381843801500ea4e58fce9fef119ca2be