-
Notifications
You must be signed in to change notification settings - Fork 2
/
ignition.spec
68 lines (52 loc) · 2.04 KB
/
ignition.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
%define debug_package %{nil}
Name: ignition
Version: 0.23.0
Release: 0.4%{?dist}
Summary: First boot installer and configuration tool
License: ASL 2.0
URL: https://github.com/coreos/ignition
Source0: https://github.com/coreos/%{name}/archive/v%{version}.tar.gz
Patch0: 0001-build-Override-artifact-output-with-BIN_PATH.patch
Patch1: 0002-build_releases-Override-artifact-output-with-BIN_PAT.patch
Patch2: 0001-build-Allow-VERSION-set-and-fallback-to-git.patch
Patch3: 0002-build_releases-Allow-setting-VERSION-and-fallback-to.patch
%if 0%{?fedora}
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang >= 1.6.2}
%endif #fedora
%if 0%{?centos}
BuildRequires: golang
%endif #centos
BuildRequires: libblkid-devel
ExclusiveArch: %{go_arches}
%description
Ignition is the utility used by CoreOS Container Linux to manipulate
disks during the initramfs. This includes partitioning disks,
formatting partitions, writing files (regular files, systemd units,
networkd units, etc.), and configuring 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
%autosetup -n %{name}-%{version}
%build
# TODO: Using ./build_releases will output multiple archs. This could be used
# to do multiple arch outputs in subpackages.
VERSION=%{version} BIN_PATH=./ ./build
%install
install -d -p %{buildroot}%{_bindir}
install -p -m 0755 ./ignition %{buildroot}%{_bindir}
install -p -m 0755 ./ignition-validate %{buildroot}%{_bindir}
%files
%license LICENSE
%doc README.md doc/
%{_bindir}/%{name}
%{_bindir}/%{name}-validate
%changelog
* Thu May 10 2018 Steve Milner <smilner@redhat.com> - 0.23.0-0.4
- Update per review
* Mon Mar 26 2018 Dusty Mabe <dusty@dustymabe.com> - 0.23.0-0.3
- fixup spec so epel7 will build
* Tue Mar 20 2018 Dusty Mabe <dusty@dustymabe.com> - 0.23.0-0.2
- fixups for spec file
* Thu Mar 15 2018 Steve Milner <smilner@redhat.com> - 0.23.0-0.1
- Initial spec