|
|
64d135 |
# Originally generated by go2rpm 1.3
|
|
|
64d135 |
%if 0%{?fedora}
|
|
|
64d135 |
%bcond_without check
|
|
|
64d135 |
%else
|
|
|
64d135 |
# %%gocheck isn't currently provided on CentOS/RHEL
|
|
|
64d135 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1982298
|
|
|
64d135 |
%bcond_with check
|
|
|
64d135 |
%endif
|
|
|
64d135 |
|
|
|
64d135 |
# https://github.com/coreos/butane
|
|
|
64d135 |
%global goipath github.com/coreos/butane
|
|
|
64d135 |
%global gomodulesmode GO111MODULE=on
|
|
|
64d135 |
Version: 0.13.1
|
|
|
64d135 |
|
|
|
64d135 |
%gometa
|
|
|
64d135 |
|
|
|
64d135 |
%global common_description %{expand:
|
|
|
64d135 |
Butane translates human-readable Butane Configs into machine-readable Ignition
|
|
|
64d135 |
configs for provisioning operating systems that use Ignition.}
|
|
|
64d135 |
|
|
|
64d135 |
%global golicenses LICENSE
|
|
|
64d135 |
%global godocs docs README.md NEWS
|
|
|
64d135 |
|
|
|
64d135 |
Name: butane
|
|
|
64d135 |
Release: 1%{?dist}
|
|
|
64d135 |
Summary: Butane config transpiler
|
|
|
64d135 |
|
|
|
64d135 |
# Upstream license specification: Apache-2.0
|
|
|
64d135 |
License: ASL 2.0
|
|
|
64d135 |
URL: %{gourl}
|
|
|
64d135 |
Source0: %{gosource}
|
|
|
64d135 |
|
|
|
64d135 |
|
|
|
64d135 |
# Generated by go-mods-to-bundled-provides.py
|
|
|
64d135 |
Provides: bundled(golang(github.com/clarketm/json)) = 1.14.1
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/go-semver/semver)) = 0.3.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/go-systemd/unit)) = 0.0.0-20190321100706.git95778dfbb74e
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/go-systemd/v22/unit)) = 0.0.0-20190321100706.git95778dfbb74e
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/merge)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/shared/errors)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/shared/validations)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/util)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/v3_0/types)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/v3_1/types)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/v3_2/types)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/v3_3/types)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/v3_4_experimental/types)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/ignition/v2/config/validate)) = 2.11.0
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/vcontext/json)) = 0.0.0-20210407161507.git4ee6c745c8bd
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/vcontext/path)) = 0.0.0-20210407161507.git4ee6c745c8bd
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/vcontext/report)) = 0.0.0-20210407161507.git4ee6c745c8bd
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/vcontext/tree)) = 0.0.0-20210407161507.git4ee6c745c8bd
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/vcontext/validate)) = 0.0.0-20210407161507.git4ee6c745c8bd
|
|
|
64d135 |
Provides: bundled(golang(github.com/coreos/vcontext/yaml)) = 0.0.0-20210407161507.git4ee6c745c8bd
|
|
|
64d135 |
Provides: bundled(golang(github.com/davecgh/go-spew/spew)) = 1.1.1
|
|
|
64d135 |
Provides: bundled(golang(github.com/spf13/pflag)) = 1.0.6-0.20210604193023.gitd5e0c0615ace
|
|
|
64d135 |
Provides: bundled(golang(github.com/stretchr/testify/assert)) = 1.5.1
|
|
|
64d135 |
Provides: bundled(golang(github.com/vincent-petithory/dataurl)) = 0.0.0-20160330182126.git9a301d65acbb
|
|
|
64d135 |
Provides: bundled(golang(gopkg.in/yaml.v3)) = 3.0.0-20191010095647.gitfc94e3f71652
|
|
|
64d135 |
|
|
|
64d135 |
%description
|
|
|
64d135 |
%{common_description}
|
|
|
64d135 |
|
|
|
64d135 |
%package redistributable
|
|
|
64d135 |
Summary: Butane for macOS and Windows
|
|
|
64d135 |
License: ASL 2.0
|
|
|
64d135 |
BuildArch: noarch
|
|
|
64d135 |
|
|
|
64d135 |
%description redistributable
|
|
|
64d135 |
%{common_description}
|
|
|
64d135 |
|
|
|
64d135 |
This package contains macOS and Windows Butane binaries built through
|
|
|
64d135 |
cross-compilation.
|
|
|
64d135 |
|
|
|
64d135 |
%prep
|
|
|
64d135 |
%goprep -k
|
|
|
64d135 |
%autopatch -p1
|
|
|
64d135 |
|
|
|
64d135 |
%build
|
|
|
64d135 |
export LDFLAGS="-X github.com/coreos/butane/internal/version.Raw=%{version} $LDFLAGS"
|
|
|
64d135 |
export GOFLAGS="-mod=vendor"
|
|
|
64d135 |
|
|
|
64d135 |
echo "Building butane..."
|
|
|
64d135 |
%gobuild -o ./butane internal/main.go
|
|
|
64d135 |
|
|
|
64d135 |
%global gocrossbuild go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x
|
|
|
64d135 |
|
|
|
64d135 |
echo "Building macOS Butane..."
|
|
|
64d135 |
GOARCH=amd64 GOOS=darwin %gocrossbuild -o butane-darwin-amd64 internal/main.go
|
|
|
64d135 |
|
|
|
64d135 |
echo "Building Windows Butane..."
|
|
|
64d135 |
GOARCH=amd64 GOOS=windows %gocrossbuild -o butane-windows-amd64.exe internal/main.go
|
|
|
64d135 |
|
|
|
64d135 |
%install
|
|
|
64d135 |
install -d -p %{buildroot}%{_bindir}
|
|
|
64d135 |
install -p -m 0755 ./butane %{buildroot}%{_bindir}
|
|
|
64d135 |
install -d -p %{buildroot}%{_datadir}/butane-redistributable
|
|
|
64d135 |
install -p -m 0644 ./butane-darwin-amd64 %{buildroot}%{_datadir}/butane-redistributable
|
|
|
64d135 |
install -p -m 0644 ./butane-windows-amd64.exe %{buildroot}%{_datadir}/butane-redistributable
|
|
|
64d135 |
|
|
|
64d135 |
%if %{with check}
|
|
|
64d135 |
%check
|
|
|
64d135 |
%gocheck
|
|
|
64d135 |
%endif
|
|
|
64d135 |
|
|
|
64d135 |
%files
|
|
|
64d135 |
%license %{golicenses}
|
|
|
64d135 |
%doc %{godocs}
|
|
|
64d135 |
%{_bindir}/butane
|
|
|
64d135 |
|
|
|
64d135 |
%files redistributable
|
|
|
64d135 |
%license %{golicenses}
|
|
|
64d135 |
%dir %{_datadir}/butane-redistributable
|
|
|
64d135 |
%{_datadir}/butane-redistributable/butane-darwin-amd64
|
|
|
64d135 |
%{_datadir}/butane-redistributable/butane-windows-amd64.exe
|
|
|
64d135 |
|
|
|
64d135 |
%changelog
|
|
|
64d135 |
* Wed Aug 04 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.13.1-1
|
|
|
64d135 |
- New release
|
|
|
64d135 |
|
|
|
64d135 |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-2
|
|
|
64d135 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
64d135 |
|
|
|
64d135 |
* Wed Jul 14 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.13.0-1
|
|
|
64d135 |
- New release
|
|
|
64d135 |
|
|
|
64d135 |
* Thu Jun 10 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.12.1-1
|
|
|
64d135 |
- New release
|
|
|
64d135 |
|
|
|
64d135 |
* Tue Jun 08 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.12.0-1
|
|
|
64d135 |
- New release
|
|
|
64d135 |
|
|
|
64d135 |
* Tue Apr 06 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.11.0-1
|
|
|
64d135 |
- Initial package
|