summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-01 14:36:52 -0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-01 14:36:52 -0700
commit1ee3918750234d0333c1b725f7fe9c41c0527811 (patch)
tree7d167c07fc25474fca444617d90263e72da7fc7e
parente96f3bf1ece29cbf93e557e4d653203aaf5eef81 (diff)
downloadspecs-1ee3918750234d0333c1b725f7fe9c41c0527811.tar.gz
specs-1ee3918750234d0333c1b725f7fe9c41c0527811.tar.xz
specs-1ee3918750234d0333c1b725f7fe9c41c0527811.zip
+ rust-owo-colors
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r--rust/rust-owo-colors.spec95
1 files changed, 95 insertions, 0 deletions
diff --git a/rust/rust-owo-colors.spec b/rust/rust-owo-colors.spec
new file mode 100644
index 0000000..9b281c0
--- /dev/null
+++ b/rust/rust-owo-colors.spec
@@ -0,0 +1,95 @@
+# Generated by rust2rpm 21
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate owo-colors
+
+Name: rust-%{crate}
+Version: 3.3.0
+Release: %autorelease
+Summary: Zero-allocation terminal colors that'll make people go owo
+
+# Upstream license specification: MIT
+License: MIT
+URL: https://crates.io/crates/owo-colors
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+Zero-allocation terminal colors that'll make people go owo.}
+
+%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
+# FIXME: no license files detected
+%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}+supports-color-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+supports-color-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "supports-color" feature of the "%{crate}" crate.
+
+%files -n %{name}+supports-color-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+supports-colors-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+supports-colors-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "supports-colors" feature of the "%{crate}" crate.
+
+%files -n %{name}+supports-colors-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