Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37404777
en ru br
Репозитории ALT

Группа :: Система/Настройка/Загрузка и инициализация
Пакет: butane

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 


%global import_path github.com/coreos/butane

Name: butane
Version: 0.13.1
Release: alt1

Summary: Butane translates human readable Butane YAML Configs into machine readable Ignition JSON Configs
License: Apache-2.0
Group: System/Configuration/Boot and Init

URL: https://github.com/coreos/butane/blob/main/docs/getting-started.md
Source: %name-%version.tar

ExclusiveArch: %go_arches
BuildRequires(pre): rpm-build-golang
BuildRequires: golang

%description
Butane translates human-readable Butane Configs into machine-readable Ignition
configs for provisioning operating systems that use Ignition.

%prep
%setup

%build
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"
export GO111MODULE=on
export GOFLAGS=-mod=vendor
export CGO_ENABLED=0
export version=v%version
export LDFLAGS="-X %import_path/internal/version.Raw=$version"

%golang_prepare
pushd $BUILDDIR/src/%import_path
%gobuild -o ./bin/butane internal/main.go
popd

%install
export BUILDDIR="$PWD/.build"
export GOPATH="%go_path"

pushd $BUILDDIR/src/%import_path
install -p -D -m 0755 ./bin/butane %buildroot%_bindir/butane
popd
ln -s butane %buildroot%_bindir/fcct


%files
%doc README.md NEWS docs
%_bindir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin