Factory/baremetal-operator/baremetal-operator.spec
Nicolas Belouin fa1da01c29 Fix obsinfo tar issues
Signed-off-by: Nicolas Belouin <nicolas.belouin@suse.com>
(cherry picked from commit dccf206a98ebb292fb75977db0e55baf2eea21ebdec7261bcfd5a1a10afb4cd2)
(cherry picked from commit 7f93226cd33d1abfa2f6a95a14834da88c4ad853b3dd59e44761a71bff86106f)
2025-02-24 16:00:50 +01:00

68 lines
2.4 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package baremetal-operator
#
# Copyright (c) 2023 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: baremetal-operator
Version: 0.8.0
Release: 0.8.0
Summary: Implements a Kubernetes API for managing bare metal hosts
License: Apache-2.0
URL: https://github.com/metal3-io/baremetal-operator
Source: baremetal-operator-%{version}.tar
Source1: vendor.tar.gz
BuildRequires: golang(API) = 1.22
ExcludeArch: s390
ExcludeArch: %{ix86}
%description
The Bare Metal Operator implements a Kubernetes API for managing bare metal hosts.
It maintains an inventory of available hosts as instances of the BareMetalHost Custom Resource Definition.
The Bare Metal Operator knows how to:
Inspect the hosts hardware details and report them on the corresponding BareMetalHost.
This includes information about CPUs, RAM, disks, NICs, and more.
Provision hosts with a desired image.
Clean a hosts disk contents before or after provisioning.
More capabilities are being added regularly. See open issues and pull requests for more information on work in progress.
For more information about Metal³, the Bare Metal Operator, and other related components, see the Metal³ docs.
%prep
%autosetup -a1 -n baremetal-operator-%{version} -p1
%build
%define buildtime %(date +%%Y-%%m-%%dT%%H:%%M:%%S%%z)
%define buildcommit %%SOURCE_COMMIT%%
%define buildflags "-X github.com/metal3-io/baremetal-operator/pkg/version.Raw=%{version}\
-X github.com/metal3-io/baremetal-operator/pkg/version.BuildTime=%{buildtime}\
-X github.com/metal3-io/baremetal-operator/pkg/version.Commit=%{buildcommit}"
go build \
-mod=vendor \
-buildmode=pie \
-ldflags %{buildflags}
%install
install -D -m0755 baremetal-operator %{buildroot}%{_bindir}/baremetal-operator
%files
%license LICENSE
%doc README.md
%{_bindir}/baremetal-operator
%changelog