summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-14 10:41:24 -0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-14 10:41:24 -0700
commit4eb34926c3ea175a07132ee5c101687769d034b7 (patch)
tree7e39e3bf4d6086880d530786a1dfc96adfc18167
parent0d4cc2c4a92e88c91db55ec0d48d9a4993fd8b03 (diff)
downloadspecs-4eb34926c3ea175a07132ee5c101687769d034b7.tar.gz
specs-4eb34926c3ea175a07132ee5c101687769d034b7.tar.xz
specs-4eb34926c3ea175a07132ee5c101687769d034b7.zip
+ rust-nu-engine
-rw-r--r--rust/rust-nu/rust-nu-engine-.rust2rpm.conf3
-rw-r--r--rust/rust-nu/rust-nu-engine.spec70
2 files changed, 73 insertions, 0 deletions
diff --git a/rust/rust-nu/rust-nu-engine-.rust2rpm.conf b/rust/rust-nu/rust-nu-engine-.rust2rpm.conf
new file mode 100644
index 0000000..b74cc3c
--- /dev/null
+++ b/rust/rust-nu/rust-nu-engine-.rust2rpm.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+unwanted-features =
+ plugin
diff --git a/rust/rust-nu/rust-nu-engine.spec b/rust/rust-nu/rust-nu-engine.spec
new file mode 100644
index 0000000..3fa5c99
--- /dev/null
+++ b/rust/rust-nu/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