# Generated by go2rpm 1.12.0 %bcond_without check # https://github.com/evanw/esbuild %global goipath github.com/evanw/esbuild Version: 0.21.5 %gometa -L -f %global common_description %{expand: This is a JavaScript bundler and minifier. It packages up JavaScript and TypeScript code for distribution on the web.} %global golicenses LICENSE.md %global godocs docs CHANGELOG.md README.md version.txt Name: golang-github-evanw-esbuild Release: %autorelease Summary: Fast JavaScript bundler and minifier License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/esbuild %{goipath}/cmd/esbuild %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # css_parser: failed on ppc64le and s390x. %ifarch ppc64le s390x %gocheck -d internal/css_parser %else %gocheck %endif %endif %files %license LICENSE.md %doc docs CHANGELOG.md README.md %{_bindir}/esbuild %gopkgfiles %changelog %autochangelog