1
0

Accepting request 1167485 from home:ojkastl_buildservice:Branch_devel_kubic

new package coreos-installer: Installer for the RedHat/Fedora CoreOS disk images

OBS-URL: https://build.opensuse.org/request/show/1167485
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/coreos-installer?expand=0&rev=1
This commit is contained in:
Richard Brown 2024-04-17 14:19:24 +00:00 committed by Git OBS Bridge
commit 41a9727357
9 changed files with 152 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

22
_service Normal file
View File

@ -0,0 +1,22 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/coreos/coreos-installer</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v0.21.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="manual">
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="cargo_vendor" mode="manual">
<param name="update">true</param>
<param name="srcdir">coreos-installer</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/coreos/coreos-installer</param>
<param name="changesrevision">555533a454c393b37e5de9f7439ba0626775ddf8</param></service></servicedata>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3f6999c22593e22ffabe51b96303bf047255e49d4b517223afef87a7a56b99f2
size 971788

5
coreos-installer.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Fri Apr 12 05:47:36 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package coreos-installer: Installer for the RedHat/Fedora
CoreOS disk images

4
coreos-installer.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: coreos-installer
version: 0.21.0
mtime: 1708623677
commit: 555533a454c393b37e5de9f7439ba0626775ddf8

87
coreos-installer.spec Normal file
View File

@ -0,0 +1,87 @@
#
# spec file for package coreos-installer
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: coreos-installer
Version: 0.21.0
Release: 0
Summary: Installer for CoreOS disk images
License: Apache-2.0
URL: https://github.com/openshift/coreos-installer
Source0: coreos-installer-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo >= 1.76
BuildRequires: cargo-packaging
BuildRequires: openssl-devel
BuildRequires: libzstd-devel
BuildRequires: gnupg
%description
coreos-installer is a program to assist with installing Fedora CoreOS (FCOS) and
Red Hat Enterprise Linux CoreOS (RHCOS). It can do the following:
* Install the operating system to a target disk, optionally customizing it with
an Ignition config or first-boot kernel parameters (coreos-installer install)
* Download and verify an operating system image for various cloud,
virtualization, or bare metal platforms (coreos-installer download)
* List Fedora CoreOS images available for download
(coreos-installer list-stream)
* Embed an Ignition config in a live ISO image to customize the running system
that boots from it (coreos-installer iso ignition)
* Wrap an Ignition config in an initrd image that can be appended to the live
* PXE initramfs to customize the running system that boots from it
(coreos-installer pxe ignition)
The options available for each subcommand are available in the Command Line
Reference or via the --help option.
Take a look at the [Getting Started
Guide](https://github.com/coreos/coreos-installer/blob/main/docs/getting-started.md)
for more information regarding how to download and use coreos-installer.
%prep
%autosetup -p 1 -a 1
mkdir -p .cargo
rm -vf .cargo/config.toml
%build
%{cargo_build} --features docgen,rdcore
PROFILE=release docs/_cmd.sh
PROFILE=release docs/_config-file.sh
./target/release/coreos-installer pack man -C man
./target/release/coreos-installer pack example-config >> example-config.yaml
%install
install -D -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
install -D -d -m 0755 %{buildroot}%{_mandir}/man8/
for manpage in man/coreos-installer*
do
install -m 0644 "${manpage}" %{buildroot}%{_mandir}/man8/
done
%check
%{cargo_test}
%files
%doc README.md example-config.yaml
%license LICENSE
%{_bindir}/%{name}
%{_mandir}/man8/coreos-installer*
%changelog

3
vendor.tar.zst Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:966531d9d6d85f0c6f1de5013a96d25e0d7137a042885a8b294f2d8c34f7e242
size 24134338