Compare commits

..

103 commits

Author SHA1 Message Date
Klara Necasova
7bac3f8b5e chore: update ignition-edge commit
- update ignition-edge commit to include https://github.com/fedora-iot/ignition-edge/pull/12

Signed-off-by: Klara Necasova <knecasov@redhat.com>
2026-09-03 21:08:22 +02:00
Steven Presti
b112393806 Update to 2.27.0
- Butane config transpiler merged into Ignition repository
- Butane now follows Ignition version numbering
- Drop Patch0 (fix merged upstream)
- Drop legacy fcct/fedora-coreos-config-transpiler provides
- Regenerate bundled provides
2026-08-27 08:32:46 -04:00
Fedora Release Engineering
c549acc324 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-16 03:49:24 +00:00
Timothée Ravier
14cfc4fcf5 F44+: Ship OpenSSH config file specifying AuthorizedKeysFile
Move the configuration from the Fedora CoreOS specific overlays to the
packages. We also do it for Afterburn.

See: https://github.com/coreos/ssh-key-dir/issues/188
See: https://github.com/coreos/fedora-coreos-config/pull/3885
See: https://github.com/coreos/fedora-coreos-config/pull/4047

Also set ignition as runtime requirement for the -edge subpackage.
2026-03-30 16:38:00 +02:00
Joel Capitao
396959a3ef
Revert "Ship OpenSSH config file specifying AuthorizedKeysFile"
We no longer want to ship the OpenSSH configuration in F43 for
stability reason.

This reverts commit 3ccce9fe2c.
2026-03-10 18:14:05 +01:00
Joel Capitao
3ccce9fe2c
Ship OpenSSH config file specifying AuthorizedKeysFile
See https://github.com/coreos/ssh-key-dir/issues/188
It's currently shipped in a overlay but packaging it makes more sense.

I also set ignition as run-time requirement of -edge subpackage.
2026-02-25 17:20:02 +01:00
dba14b4349 fix: update gnition-edge subpackage license to MIT
The ignition-edge code is derived from fedora-coreos-config which
is licensed under MIT, not Apache-2.0. Update the subpackage to
reflect the correct license.

Signed-off-by: Paul Whalen <pwhalen@fedoraproject.org>
2026-02-25 09:18:51 -05:00
Steven Presti
8b52f03285 Patch for Go 1.26 compatibility 2026-02-19 10:16:39 -05:00
Steven Presti
f09fdcd8eb Update to 2.26.0 2026-02-19 09:03:58 -05:00
Maxwell G
201d0b3908 Rebuild for https://fedoraproject.org/wiki/Changes/golang1.26 2026-02-02 18:57:52 -06:00
Fedora Release Engineering
0936a9fcd0 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 16:41:33 +00:00
Yasmin de Souza
c949917070
Update to 2.25.1 2025-12-29 22:18:45 -03:00
Steven Presti
72b7782599 Update to 2.25.0
Relates to: https://github.com/coreos/ignition/issues/2170
2025-12-12 15:04:08 -05:00
Steven Presti
c968de9bf5 Update to 2.24.0
Relates to: https://github.com/coreos/ignition/issues/2137
2025-10-14 15:41:26 -04:00
Alejandro Sáez
da6e188921 rebuild 2025-10-10 14:40:27 +02:00
Steven Presti
72fea80cc7 Rebuild ignition with goexperiment=strictfipsruntime 2025-10-01 12:54:58 -04:00
Steven Presti
aeab9876fb Update to 2.23.0
relates to: https://github.com/coreos/ignition/issues/2126
2025-09-10 15:13:15 -04:00
Maxwell G
14f8fd597a Rebuild for golang-1.25.0 2025-08-15 17:59:34 -05:00
Fedora Release Engineering
9f25eef1c8 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 17:35:10 +00:00
Tiago Bueno
9d428601e9
Fix rpminspect debug symbols failure
This adds a new configuration file for rpminspect to ensure that debug
symbols are correctly handled in the RPM subpackage.

Signed-off-by: Tiago Bueno <tiago.bueno@gmail.com>
2025-07-16 18:00:07 -03:00
Tiago Bueno
09c7f06575
Backport fix for OracleCloud error handling
Signed-off-by: Tiago Bueno <tiago.bueno@gmail.com>
2025-07-15 12:57:13 -03:00
yasminvalim
5235d93136 Remove obsolete patch
Remove 0001-Rename-ignition.cfg-05_ignition.cfg.patch from spec
2025-07-09 11:34:28 -03:00
yasminvalim
8c802480f9 Update to 2.22.0 2025-07-08 15:05:44 -03:00
Steven Presti
931d3944d9 ignition.cfg: rename to 05_ignition.cfg and backport upstream rename 2025-03-20 08:53:45 -04:00
Steven Presti
8a3dc87da9 ignition-ignition-grub: subpackage rename to ignition-grub 2025-03-19 14:18:13 -04:00
Steven Presti
a295b467f5 grub2: update install dir to be explicitly /lib
correctly install grub config into /lib dir
ref:https://github.com/coreos/ignition/pull/2037
2025-03-19 14:14:07 -04:00
Steven Presti
a13fc83299 Update to 2.21.0
relates to: https://github.com/coreos/ignition/issues/2033
2025-03-14 19:42:41 -04:00
djach7
4b614e8a3d ignition-edge: Update ignition-edge commit
Adds in bug fix to prevent read-only error on boot, see: https://github.com/fedora-iot/ignition-edge/pull/3

Signed-off-by: djach7 <djachimo@redhat.com>
2025-01-28 09:39:11 -05:00
FeRD (Frank Dana)
d185bf7111 Apply upstream patch for Go 1.24 compatibility 2025-01-22 18:19:46 -05:00
FeRD (Frank Dana)
7411ec9287 Fix bogus date in changelog 2025-01-19 03:05:29 -05:00
FeRD (Frank Dana)
6a5b176f6c Simpler generation of random -B value 2025-01-19 03:05:21 -05:00
Fedora Release Engineering
2a8319503b Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 07:00:15 +00:00
Miguel Martín
9041937edf
ignition-edge: Update ignition-edge commit
Add "fips" to ignition-edge dracut module dependencies, see:
https://github.com/fedora-iot/ignition-edge/pull/2

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
2024-11-05 09:40:00 +01:00
Steven Presti
dd57fc84af Update to 2.20.0 2024-10-23 09:27:26 -04:00
Fedora Release Engineering
dc2702945e Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 10:14:15 +00:00
Steven Presti
30fd6a24c3 Update to 2.19.0 2024-06-05 11:30:29 -04:00
Timothée Ravier
7af239fc87 Misc whitespace fixes 2024-04-24 17:35:06 +02:00
Yasmin Valim
bffea01116
Update to 2.18.0 2024-03-05 15:49:11 -03:00
Maxwell G
03bd1df840
Rebuild for golang 1.22.0 2024-02-11 23:27:50 +00:00
Timothée Ravier
6296657697 Backport fix for unexpected Azure IMDS status codes
See: https://github.com/coreos/ignition/issues/1806
2024-02-09 15:00:47 +01:00
Fedora Release Engineering
68751ea10a Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 22:36:21 +00:00
Fedora Release Engineering
5ac6552b77 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-20 22:58:03 +00:00
Steven Presti
a14d6588b3 Add ignition-grub subpackage 2023-12-15 17:25:14 -05:00
Steven Presti
4e94fa6ca4 Update to 2.17.0 2023-11-22 13:47:54 -05:00
Fedora Release Engineering
c4b231c156 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 07:17:05 +00:00
Benjamin Gilbert
8d182d2a72 Update to 2.16.2 2023-07-12 17:06:15 -04:00
Benjamin Gilbert
bbbbdecd40 Update to 2.16.1 2023-07-10 18:50:33 -04:00
Steven Presti
6b3027138f Update license to SPDX 2023-06-02 10:28:36 -04:00
Benjamin Gilbert
c3699d870c Remove ignition-edge files from base package 2023-02-22 20:27:17 -06:00
b20c1a4257 Enable ignition-edge in Fedora
Signed-off-by: Paul Whalen <pwhalen@fedoraproject.org>
2023-02-22 12:52:30 -05:00
Benjamin Gilbert
df664a9084 Update rpmlintrc for current rpmlint 2023-02-21 15:09:09 -06:00
Benjamin Gilbert
6d7106f64f Drop Conflicts/Obsoletes for ancient Ignition releases
We're only required to support upgrading from Fedora N-2.
2023-02-21 15:05:06 -06:00
Benjamin Gilbert
d327075d15 2.15.0 2023-02-21 14:55:53 -06:00
Fedora Release Engineering
cdc0d0ebec Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 13:01:57 +00:00
Christian Glombek
a637ff4bd8 Enable writing ssh keys fragments on RHEL/CentOS >= 9
https://issues.redhat.com/browse/COS-1589
2022-08-11 20:31:48 +02:00
Fedora Release Engineering
03db1836f4 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 14:32:32 +00:00
Benjamin Gilbert
d1610f2785 Add macOS aarch64 binary to -redistributable 2022-06-27 19:09:37 -04:00
Robert-André Mauchin
9c0b6ff73c Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 2022-06-18 12:11:54 +02:00
Steven Presti
b614d9bb86 ignition.spec: update version to v2.14.0 2022-05-17 13:59:04 -04:00
Sohan Kunkerkar
14ad4c5490 Add patch for fixing the vmware kernel lockdown 2022-03-17 11:15:31 -04:00
Benjamin Gilbert
d9634e2f56 Update rpmlintrc
Filter some additional irrelevant warnings.
2022-01-28 14:11:03 -05:00
Benjamin Gilbert
5873841bec Fix macro invocation in comment 2022-01-28 04:53:09 -05:00
Benjamin Gilbert
de340079e8 Rename -validate-nonlinux to -redistributable; add static Linux binaries
Don't Provide the old package name, since no one should be installing it.
2022-01-28 04:52:28 -05:00
Benjamin Gilbert
7332568141 Avoid double patch application on non-Fedora 2022-01-20 18:29:35 -05:00
Benjamin Gilbert
5b204a35e8 Fix LUKS volume reuse 2022-01-20 18:28:11 -05:00
Fedora Release Engineering
1821283d27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 13:11:06 +00:00
Sohan Kunkerkar
1ba00f299b 2.13.0 2021-11-30 15:04:39 -05:00
Sohan Kunkerkar
a09afd03e2 Move Ignition report to /etc
Required to address https://github.com/coreos/fedora-coreos-tracker/issues/977
2021-10-13 14:31:38 -04:00
Sohan Kunkerkar
34ba035802 Conditionalize Fedora-specific configuration 2021-09-13 16:05:17 -04:00
Sohan Kunkerkar
28bc9afe30 Disable cross-building of Ignition-validate on RHEL/CentOS 2021-09-13 16:05:08 -04:00
Sohan Kunkerkar
6f840d29b8 Disable compressdwarf flag to avoid build failures on RHEL/CentOS 2021-09-13 16:03:34 -04:00
Sohan Kunkerkar
20eb55a99e Disable file fragment writing logic for SSH authorized_keys on RHEL/CentOS
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1985481
2021-08-26 14:43:01 -04:00
Sohan Kunkerkar
459a9ea0e0 Ignition 2.12.0 2021-08-06 09:51:26 -04:00
Fedora Release Engineering
b97215216d - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 08:27:26 +00:00
Benjamin Gilbert
5da7358135 Drop ignition-firstboot-complete and ignition-setup-user services
They should be in distro glue instead.

See also https://github.com/coreos/ignition/pull/1246#issuecomment-876451763.
2021-07-08 18:23:36 -04:00
Benjamin Gilbert
c67462bad1 2.11.0 2021-06-25 22:31:12 -04:00
Sohan Kunkerkar
eeb1bb62c6 Fix go-mods-to-bundled-provides script to parse correct rpm version 2021-06-09 15:07:31 -04:00
Jonathan Lebon
03c2a3f05b Backport patch for multipath on firstboot
https://github.com/coreos/ignition/pull/1208
https://github.com/coreos/fedora-coreos-config/pull/1011
2021-05-26 16:45:36 -04:00
Jonathan Lebon
57fc8be7c9 spec: regenerate from go2rpm
The old spec file was a mess full of things we didn't need/use.
Regenerate a new one from `go2rpm` and then import back the bits we
need.

Co-authored by: Stephen Lowrie <slowrie@redhat.com>
2021-05-26 16:20:41 -04:00
Stephen Lowrie
882b9d831a release: Ignition 2.10.1 2021-04-30 12:12:18 -05:00
Benjamin Gilbert
d2013a08cf Drop mention of networkd in package description 2021-02-05 18:27:51 -05:00
Benjamin Gilbert
3174eb4135 Drop old notes from original package creation 2021-02-05 18:19:50 -05:00
Benjamin Gilbert
5a58c66355 Switch to %autosetup 2021-02-05 18:19:49 -05:00
Benjamin Gilbert
053eaac99b Drop Git commit hash from Release
We've been using a release + patches workflow for a while now.
2021-02-05 18:09:12 -05:00
Benjamin Gilbert
0332d11d03 Set ExclusiveArch from %go_arches 2021-02-05 18:08:56 -05:00
Benjamin Gilbert
4a87958080 Correctly enable IMDS patch 2021-02-05 17:26:23 -05:00
Fedora Release Engineering
5b5a69d6bb - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 14:14:31 +00:00
Sohan Kunkerkar
f27cf37ade Fix AWS probing by using the IMDS token URL 2021-01-12 07:50:34 -05:00
Sohan Kunkerkar
ec21a27d4c release: Ignition v2.9.0 2021-01-08 04:27:44 -05:00
Sohan Kunkerkar
d194305bc2 release: Ignition v2.8.1 2020-12-03 11:06:14 -05:00
Sohan Kunkerkar
6f5a0f935d release: Ignition v2.8.0 2020-11-25 17:24:15 -05:00
Benjamin Gilbert
a67d7056b8 download-ignition.sh: drop
This script isn't doing anything that `spectool -g -S` won't do.
2020-10-27 23:32:46 -04:00
Stephen Lowrie
2c158893d7 Ignition 2.7.0 2020-10-14 23:25:26 -05:00
Benjamin Gilbert
e0fdfe16ef Fix sector size detection on s390x 2020-08-12 10:55:51 -04:00
Benjamin Gilbert
0e08b0f288 Ignition 2.6.0 2020-08-07 23:50:33 -04:00
Jonathan Lebon
fd1940c70e Backport conditional networking fix for OpenStack and CloudStack
https://github.com/coreos/ignition/pull/1057
2020-08-07 09:44:02 -04:00
Fedora Release Engineering
3fba3554ec - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 01:41:10 +00:00
Benjamin Gilbert
b66caa20db Ignition 2.5.0
Co-authored-by: Ben Howard <ben.howard@redhat.com>
2020-07-23 22:05:36 -04:00
Benjamin Gilbert
64396e2988 Ignition 2.4.1 2020-07-16 12:25:54 -04:00
Jonathan Lebon
64c18a989e Backport root homedir relabeling fix
Need https://github.com/coreos/ignition/pull/1029 for
https://github.com/coreos/fedora-coreos-config/pull/426#issuecomment-658867731.
2020-07-15 13:46:33 -04:00
Benjamin Gilbert
480b997359 Ignition 2.4.0 2020-07-13 18:46:38 -04:00
Timothée Ravier
6dedd4b441
Update to latest ignition-dracut to fix coreos-gpt-setup unit
https://github.com/coreos/ignition-dracut/pull/191
2020-06-15 17:11:45 +02:00
Jonathan Lebon
de97bc03b2 Update to latest ignition-dracut to fix error handling
https://github.com/coreos/ignition-dracut/pull/188
2020-06-01 14:28:40 -04:00
11 changed files with 713 additions and 870 deletions

37
.gitignore vendored
View file

@ -40,3 +40,40 @@
/ignition-dracut-390779d.tar.gz
/ignition-ee616d5.tar.gz
/ignition-dracut-7ff38d9.tar.gz
/ignition-dracut-8f5d1ec.tar.gz
/ignition-dracut-bdf0a65.tar.gz
/ignition-d18bf90.tar.gz
/ignition-dracut-e75fef0.tar.gz
/ignition-5260a5b.tar.gz
/ignition-dracut-6b1d128.tar.gz
/ignition-0d6f3e5.tar.gz
/ignition-947598e.tar.gz
/ignition-5be43fd.tar.gz
/ignition-db4d30d.tar.gz
/ignition-c733d23.tar.gz
/ignition-1d56dc8.tar.gz
/ignition-2.9.0.tar.gz
/ignition-2.10.1.tar.gz
/ignition-2.11.0.tar.gz
/ignition-2.12.0.tar.gz
/ignition-2.13.0.tar.gz
/ignition-2.14.0.tar.gz
/ignition-2.15.0.tar.gz
/ignition-edge-a3a8f0a.tar.gz
/ignition-2.16.1.tar.gz
/ignition-2.16.2.tar.gz
/ignition-2.17.0.tar.gz
/ignition-2.18.0.tar.gz
/ignition-2.19.0.tar.gz
/ignition-2.20.0.tar.gz
/ignition-edge-a258749.tar.gz
/ignition-2.21.0.tar.gz
/ignition-2.22.0.tar.gz
/ignition-2.23.0.tar.gz
/ignition-2.24.0.tar.gz
/ignition-2.25.0.tar.gz
/ignition-2.25.1.tar.gz
/ignition-2.26.0.tar.gz
/ignition-2.27.0.tar.gz
/ignition-edge-6be7c94.tar.gz
/ignition-edge-b6c8245.tar.gz

View file

@ -0,0 +1 @@
AuthorizedKeysFile=.ssh/authorized_keys .ssh/authorized_keys.d/*

View file

@ -1,3 +0,0 @@
#!/bin/bash
set -xeuo pipefail
rpmspec -P ignition.spec | grep 'Source1:' | tr -s ' ' | cut -d ' ' -f 2 | xargs curl -LO

View file

@ -1,3 +0,0 @@
#!/bin/bash
set -xeuo pipefail
rpmspec -P ignition.spec | grep 'Source0:' | tr -s ' ' | cut -d ' ' -f 2 | xargs curl -LO

View file

@ -51,7 +51,7 @@ def go_mod_tag_to_rpm_provides_version(tag):
tag = tag[1:]
# is this a pseudo-version? e.g. v0.0.0-20181031085051-9002847aa142
m = re.match("(.*)-([0-9]{14})-([a-f0-9]{12})", tag)
m = re.match("(.*)-([0-9.]+)-([a-f0-9]{12})", tag)
if m:
# rpm doesn't like multiple dashes in the version, so just merge the
# timestamp and the commit checksum into the "release" field

20
ignition.rpmlintrc Normal file
View file

@ -0,0 +1,20 @@
# Ignition sources have duplicate files because of how spec versioning is
# implemented
addFilter("ignition-debugsource.x86_64: E: files-duplicated-waste")
# -validate-redistributable is supposed to have binaries in it, and
# doesn't really need docs since it isn't user-facing
addFilter("ignition-validate-redistributable.noarch: E: arch-independent-package-contains-binary-or-object")
addFilter("ignition-validate-redistributable.noarch: W: no-documentation")
# This is documented as optional
# https://fedoraproject.org/wiki/Upgrade_paths_%E2%80%94_renaming_or_splitting_packages#Do_I_need_to_Provide_my_old_package_names.3F
addFilter("ignition-validate-redistributable.noarch: W: obsolete-not-provided ignition-validate-nonlinux")
# "transpiler" is the correct term for what butane does
addFilter("butane.*: E: spelling-error.*transpiler")
# -redistributable packages have binaries but are noarch by design,
# and don't need docs since they aren't user-facing
addFilter("butane-redistributable.noarch: E: arch-independent-package-contains-binary-or-object")
addFilter("butane-redistributable.noarch: W: no-documentation")

File diff suppressed because it is too large Load diff

View file

@ -1,348 +0,0 @@
# Original spec file as generated by:
# gofed repo2spec --detect github.com/coreos/ignition --commit f7079129b8651ac51dba14c3af65692bb413c1dd --with-extra --with-build -f
# With:
# gofed/gofed:v1.0.1 docker image
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
#
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
# Generate devel rpm
%global with_devel 1
# Build project from bundled dependencies
%global with_bundled 0
# Build with debug info rpm
%global with_debug 1
# Run tests in check section
%global with_check 1
# Generate unit-test rpm
%global with_unit_test 1
%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif
%if ! 0%{?gobuild:1}
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
%endif
%global provider github
%global provider_tld com
%global project coreos
%global repo ignition
# https://github.com/coreos/ignition
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
%global commit f7079129b8651ac51dba14c3af65692bb413c1dd
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: golang-%{provider}-%{project}-%{repo}
Version: 0
Release: 0.1.git%{shortcommit}%{?dist}
Summary: !!!!FILL!!!!
# Detected licences
# - Unknown at 'LICENSE'
License: !!!!FILL!!!!
URL: https://%{provider_prefix}
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
%if ! 0%{?with_bundled}
# validate/main.go
BuildRequires: golang(github.com/spf13/cobra)
# Remaining dependencies not included in main packages
BuildRequires: golang(github.com/vmware/vmw-ovflib)
BuildRequires: golang(github.com/coreos/go-systemd/unit)
BuildRequires: golang(github.com/coreos/go-semver/semver)
BuildRequires: golang(github.com/sigma/vmw-guestinfo/vmcheck)
BuildRequires: golang(github.com/pin/tftp)
BuildRequires: golang(github.com/aws/aws-sdk-go/service/s3/s3manager)
BuildRequires: golang(github.com/sigma/vmw-guestinfo/rpcvmx)
BuildRequires: golang(github.com/coreos/go-systemd/dbus)
BuildRequires: golang(github.com/aws/aws-sdk-go/service/s3)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session)
BuildRequires: golang(github.com/vincent-petithory/dataurl)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds)
BuildRequires: golang(github.com/ajeddeloh/go-json)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
BuildRequires: golang(github.com/pborman/uuid)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws)
%endif
%description
%{summary}
%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/ajeddeloh/go-json)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session)
BuildRequires: golang(github.com/aws/aws-sdk-go/service/s3)
BuildRequires: golang(github.com/aws/aws-sdk-go/service/s3/s3manager)
BuildRequires: golang(github.com/coreos/go-semver/semver)
BuildRequires: golang(github.com/coreos/go-systemd/dbus)
BuildRequires: golang(github.com/coreos/go-systemd/unit)
BuildRequires: golang(github.com/pborman/uuid)
BuildRequires: golang(github.com/pin/tftp)
BuildRequires: golang(github.com/sigma/vmw-guestinfo/rpcvmx)
BuildRequires: golang(github.com/sigma/vmw-guestinfo/vmcheck)
BuildRequires: golang(github.com/vincent-petithory/dataurl)
BuildRequires: golang(github.com/vmware/vmw-ovflib)
%endif
Requires: golang(github.com/ajeddeloh/go-json)
Requires: golang(github.com/aws/aws-sdk-go/aws)
Requires: golang(github.com/aws/aws-sdk-go/aws/awserr)
Requires: golang(github.com/aws/aws-sdk-go/aws/credentials)
Requires: golang(github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds)
Requires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
Requires: golang(github.com/aws/aws-sdk-go/aws/session)
Requires: golang(github.com/aws/aws-sdk-go/service/s3)
Requires: golang(github.com/aws/aws-sdk-go/service/s3/s3manager)
Requires: golang(github.com/coreos/go-semver/semver)
Requires: golang(github.com/coreos/go-systemd/dbus)
Requires: golang(github.com/coreos/go-systemd/unit)
Requires: golang(github.com/pborman/uuid)
Requires: golang(github.com/pin/tftp)
Requires: golang(github.com/sigma/vmw-guestinfo/rpcvmx)
Requires: golang(github.com/sigma/vmw-guestinfo/vmcheck)
Requires: golang(github.com/vincent-petithory/dataurl)
Requires: golang(github.com/vmware/vmw-ovflib)
Provides: golang(%{import_path}/config/shared) = %{version}-%{release}
Provides: golang(%{import_path}/config/shared/errors) = %{version}-%{release}
Provides: golang(%{import_path}/config/shared/validations) = %{version}-%{release}
Provides: golang(%{import_path}/config/util) = %{version}-%{release}
Provides: golang(%{import_path}/config/v1) = %{version}-%{release}
Provides: golang(%{import_path}/config/v1/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_0) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_0/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_1) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_1/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_2) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_2/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_3_experimental) = %{version}-%{release}
Provides: golang(%{import_path}/config/v2_3_experimental/types) = %{version}-%{release}
Provides: golang(%{import_path}/config/validate) = %{version}-%{release}
Provides: golang(%{import_path}/config/validate/astjson) = %{version}-%{release}
Provides: golang(%{import_path}/config/validate/astnode) = %{version}-%{release}
Provides: golang(%{import_path}/config/validate/report) = %{version}-%{release}
Provides: golang(%{import_path}/tests) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/files) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/filesystems) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/general) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/networkd) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/partitions) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/regression) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/security) = %{version}-%{release}
Provides: golang(%{import_path}/tests/negative/timeouts) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/files) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/filesystems) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/general) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/networkd) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/oem) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/partitions) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/passwd) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/regression) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/security) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/systemd) = %{version}-%{release}
Provides: golang(%{import_path}/tests/positive/timeouts) = %{version}-%{release}
Provides: golang(%{import_path}/tests/register) = %{version}-%{release}
Provides: golang(%{import_path}/tests/registry) = %{version}-%{release}
Provides: golang(%{import_path}/tests/types) = %{version}-%{release}
%description devel
%{summary}
This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.
%endif
%if 0%{?with_unit_test} && 0%{?with_devel}
%package unit-test-devel
Summary: Unit tests for %{name} package
%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
%endif
# test subpackage tests code from devel subpackage
Requires: %{name}-devel = %{version}-%{release}
%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/stretchr/testify/assert)
%endif
Requires: golang(github.com/stretchr/testify/assert)
%description unit-test-devel
%{summary}
This package contains unit tests for project
providing packages with %{import_path} prefix.
%endif
%prep
%setup -q -n %{repo}-%{commit}
%build
mkdir -p src/%{provider}.%{provider_tld}/%{project}
ln -s ../../../ src/%{import_path}
%if ! 0%{?with_bundled}
export GOPATH=$(pwd):%{gopath}
%else
# No dependency directories so far
export GOPATH=$(pwd):%{gopath}
%endif
#%gobuild -o bin/internal %{import_path}/internal
#%gobuild -o bin/internal/util/tools/docs %{import_path}/internal/util/tools/docs
#%gobuild -o bin/tests/stubs/id-stub %{import_path}/tests/stubs/id-stub
#%gobuild -o bin/tests/stubs/useradd-stub %{import_path}/tests/stubs/useradd-stub
#%gobuild -o bin/tests/stubs/usermod-stub %{import_path}/tests/stubs/usermod-stub
#%gobuild -o bin/validate %{import_path}/validate
%install
install -d -p %{buildroot}%{_bindir}
#install -p -m 0755 bin/internal %{buildroot}%{_bindir}
#install -p -m 0755 bin/internal/util/tools/docs %{buildroot}%{_bindir}
#install -p -m 0755 bin/tests/stubs/id-stub %{buildroot}%{_bindir}
#install -p -m 0755 bin/tests/stubs/useradd-stub %{buildroot}%{_bindir}
#install -p -m 0755 bin/tests/stubs/usermod-stub %{buildroot}%{_bindir}
#install -p -m 0755 bin/validate %{buildroot}%{_bindir}
# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname "*_test.go" | grep -v "vendor") ; do
dirprefix=$(dirname $file)
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
while [ "$dirprefix" != "." ]; do
echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
dirprefix=$(dirname $dirprefix)
done
done
%endif
# testing files for this project
%if 0%{?with_unit_test} && 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test-devel.file-list
for file in $(find . -iname "*_test.go" | grep -v "vendor") ; do
dirprefix=$(dirname $file)
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list
while [ "$dirprefix" != "." ]; do
echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
dirprefix=$(dirname $dirprefix)
done
done
%endif
%if 0%{?with_devel}
sort -u -o devel.file-list devel.file-list
%endif
%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%if ! 0%{?with_bundled}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%else
# Since we aren't packaging up the vendor directory we need to link
# back to it somehow. Hack it up so that we can add the vendor
# directory from BUILD dir as a gopath to be searched when executing
# tests from the BUILDROOT dir.
ln -s ./ ./vendor/src # ./vendor/src -> ./vendor
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
%endif
%if ! 0%{?gotest:1}
%global gotest go test
%endif
%gotest %{import_path}/config/v1
%gotest %{import_path}/config/v1/types
%gotest %{import_path}/config/v2_0
%gotest %{import_path}/config/v2_0/types
%gotest %{import_path}/config/v2_1
%gotest %{import_path}/config/v2_1/types
%gotest %{import_path}/config/v2_2
%gotest %{import_path}/config/v2_2/types
%gotest %{import_path}/config/v2_3_experimental
%gotest %{import_path}/config/v2_3_experimental/types
%gotest %{import_path}/config/validate
%gotest %{import_path}/internal/config
%gotest %{import_path}/internal/exec/stages/files
%gotest %{import_path}/internal/exec/util
%gotest %{import_path}/internal/registry
%gotest %{import_path}/internal/util
%gotest %{import_path}/tests
%endif
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
%files
%license LICENSE
%doc README.md code-of-conduct.md CONTRIBUTING.md
#%{_bindir}/internal
#%{_bindir}/internal/util/tools/docs
#%{_bindir}/tests/stubs/id-stub
#%{_bindir}/tests/stubs/useradd-stub
#%{_bindir}/tests/stubs/usermod-stub
#%{_bindir}/validate
%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE
%doc README.md code-of-conduct.md CONTRIBUTING.md
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
%endif
%if 0%{?with_unit_test} && 0%{?with_devel}
%files unit-test-devel -f unit-test-devel.file-list
%license LICENSE
%doc README.md code-of-conduct.md CONTRIBUTING.md
%endif
%changelog* Thu Aug 30 2018 root - 0-0.1.gitf707912
- First package for Fedora

View file

@ -1,61 +0,0 @@
#grab gofed from https://github.com/gofed/gofed
#follow instructions for install
#choose which version of the repo you want to build. For ignition it was 0.2.6 and the commit was 76107251acd117c6d3e5b4dae2b47f82f944984b
[vagrant@vanilla-f28 ~]$ gofed repo2spec --detect github.com/coreos/ignition --commit 76107251acd117c6d3e5b4dae2b47f82f944984b --with-extra --with-build -f
Repo URL: github.com/coreos/ignition
Commit: 76107251acd117c6d3e5b4dae2b47f82f944984b
Name: golang-github-coreos-ignition
(1/4) Checking if the package already exists in PkgDB
(2/4) Collecting data
(3/4) Generating spec file
(4/4) Discovering golang dependencies
Discovering package dependencies
Class: github.com/ajeddeloh/go-json (golang-github-ajeddeloh-go-json) PkgDB=False
Class: github.com/aws/aws-sdk-go (golang-github-aws-aws-sdk-go) PkgDB=True
Class: github.com/coreos/go-semver (golang-github-coreos-go-semver) PkgDB=True
Class: github.com/coreos/go-systemd (golang-github-coreos-go-systemd) PkgDB=True
Class: github.com/pin/tftp (golang-github-pin-tftp) PkgDB=False
Class: github.com/sigma/vmw-guestinfo (golang-github-sigma-vmw-guestinfo) PkgDB=False
Class: github.com/vincent-petithory/dataurl (golang-github-vincent-petithory-dataurl) PkgDB=False
Class: github.com/vmware/vmw-ovflib (golang-github-vmware-vmw-ovflib) PkgDB=False
Discovering test dependencies
Class: github.com/stretchr/testify (golang-github-stretchr-testify) PkgDB=True
Spec file golang-github-coreos-ignition.spec at /home/vagrant/golang-github-coreos-ignition
# spec file now at /home/vagrant/golang-github-coreos-ignition/golang-github-coreos-ignition.spec
# go through and fix things up - see diff
# generate bundled provides by copying/using go-mods-to-bundled-provides.py to
# the ignition source folder and then running it. copy into spec file
# should be done by gofed at some point - https://github.com/gofed/gofed/issues/42
# grab source tarball
# rpmspec -P ignition.spec | grep Source0
# pushd $HOME/rpmbuild/SOURCES/
# curl -L -O $URL
# popd
# build RPM
$ rpmbuild -ba ignition.spec
# find a srpm in `$HOME/rpmbuild/SRPMS`
# find a RPM in `$HOME/rpmbuild/RPM/arch/`
# see if the dependencies are proper
$ rpm -qpR $HOME/rpmbuild/RPMS/x86_64/ignition-0.26.0-0.1.git7610725.fc28.x86_64.rpm
# setup to run koji, ref: https://fedoraproject.org/wiki/Using_the_Koji_build_system
$ fedora-packager-setup
$ kinit <username>@FEDORAPROJECT.ORG
# to build it on koji run:
$ koji build --scratch rawhide /path/to/srpm/ignition-0.26.0-0.1.git7610725.fc28.src.rpm

5
rpminspect.yaml Normal file
View file

@ -0,0 +1,5 @@
---
debuginfo:
ignore:
- /usr/share/ignition/ignition-validate-*-unknown-linux-gnu-static

View file

@ -1,2 +1,2 @@
SHA512 (ignition-ee616d5.tar.gz) = 179e916ff97b3a6cd98c49cde7f2fbb213afbca29c33a3e58d2ca9c52dd6f51129bb47c72aec82911f251d6c3e43867109dcf6f4b97429b8383f5fc81be04e3f
SHA512 (ignition-dracut-7ff38d9.tar.gz) = acbee4af287ec03b2044d0bf4592ace2f9e36d6daf66251dc1d9214f7f2aa93b92afe11142d0311d7c4b3292e01303ce87111a377f0b83b4116715ec23b31332
SHA512 (ignition-2.27.0.tar.gz) = 7f1ad2da57a196ba0d01b7f2f886f1484edb1f48b8f295f1ad9a4ef9ba2801f0d9d3e9701ec266b4a2446bbf182c50c6733b5ca069ac0c749d77ed342d6a6a9e
SHA512 (ignition-edge-b6c8245.tar.gz) = fb823a7c87c7014fcb38566fcd41b11bd38ff27e1ca2bfe6b76111bbabab0d917bc7ba56af450eab434d1907a056b0b1a0fcd6d29e456a4ba2985ddf74efb155