Notification time stamped 2023-11-15 19:14:17 UTC
From 439a1951165d2d68588514521ac79b8a1e2602da Mon Sep 17 00:00:00 2001
From: Leo Puvilland <leo(a)craftcat.dev>
Date: Nov 15 2023 16:59:58 +0000
Subject: Initial import (fedora#2249439).
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2321d85
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/colorgrad-0.6.2.crate
diff --git a/01-remove-criterion.patch b/01-remove-criterion.patch
new file mode 100644
index 0000000..8de362f
--- /dev/null
+++ b/01-remove-criterion.patch
@@ -0,0 +1,15 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index 8d5190d..67c9965 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -53,10 +53,6 @@ harness = false
+ version = "0.6.2"
+ default-features = false
+
+-[dev-dependencies.criterion]
+-version = "0.3.6"
+-features = ["html_reports"]
+-
+ [dev-dependencies.image]
+ version = "0.24.3"
+ features = ["png"]
diff --git a/rust-colorgrad.spec b/rust-colorgrad.spec
new file mode 100644
index 0000000..0aa7bdf
--- /dev/null
+++ b/rust-colorgrad.spec
@@ -0,0 +1,85 @@
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate colorgrad
+
+Name: rust-colorgrad
+Version: 0.6.2
+Release: %autorelease
+Summary: Color scales library for data visualization, charts, games, generative
art and others
+
+License: MIT OR Apache-2.0
+URL:
https://crates.io/crates/colorgrad
+Source: %{crates_source}
+
+BuildRequires: cargo-rpm-macros >= 24
+
+Patch1: 01-remove-criterion.patch
+
+%global _description %{expand:
+Color scales library for data visualization, charts, games, generative
+art and others.}
+
+%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}+named-colors-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+named-colors-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "named-colors" feature of the "%{crate}" crate.
+
+%files -n %{name}+named-colors-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
+%changelog
+* Sun Nov 12 2023 Leo Puvilland <leo(a)craftcat.dev> - 0.6.2
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..452f95a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (colorgrad-0.6.2.crate) =
68580b5840add26bbe3ff59fc325f50371ecb87a49e139e55248a19463b07fa6117228cb70be0d2aed4edd1a7252a42a652297c70b87e7aa019f0d492d8c68e5
https://src.fedoraproject.org/rpms/rust-colorgrad/c/439a1951165d2d6858851...