2019-01-18 10:21:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package ignition
|
|
|
|
#
|
2019-07-25 14:02:53 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-01-18 10:21:06 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-07-25 14:02:53 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2019-01-18 10:21:06 +01:00
|
|
|
|
|
|
|
Name: ignition
|
2019-09-27 16:35:51 +02:00
|
|
|
Version: 2.0.1+git20190925.641ec6a
|
2019-01-18 10:21:06 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: First boot installer and configuration tool
|
|
|
|
License: Apache-2.0
|
2019-07-25 14:02:53 +02:00
|
|
|
Group: System/Management
|
2019-01-18 10:21:06 +01:00
|
|
|
URL: https://github.com/coreos/ignition
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
2019-06-06 14:15:28 +02:00
|
|
|
Requires: dracut
|
|
|
|
BuildRequires: dracut
|
|
|
|
BuildRequires: libblkid-devel
|
2019-07-25 14:02:53 +02:00
|
|
|
BuildRequires: golang(API) >= 1.12
|
2019-01-18 10:21:06 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Ignition is an utility to manipulate disks and configuration files
|
|
|
|
during the initramfs. This includes partitioning disks, formatting
|
|
|
|
partitions, writing files (regular files, systemd units, etc.), and
|
|
|
|
creating users.
|
|
|
|
On first boot, Ignition reads its configuration from a source of truth
|
|
|
|
(remote URL, network metadata service, hypervisor bridge, etc.) and
|
|
|
|
applies the configuration.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2019-06-06 15:38:00 +02:00
|
|
|
sed -i -e 's|go build -ldflags|go build -buildmode=pie -ldflags|g' build
|
2019-01-18 10:21:06 +01:00
|
|
|
env VERSION=%{version} bash -x ./build
|
|
|
|
|
|
|
|
%install
|
2019-03-21 15:42:38 +01:00
|
|
|
install -d %{buildroot}%{_prefix}/lib/dracut/modules.d/30ignition
|
|
|
|
install -p -m 0755 bin/*/ignition %{buildroot}%{_prefix}/lib/dracut/modules.d/30ignition
|
2019-01-18 10:21:06 +01:00
|
|
|
install -d -p %{buildroot}%{_bindir}
|
|
|
|
install -p -m 0755 bin/*/ignition-validate %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md doc
|
2019-06-06 14:15:28 +02:00
|
|
|
%{_prefix}/lib/dracut/modules.d/30ignition
|
2019-01-18 10:21:06 +01:00
|
|
|
%{_bindir}/ignition-validate
|
|
|
|
|
|
|
|
%changelog
|