diff --git a/anda/rust/nushell/anda.hcl b/anda/rust/nushell/anda.hcl new file mode 100644 index 0000000000..a7f37bd92f --- /dev/null +++ b/anda/rust/nushell/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "nushell.spec" + } +} diff --git a/anda/rust/nushell/nushell.spec b/anda/rust/nushell/nushell.spec new file mode 100644 index 0000000000..75eeb51d90 --- /dev/null +++ b/anda/rust/nushell/nushell.spec @@ -0,0 +1,30 @@ +Name: nushell +Version: 0.86.0 +Release: 1%{?dist} +Summary: A new type of shell +License: MIT +URL: https://www.nushell.sh/ +Source0: https://github.com/nushell/nushell/archive/refs/tags/%version.tar.gz +BuildRequires: cargo +Requires: glibc gcc-libs openssl zlib + +%description +%summary. + +%prep +%autosetup + +%build +CFLAGS+=" -ffat-lto-objects" +cargo build --release --workspace --features=extra,dataframe + +%install +find target/release -maxdepth 1 -executable -type f -name "nu*" -exec install -vDm755 -t %buildroot%_bindir "{}" + + +%files +%doc README.md +%license LICENSE +%_bindir/nu* + +%changelog +%autochangelog diff --git a/anda/rust/nushell/update.rhai b/anda/rust/nushell/update.rhai new file mode 100644 index 0000000000..039accd131 --- /dev/null +++ b/anda/rust/nushell/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("nushell/nushell"));