From 9048bb676a4ac5b93603e4b0fb4fe0da3c850fc8 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 17 Feb 2023 20:33:49 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-nu-color-config.spec | 67 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 rust-nu-color-config.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a165a41 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nu-color-config-0.75.0.crate diff --git a/rust-nu-color-config.spec b/rust-nu-color-config.spec new file mode 100644 index 0000000..55bd79b --- /dev/null +++ b/rust-nu-color-config.spec @@ -0,0 +1,67 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate nu-color-config + +Name: rust-nu-color-config +Version: 0.75.0 +Release: %autorelease +Summary: Color configuration code used by Nushell + +License: MIT +URL: https://crates.io/crates/nu-color-config +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Color configuration code used by Nushell.} + +%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 +%{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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test -- -- --skip style_computer::test_computable_style_closure_basic --skip style_computer::test_computable_style_closure_errors +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..b3224e5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nu-color-config-0.75.0.crate) = 1edda1fbfa06e80e0791daf6989a5e9b678b8d0a51d033ac60ce6cb43850cf9c3f3e0ab80fbee4ea93660806664884d8c69725334a1c49b613217a61e8819e11