mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* fix(bun): use baseline instead
The normal version requires avx2 support. Switching to the baseline
removes the requirement.
* bump rel
(cherry picked from commit 8a7f86b092)
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
%define debug_package %nil
|
||||
%ifarch x86_64
|
||||
%global a x64
|
||||
%global a x64-baseline
|
||||
%elifarch aarch64
|
||||
%global a aarch64
|
||||
%endif
|
||||
|
||||
Name: bun-bin
|
||||
Version: 1.2.14
|
||||
Release: 1%?dist
|
||||
Release: 2%?dist
|
||||
Summary: Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
|
||||
License: MIT
|
||||
URL: https://bun.sh
|
||||
@@ -17,10 +17,37 @@ BuildRequires: unzip
|
||||
%description
|
||||
%summary.
|
||||
|
||||
|
||||
%package bash-completion
|
||||
Summary: Bash completion for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: bash-completion
|
||||
Supplements: (%{name} and bash-completion)
|
||||
|
||||
%description bash-completion
|
||||
Bash command line completion support for %{name}.
|
||||
|
||||
%package fish-completion
|
||||
Summary: Fish completion for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: fish
|
||||
Supplements: (%{name} and fish)
|
||||
|
||||
%description fish-completion
|
||||
Fish command line completion support for %{name}.
|
||||
|
||||
%package zsh-completion
|
||||
Summary: Zsh completion for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: zsh
|
||||
Supplements: (%{name} and zsh)
|
||||
|
||||
%description zsh-completion
|
||||
Zsh command line completion support for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
unzip %SOURCE0
|
||||
%global buildsubdir bun-linux-%a
|
||||
cd %buildsubdir
|
||||
%autosetup -n bun-linux-%a
|
||||
cat<<EOF > LICENSE
|
||||
MIT License
|
||||
|
||||
@@ -61,6 +88,12 @@ ln -s bun %buildroot%_bindir/bunx
|
||||
%license LICENSE
|
||||
%_bindir/bun
|
||||
%_bindir/bunx
|
||||
|
||||
%files bash-completion
|
||||
%bash_completions_dir/bun.bash
|
||||
|
||||
%files fish-completion
|
||||
%fish_completions_dir/bun.fish
|
||||
|
||||
%files zsh-completion
|
||||
%zsh_completions_dir/_bun
|
||||
|
||||
Reference in New Issue
Block a user