From 0cd6667ab0f3a1e1dad83e8cfa64efa6b72ddffa Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 15 Apr 2022 10:32:02 -0700 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + .rust2rpm.conf | 3 ++ rust-nu-engine.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 .rust2rpm.conf create mode 100644 rust-nu-engine.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18b6f9f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nu-engine-0.61.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..b74cc3c --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + plugin diff --git a/rust-nu-engine.spec b/rust-nu-engine.spec new file mode 100644 index 0000000..3fa5c99 --- /dev/null +++ b/rust-nu-engine.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate nu-engine + +Name: rust-%{crate} +Version: 0.61.0 +Release: %autorelease +Summary: Nushell's evaluation engine + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/nu-engine +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Nushell's evaluation engine.} + +%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 +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..7e2e9bc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nu-engine-0.61.0.crate) = 0e15b9b2a18a49b290684c22e7479161d7192ccd6b837e1c7e926b6d8922c39c88cf0241802c5540502783453a98bde697e7f567a846edfd7be45f1a97257de9