ignition/ignition.spec
Ignaz Forster c13820aa38 - Update to version 2.0.0~beta+git20190429.1eeb201:
* build_releases: update for using go mod
  * news: add news for v2.0.0-beta
  * doc: mv spec 3.1.0 -> 3.1.0-experimental
  * contributing.md: add pointer to development guide
  * doc/operator-notes: add section on config merging
  * test: turn on docs checking
  * doc/migrating-configs.md: update for spec 3.0.0
  * doc/development.md: update doc for spec 3.0.0
  * doc/getting-started.md: update for spec 3.0.0
  * doc/examples.md: update for spec 3.0.0

OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=15
2019-05-02 09:14:36 +00:00

62 lines
2.0 KiB
RPMSpec

#
# spec file for package ignition
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ignition
Version: 2.0.0~beta+git20190429.1eeb201
Release: 0
Group: System/Management
Summary: First boot installer and configuration tool
License: Apache-2.0
URL: https://github.com/coreos/ignition
Source: %{name}-%{version}.tar.xz
BuildRequires: libblkid-devel
BuildRequires: go
%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
sed -i -e 's|go build -buildmode=pie|go build -mod vendor -buildmode=pie|g' build
sed -i -e 's|go build -ldflags|go build -mod vendor -buildmode=pie -ldflags|g' build
env VERSION=%{version} bash -x ./build
%install
install -d %{buildroot}%{_prefix}/lib/dracut/modules.d/30ignition
install -p -m 0755 bin/*/ignition %{buildroot}%{_prefix}/lib/dracut/modules.d/30ignition
install -d -p %{buildroot}%{_bindir}
install -p -m 0755 bin/*/ignition-validate %{buildroot}%{_bindir}
%files
%license LICENSE
%doc README.md doc
%{_prefix}/lib/dracut
%{_bindir}/ignition-validate
%changelog