Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2023-06-20 16:44:11 +03:00
commit 0058697cb7
2 changed files with 34 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
esbuild-0.18.5.tar.gz: 05c6073d65923d1147f6b8407ce06d8cbba19473

32
esbuild.spec Normal file
View file

@ -0,0 +1,32 @@
%define debug %nil
%define debug_package %nil
Name: esbuild
Version: 0.18.5
Release: 1
Summary: An extremely fast bundler for the web
URL: https://esbuild.github.io
Source0: https://github.com/evanw/esbuild/archive/v%{version}/%{name}-%{version}.tar.gz
License: MIT
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
%description
An extremely fast bundler for the web
%prep
%setup -q
%build
CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/%{name} ./cmd/esbuild
upx bin/%{name}
%install
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE.md docs
%{_bindir}/%{name}