Add macOS aarch64 binary to -redistributable
This commit is contained in:
parent
1c14bddc3c
commit
58141f9d23
@ -22,7 +22,7 @@ configs for provisioning operating systems that use Ignition.}
|
||||
%global godocs docs README.md
|
||||
|
||||
Name: butane
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Butane config transpiler
|
||||
|
||||
# Upstream license specification: Apache-2.0
|
||||
@ -104,6 +104,7 @@ CGO_ENABLED=0 GOARCH=amd64 GOOS=linux %gocrossbuild -o butane-x86_64-unknown-lin
|
||||
|
||||
echo "Building macOS Butane..."
|
||||
GOARCH=amd64 GOOS=darwin %gocrossbuild -o butane-x86_64-apple-darwin internal/main.go
|
||||
GOARCH=arm64 GOOS=darwin %gocrossbuild -o butane-aarch64-apple-darwin internal/main.go
|
||||
|
||||
echo "Building Windows Butane..."
|
||||
GOARCH=amd64 GOOS=windows %gocrossbuild -o butane-x86_64-pc-windows-gnu.exe internal/main.go
|
||||
@ -113,6 +114,7 @@ install -d -p %{buildroot}%{_bindir}
|
||||
install -p -m 0755 ./butane %{buildroot}%{_bindir}
|
||||
ln -s butane %{buildroot}%{_bindir}/fcct
|
||||
install -d -p %{buildroot}%{_datadir}/butane
|
||||
install -p -m 0644 ./butane-aarch64-apple-darwin %{buildroot}%{_datadir}/butane
|
||||
install -p -m 0644 ./butane-aarch64-unknown-linux-gnu-static %{buildroot}%{_datadir}/butane
|
||||
install -p -m 0644 ./butane-ppc64le-unknown-linux-gnu-static %{buildroot}%{_datadir}/butane
|
||||
install -p -m 0644 ./butane-s390x-unknown-linux-gnu-static %{buildroot}%{_datadir}/butane
|
||||
@ -134,6 +136,7 @@ install -p -m 0644 ./butane-x86_64-unknown-linux-gnu-static %{buildroot}%{_datad
|
||||
%files redistributable
|
||||
%license %{golicenses}
|
||||
%dir %{_datadir}/butane
|
||||
%{_datadir}/butane/butane-aarch64-apple-darwin
|
||||
%{_datadir}/butane/butane-aarch64-unknown-linux-gnu-static
|
||||
%{_datadir}/butane/butane-ppc64le-unknown-linux-gnu-static
|
||||
%{_datadir}/butane/butane-s390x-unknown-linux-gnu-static
|
||||
@ -142,6 +145,9 @@ install -p -m 0644 ./butane-x86_64-unknown-linux-gnu-static %{buildroot}%{_datad
|
||||
%{_datadir}/butane/butane-x86_64-unknown-linux-gnu-static
|
||||
|
||||
%changelog
|
||||
* Mon Jun 27 2022 Benjamin Gilbert <bgilbert@redhat.com> - 0.15.0-2
|
||||
- Add macOS aarch64 binary to -redistributable
|
||||
|
||||
* Mon Jun 27 2022 Steven Presti <spresti@redhat.com> - 0.15.0-1
|
||||
- New release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user