From 03bf707f0de90c996f4eeb580737d48828a325b4 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Feb 10 2021 06:12:20 +0000 Subject: import osbuild-composer-27-1.el8 --- diff --git a/.gitignore b/.gitignore index 6cb687b..7703132 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/osbuild-composer-26.tar.gz +SOURCES/osbuild-composer-27.tar.gz diff --git a/.osbuild-composer.metadata b/.osbuild-composer.metadata index 35c9216..f6d59b1 100644 --- a/.osbuild-composer.metadata +++ b/.osbuild-composer.metadata @@ -1 +1 @@ -0e832aad70836e923540a3c36114758e475aa090 SOURCES/osbuild-composer-26.tar.gz +0f836480033ccfe2d33722546ce5f2a5b262e0b3 SOURCES/osbuild-composer-27.tar.gz diff --git a/SPECS/osbuild-composer.spec b/SPECS/osbuild-composer.spec index 382e59e..7819d09 100644 --- a/SPECS/osbuild-composer.spec +++ b/SPECS/osbuild-composer.spec @@ -4,7 +4,7 @@ %global goipath github.com/osbuild/osbuild-composer -Version: 26 +Version: 27 %gometa @@ -56,9 +56,9 @@ BuildRequires: golang(github.com/ubccr/kerby) BuildRequires: golang(github.com/vmware/govmomi) %endif +Requires: %{name}-core = %{version}-%{release} Requires: %{name}-worker = %{version}-%{release} Requires: systemd -Requires: qemu-img Provides: weldr @@ -91,17 +91,19 @@ Obsoletes: osbuild-composer-koji <= 23 %endif %if 0%{?fedora} && 0%{?fedora} <= 32 -# Fedora 32 and older ships a different kolo/xmlrpc API. We cannot specify -# build tags in gobuild macro because the macro itself specifies build tags. -# and -tags argument cannot be used more than once. +# Fedora 32 and older ships different kolo/xmlrpc and azure/azblob APIs. We +# cannot specify build tags in gobuild macro because the macro itself +# specifies build tags and -tags argument cannot be used more than once. # Therefore, this ugly hack with build tags switcharoo is required. # Remove when F32 is EOL. -# Remove the build constraint from the wrapper of the old API +# Remove the build constraint from the wrappers of the old APIs sed -i "s$// +build kolo_xmlrpc_oldapi$// +build !kolo_xmlrpc_oldapi$" internal/upload/koji/xmlrpc-response-oldapi.go +sed -i "s$// +build azblob_oldapi$// +build !azblob_oldapi$" internal/upload/azure/page_blob_url_oldapi.go -# Add a build constraint to the wrapper of the new API +# Add a build constraint to the wrappers of the new APIs sed -i "s$// +build !kolo_xmlrpc_oldapi$// +build kolo_xmlrpc_oldapi$" internal/upload/koji/xmlrpc-response.go +sed -i "s$// +build !azblob_oldapi$// +build azblob_oldapi$" internal/upload/azure/page_blob_url.go %endif %build @@ -177,6 +179,7 @@ install -m 0755 -vp _bin/osbuild-auth-tests %{buildroot}%{_l install -m 0755 -vp _bin/osbuild-koji-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/ install -m 0755 -vp _bin/cloud-cleaner %{buildroot}%{_libexecdir}/osbuild-composer-test/ install -m 0755 -vp tools/provision.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/ +install -m 0755 -vp tools/gen-certs.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/ install -m 0755 -vp tools/image-info %{buildroot}%{_libexecdir}/osbuild-composer-test/ install -m 0755 -vp tools/run-koji-container.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/ install -m 0755 -vp tools/koji-compose.py %{buildroot}%{_libexecdir}/osbuild-composer-test/ @@ -247,9 +250,6 @@ cd $PWD/_build/src/%{goipath} %license LICENSE %doc README.md %{_mandir}/man7/%{name}.7* -%{_libexecdir}/osbuild-composer/osbuild-composer -%{_libexecdir}/osbuild-composer/dnf-json -%{_datadir}/osbuild-composer/ %{_unitdir}/osbuild-composer.service %{_unitdir}/osbuild-composer.socket %{_unitdir}/osbuild-composer-api.socket @@ -257,9 +257,21 @@ cd $PWD/_build/src/%{goipath} %{_unitdir}/osbuild-remote-worker.socket %{_sysusersdir}/osbuild-composer.conf +%package core +Summary: The core osbuild-composer binary + +%description core +The core osbuild-composer binary. This is suitable both for spawning in containers and by systemd. + +%files core +%{_libexecdir}/osbuild-composer/osbuild-composer +%{_libexecdir}/osbuild-composer/dnf-json +%{_datadir}/osbuild-composer/ + %package worker Summary: The worker for osbuild-composer Requires: systemd +Requires: qemu-img Requires: osbuild >= 23 Requires: osbuild-ostree >= 23 @@ -306,8 +318,6 @@ Requires: unzip Requires: container-selinux Requires: dnsmasq Requires: krb5-workstation -# disabled downstream for now, see https://github.com/osbuild/osbuild-composer/pull/1123 -#Requires: koji Requires: podman Requires: python3 Requires: sssd-krb5 @@ -328,12 +338,15 @@ Requires: qemu-kvm Requires: virt-install Requires: expect Requires: python3-lxml -# disabled downstream for now, see https://github.com/osbuild/osbuild-composer/pull/1123 -#Requires: ansible Requires: httpd Requires: openssl %if 0%{?fedora} Requires: podman-plugins +# koji and ansible are not in RHEL repositories. Depending on them breaks RHEL +# gating (see OSCI-1541). The test script must enable EPEL and install those +# packages manually. +Requires: koji +Requires: ansible %endif %ifarch %{arm} Requires: edk2-aarch64 @@ -350,6 +363,9 @@ Integration tests to be run on a pristine-dedicated system to test the osbuild-c %endif %changelog +* Fri Feb 05 2021 Ondrej Budai - 27-1 +- New upstream release + * Thu Dec 17 2020 Ondrej Budai - 26-1 - New upstream release