Files
packages/anda/langs/rust/nushell/nushell.spec
T
lleyton a16b7bce95 chore: sync with Terra 39 (#877)
* chore: sync with Terra 39

* fix: update mock-configs path

* fix: use f38 specs for desktops

* chore: move more lomiri/unity specific packages (#880)

* Fix(ubuntu-sdk): update description & version (#878)

Signed-off-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>

* fix: disable docs package (#887)

* sync more changes from f39

* add keyd fixes

---------

Signed-off-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>
Signed-off-by: lleyton <lleyton@fyralabs.com>
Co-authored-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>
2024-01-13 17:40:35 -08:00

49 lines
1.1 KiB
RPMSpec

Name: nushell
Version: 0.89.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: anda-srpm-macros rust-packaging openssl-devel
Requires: glibc openssl zlib
%description
%summary.
%prep
%autosetup
%cargo_prep_online
%build
%{cargo_build -f extra,dataframe} --workspace
%install
%cargo_install -f extra,dataframe
rm -rf .cargo
%post
if [ "$1" = 1 ]; then
if [ ! -f %{_sysconfdir}/shells ] ; then
echo "%{_bindir}/nu" > %{_sysconfdir}/shells
echo "/bin/nu" >> %{_sysconfdir}/shells
else
grep -q "^%{_bindir}/nu$" %{_sysconfdir}/shells || echo "%{_bindir}/nu" >> %{_sysconfdir}/shells
grep -q "^/bin/nu$" %{_sysconfdir}/shells || echo "/bin/nu" >> %{_sysconfdir}/shells
fi
fi
%postun
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
sed -i '\!^%{_bindir}/nu$!d' %{_sysconfdir}/shells
sed -i '\!^/bin/nu$!d' %{_sysconfdir}/shells
fi
%files
%doc README.md
%license LICENSE
%_bindir/nu*
%changelog
%autochangelog