|
|
c32116 |
# Do not build with tests by default
|
|
|
c32116 |
# Pass --with tests to rpmbuild to override
|
|
|
c32116 |
%bcond_with tests
|
|
|
c32116 |
|
|
|
2766a9 |
# When --with relax_requires is specified osbuild-composer-tests
|
|
|
2766a9 |
# will require osbuild-composer only by name, excluding version/release
|
|
|
2766a9 |
# This is used internally during nightly pipeline testing!
|
|
|
2766a9 |
%bcond_with relax_requires
|
|
|
2766a9 |
|
|
|
c32116 |
%global goipath github.com/osbuild/osbuild-composer
|
|
|
c32116 |
|
|
|
0037c1 |
Version: 76
|
|
|
c32116 |
|
|
|
c32116 |
%gometa
|
|
|
c32116 |
|
|
|
c32116 |
%global common_description %{expand:
|
|
|
c32116 |
A service for building customized OS artifacts, such as VM images and OSTree
|
|
|
c32116 |
commits, that uses osbuild under the hood. Besides building images for local
|
|
|
c32116 |
usage, it can also upload images directly to cloud.
|
|
|
c32116 |
|
|
|
c32116 |
It is compatible with composer-cli and cockpit-composer clients.
|
|
|
c32116 |
}
|
|
|
c32116 |
|
|
|
c32116 |
Name: osbuild-composer
|
|
|
c32116 |
Release: 1%{?dist}
|
|
|
c32116 |
Summary: An image building service based on osbuild
|
|
|
c32116 |
|
|
|
76f291 |
# osbuild-composer doesn't have support for building i686 and armv7hl images
|
|
|
76f291 |
ExcludeArch: i686 armv7hl
|
|
|
c32116 |
|
|
|
c32116 |
# Upstream license specification: Apache-2.0
|
|
|
0037c1 |
License: Apache-2.0
|
|
|
c32116 |
URL: %{gourl}
|
|
|
c32116 |
Source0: %{gosource}
|
|
|
c32116 |
|
|
|
c32116 |
|
|
|
c32116 |
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
|
|
c32116 |
BuildRequires: systemd
|
|
|
c32116 |
BuildRequires: krb5-devel
|
|
|
c32116 |
BuildRequires: python3-docutils
|
|
|
c32116 |
BuildRequires: make
|
|
|
95e3ca |
# Build requirements of 'theproglottis/gpgme' package
|
|
|
95e3ca |
BuildRequires: gpgme-devel
|
|
|
95e3ca |
BuildRequires: libassuan-devel
|
|
|
c32116 |
%if 0%{?fedora}
|
|
|
c32116 |
BuildRequires: systemd-rpm-macros
|
|
|
c32116 |
BuildRequires: git
|
|
|
95e3ca |
# DO NOT REMOVE the BUNDLE_START and BUNDLE_END markers as they are used by 'tools/rpm_spec_add_provides_bundle.sh' to generate the Provides: bundled list
|
|
|
95e3ca |
# BUNDLE_START
|
|
|
95e3ca |
# BUNDLE_END
|
|
|
c32116 |
%endif
|
|
|
c32116 |
|
|
|
c32116 |
Requires: %{name}-core = %{version}-%{release}
|
|
|
c32116 |
Requires: %{name}-worker = %{version}-%{release}
|
|
|
c32116 |
Requires: systemd
|
|
|
c32116 |
|
|
|
c32116 |
Provides: weldr
|
|
|
c32116 |
|
|
|
c32116 |
%description
|
|
|
c32116 |
%{common_description}
|
|
|
c32116 |
|
|
|
c32116 |
%prep
|
|
|
c32116 |
%if 0%{?rhel}
|
|
|
c32116 |
%forgeautosetup -p1
|
|
|
c32116 |
%else
|
|
|
95e3ca |
%goprep -k
|
|
|
c32116 |
%endif
|
|
|
c32116 |
|
|
|
c32116 |
%build
|
|
|
76f291 |
export GOFLAGS="-buildmode=pie"
|
|
|
c32116 |
%if 0%{?rhel}
|
|
|
c32116 |
GO_BUILD_PATH=$PWD/_build
|
|
|
c32116 |
install -m 0755 -vd $(dirname $GO_BUILD_PATH/src/%{goipath})
|
|
|
c32116 |
ln -fs $PWD $GO_BUILD_PATH/src/%{goipath}
|
|
|
c32116 |
cd $GO_BUILD_PATH/src/%{goipath}
|
|
|
c32116 |
install -m 0755 -vd _bin
|
|
|
c32116 |
export PATH=$PWD/_bin${PATH:+:$PATH}
|
|
|
c32116 |
export GOPATH=$GO_BUILD_PATH:%{gopath}
|
|
|
76f291 |
export GOFLAGS+=" -mod=vendor"
|
|
|
c32116 |
%endif
|
|
|
c32116 |
|
|
|
76f291 |
# Set the commit hash so that composer can report what source version
|
|
|
76f291 |
# was used to build it. This has to be set explicitly when calling rpmbuild,
|
|
|
76f291 |
# this script will not attempt to automatically discover it.
|
|
|
76f291 |
%if %{?commit:1}0
|
|
|
76f291 |
export LDFLAGS="${LDFLAGS} -X 'github.com/osbuild/osbuild-composer/internal/common.GitRev=%{commit}'"
|
|
|
76f291 |
%endif
|
|
|
76f291 |
export LDFLAGS="${LDFLAGS} -X 'github.com/osbuild/osbuild-composer/internal/common.RpmVersion=%{name}-%{?epoch:%epoch:}%{version}-%{release}.%{_arch}'"
|
|
|
76f291 |
|
|
|
c32116 |
%gobuild -o _bin/osbuild-composer %{goipath}/cmd/osbuild-composer
|
|
|
c32116 |
%gobuild -o _bin/osbuild-worker %{goipath}/cmd/osbuild-worker
|
|
|
c32116 |
|
|
|
c32116 |
make man
|
|
|
c32116 |
|
|
|
c32116 |
%if %{with tests} || 0%{?rhel}
|
|
|
c32116 |
|
|
|
c32116 |
# Build test binaries with `go test -c`, so that they can take advantage of
|
|
|
c32116 |
# golang's testing package. The golang rpm macros don't support building them
|
|
|
c32116 |
# directly. Thus, do it manually, taking care to also include a build id.
|
|
|
c32116 |
#
|
|
|
c32116 |
# On Fedora, also turn off go modules and set the path to the one into which
|
|
|
c32116 |
# the golang-* packages install source code.
|
|
|
c32116 |
%if 0%{?fedora}
|
|
|
c32116 |
export GO111MODULE=off
|
|
|
c32116 |
export GOPATH=%{gobuilddir}:%{gopath}
|
|
|
c32116 |
%endif
|
|
|
c32116 |
|
|
|
c32116 |
TEST_LDFLAGS="${LDFLAGS:-} -B 0x$(od -N 20 -An -tx1 -w100 /dev/urandom | tr -d ' ')"
|
|
|
c32116 |
|
|
|
c32116 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-composer-cli-tests %{goipath}/cmd/osbuild-composer-cli-tests
|
|
|
c32116 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-dnf-json-tests %{goipath}/cmd/osbuild-dnf-json-tests
|
|
|
c32116 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-weldr-tests %{goipath}/internal/client/
|
|
|
c32116 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-image-tests %{goipath}/cmd/osbuild-image-tests
|
|
|
c32116 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-auth-tests %{goipath}/cmd/osbuild-auth-tests
|
|
|
c32116 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-koji-tests %{goipath}/cmd/osbuild-koji-tests
|
|
|
c32116 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-composer-dbjobqueue-tests %{goipath}/cmd/osbuild-composer-dbjobqueue-tests
|
|
|
76f291 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-composer-manifest-tests %{goipath}/cmd/osbuild-composer-manifest-tests
|
|
|
95e3ca |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-service-maintenance-tests %{goipath}/cmd/osbuild-service-maintenance
|
|
|
76f291 |
go build -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-mock-openid-provider %{goipath}/cmd/osbuild-mock-openid-provider
|
|
|
c32116 |
|
|
|
c32116 |
%endif
|
|
|
c32116 |
|
|
|
c32116 |
%install
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_libexecdir}/osbuild-composer
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-composer %{buildroot}%{_libexecdir}/osbuild-composer/
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-worker %{buildroot}%{_libexecdir}/osbuild-composer/
|
|
|
2766a9 |
install -m 0755 -vp dnf-json %{buildroot}%{_libexecdir}/osbuild-composer/
|
|
|
c32116 |
|
|
|
76f291 |
# Only include repositories for the distribution and release
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/osbuild-composer/repositories
|
|
|
76f291 |
# CentOS also defines rhel so we check for centos first
|
|
|
76f291 |
%if 0%{?centos}
|
|
|
76f291 |
|
|
|
76f291 |
# CentOS 9 supports building for CentOS 8 and later
|
|
|
76f291 |
%if 0%{?centos} >= 9
|
|
|
2766a9 |
install -m 0644 -vp repositories/centos-* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
76f291 |
%else
|
|
|
76f291 |
# CentOS 8 only supports building for CentOS 8
|
|
|
2766a9 |
install -m 0644 -vp repositories/centos-%{centos}* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
2766a9 |
install -m 0644 -vp repositories/centos-stream-%{centos}* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
76f291 |
|
|
|
76f291 |
%endif
|
|
|
76f291 |
%else
|
|
|
76f291 |
%if 0%{?rhel}
|
|
|
76f291 |
# RHEL 9 supports building for RHEL 8 and later
|
|
|
76f291 |
%if 0%{?rhel} >= 9
|
|
|
2766a9 |
install -m 0644 -vp repositories/rhel-* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
76f291 |
|
|
|
76f291 |
%else
|
|
|
76f291 |
# RHEL 8 only supports building for 8
|
|
|
2766a9 |
install -m 0644 -vp repositories/rhel-%{rhel}* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
76f291 |
|
|
|
76f291 |
%endif
|
|
|
76f291 |
%endif
|
|
|
76f291 |
%endif
|
|
|
76f291 |
|
|
|
76f291 |
# Fedora can build for all included fedora releases
|
|
|
76f291 |
%if 0%{?fedora}
|
|
|
2766a9 |
install -m 0644 -vp repositories/fedora-* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
76f291 |
%endif
|
|
|
c32116 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_unitdir}
|
|
|
2766a9 |
install -m 0644 -vp distribution/*.{service,socket} %{buildroot}%{_unitdir}/
|
|
|
c32116 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_sysusersdir}
|
|
|
2766a9 |
install -m 0644 -vp distribution/osbuild-composer.conf %{buildroot}%{_sysusersdir}/
|
|
|
c32116 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_localstatedir}/cache/osbuild-composer/dnf-cache
|
|
|
c32116 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_mandir}/man7
|
|
|
2766a9 |
install -m 0644 -vp docs/*.7 %{buildroot}%{_mandir}/man7/
|
|
|
c32116 |
|
|
|
c32116 |
%if %{with tests} || 0%{?rhel}
|
|
|
c32116 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_libexecdir}/osbuild-composer-test
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-composer-cli-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-weldr-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-dnf-json-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-image-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-auth-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-koji-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-composer-dbjobqueue-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-composer-manifest-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
95e3ca |
install -m 0755 -vp _bin/osbuild-service-maintenance-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp _bin/osbuild-mock-openid-provider %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/define-compose-url.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/provision.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/gen-certs.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/gen-ssh.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/image-info %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/run-koji-container.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/koji-compose.py %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/libvirt_test.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
95e3ca |
install -m 0755 -vp tools/s3_test.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
95e3ca |
install -m 0755 -vp tools/generic_s3_test.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
95e3ca |
install -m 0755 -vp tools/generic_s3_https_test.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
95e3ca |
install -m 0755 -vp tools/run-mock-auth-servers.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/set-env-variables.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vp tools/test-case-generators/generate-test-cases %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_libexecdir}/tests/osbuild-composer
|
|
|
95e3ca |
install -m 0755 -vp test/cases/*.sh %{buildroot}%{_libexecdir}/tests/osbuild-composer/
|
|
|
95e3ca |
|
|
|
95e3ca |
install -m 0755 -vd %{buildroot}%{_libexecdir}/tests/osbuild-composer/api
|
|
|
95e3ca |
install -m 0755 -vp test/cases/api/*.sh %{buildroot}%{_libexecdir}/tests/osbuild-composer/api/
|
|
|
95e3ca |
|
|
|
95e3ca |
install -m 0755 -vd %{buildroot}%{_libexecdir}/tests/osbuild-composer/api/common
|
|
|
95e3ca |
install -m 0755 -vp test/cases/api/common/*.sh %{buildroot}%{_libexecdir}/tests/osbuild-composer/api/common/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/ansible
|
|
|
2766a9 |
install -m 0644 -vp test/data/ansible/* %{buildroot}%{_datadir}/tests/osbuild-composer/ansible/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/azure
|
|
|
2766a9 |
install -m 0644 -vp test/data/azure/* %{buildroot}%{_datadir}/tests/osbuild-composer/azure/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/manifests
|
|
|
2766a9 |
install -m 0644 -vp test/data/manifests/* %{buildroot}%{_datadir}/tests/osbuild-composer/manifests/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/cloud-init
|
|
|
2766a9 |
install -m 0644 -vp test/data/cloud-init/* %{buildroot}%{_datadir}/tests/osbuild-composer/cloud-init/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/composer
|
|
|
2766a9 |
install -m 0644 -vp test/data/composer/* %{buildroot}%{_datadir}/tests/osbuild-composer/composer/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/worker
|
|
|
2766a9 |
install -m 0644 -vp test/data/worker/* %{buildroot}%{_datadir}/tests/osbuild-composer/worker/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/repositories
|
|
|
2766a9 |
install -m 0644 -vp test/data/repositories/* %{buildroot}%{_datadir}/tests/osbuild-composer/repositories/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/kerberos
|
|
|
2766a9 |
install -m 0644 -vp test/data/kerberos/* %{buildroot}%{_datadir}/tests/osbuild-composer/kerberos/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/keyring
|
|
|
2766a9 |
install -m 0644 -vp test/data/keyring/id_rsa.pub %{buildroot}%{_datadir}/tests/osbuild-composer/keyring/
|
|
|
2766a9 |
install -m 0600 -vp test/data/keyring/id_rsa %{buildroot}%{_datadir}/tests/osbuild-composer/keyring/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/koji
|
|
|
2766a9 |
install -m 0644 -vp test/data/koji/* %{buildroot}%{_datadir}/tests/osbuild-composer/koji/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/x509
|
|
|
2766a9 |
install -m 0644 -vp test/data/x509/* %{buildroot}%{_datadir}/tests/osbuild-composer/x509/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/schemas
|
|
|
95e3ca |
install -m 0644 -vp pkg/jobqueue/dbjobqueue/schemas/* %{buildroot}%{_datadir}/tests/osbuild-composer/schemas/
|
|
|
2766a9 |
|
|
|
2766a9 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/upgrade8to9
|
|
|
2766a9 |
install -m 0644 -vp test/data/upgrade8to9/* %{buildroot}%{_datadir}/tests/osbuild-composer/upgrade8to9/
|
|
|
c32116 |
|
|
|
c32116 |
%endif
|
|
|
c32116 |
|
|
|
c32116 |
%check
|
|
|
76f291 |
export GOFLAGS="-buildmode=pie"
|
|
|
c32116 |
%if 0%{?rhel}
|
|
|
76f291 |
export GOFLAGS+=" -mod=vendor"
|
|
|
c32116 |
export GOPATH=$PWD/_build:%{gopath}
|
|
|
c32116 |
# cd inside GOPATH, otherwise go with GO111MODULE=off ignores vendor directory
|
|
|
c32116 |
cd $PWD/_build/src/%{goipath}
|
|
|
c32116 |
%gotest ./...
|
|
|
c32116 |
%else
|
|
|
c32116 |
%gocheck
|
|
|
c32116 |
%endif
|
|
|
c32116 |
|
|
|
c32116 |
%post
|
|
|
c32116 |
%systemd_post osbuild-composer.service osbuild-composer.socket osbuild-composer-api.socket osbuild-remote-worker.socket
|
|
|
c32116 |
|
|
|
c32116 |
%preun
|
|
|
c32116 |
%systemd_preun osbuild-composer.service osbuild-composer.socket osbuild-composer-api.socket osbuild-remote-worker.socket
|
|
|
c32116 |
|
|
|
c32116 |
%postun
|
|
|
c32116 |
%systemd_postun_with_restart osbuild-composer.service osbuild-composer.socket osbuild-composer-api.socket osbuild-remote-worker.socket
|
|
|
c32116 |
|
|
|
c32116 |
%files
|
|
|
c32116 |
%license LICENSE
|
|
|
c32116 |
%doc README.md
|
|
|
c32116 |
%{_mandir}/man7/%{name}.7*
|
|
|
c32116 |
%{_unitdir}/osbuild-composer.service
|
|
|
c32116 |
%{_unitdir}/osbuild-composer.socket
|
|
|
c32116 |
%{_unitdir}/osbuild-composer-api.socket
|
|
|
c32116 |
%{_unitdir}/osbuild-local-worker.socket
|
|
|
c32116 |
%{_unitdir}/osbuild-remote-worker.socket
|
|
|
c32116 |
%{_sysusersdir}/osbuild-composer.conf
|
|
|
c32116 |
|
|
|
c32116 |
%package core
|
|
|
c32116 |
Summary: The core osbuild-composer binary
|
|
|
76f291 |
Requires: %{name}-dnf-json = %{version}-%{release}
|
|
|
c32116 |
|
|
|
c32116 |
%description core
|
|
|
c32116 |
The core osbuild-composer binary. This is suitable both for spawning in containers and by systemd.
|
|
|
c32116 |
|
|
|
c32116 |
%files core
|
|
|
c32116 |
%{_libexecdir}/osbuild-composer/osbuild-composer
|
|
|
c32116 |
%{_datadir}/osbuild-composer/
|
|
|
c32116 |
|
|
|
c32116 |
%package worker
|
|
|
c32116 |
Summary: The worker for osbuild-composer
|
|
|
c32116 |
Requires: systemd
|
|
|
c32116 |
Requires: qemu-img
|
|
|
0037c1 |
Requires: osbuild >= 81
|
|
|
0037c1 |
Requires: osbuild-ostree >= 81
|
|
|
0037c1 |
Requires: osbuild-lvm2 >= 81
|
|
|
0037c1 |
Requires: osbuild-luks2 >= 81
|
|
|
76f291 |
Requires: %{name}-dnf-json = %{version}-%{release}
|
|
|
c32116 |
|
|
|
c32116 |
%description worker
|
|
|
c32116 |
The worker for osbuild-composer
|
|
|
c32116 |
|
|
|
c32116 |
%files worker
|
|
|
c32116 |
%{_libexecdir}/osbuild-composer/osbuild-worker
|
|
|
c32116 |
%{_unitdir}/osbuild-worker@.service
|
|
|
c32116 |
%{_unitdir}/osbuild-remote-worker@.service
|
|
|
c32116 |
|
|
|
c32116 |
%post worker
|
|
|
c32116 |
%systemd_post osbuild-worker@.service osbuild-remote-worker@.service
|
|
|
c32116 |
|
|
|
c32116 |
%preun worker
|
|
|
c32116 |
# systemd_preun uses systemctl disable --now which doesn't work well with template services.
|
|
|
c32116 |
# See https://github.com/systemd/systemd/issues/15620
|
|
|
0037c1 |
# The following lines mimicks its behaviour by running two commands.
|
|
|
0037c1 |
# The scriptlet is supposed to run only when the package is being removed.
|
|
|
0037c1 |
if [ $1 -eq 0 ] && [ -d /run/systemd/system ]; then
|
|
|
76f291 |
# disable and stop all the worker services
|
|
|
76f291 |
systemctl --no-reload disable osbuild-worker@.service osbuild-remote-worker@.service
|
|
|
76f291 |
systemctl stop "osbuild-worker@*.service" "osbuild-remote-worker@*.service"
|
|
|
76f291 |
fi
|
|
|
c32116 |
|
|
|
c32116 |
%postun worker
|
|
|
c32116 |
# restart all the worker services
|
|
|
c32116 |
%systemd_postun_with_restart "osbuild-worker@*.service" "osbuild-remote-worker@*.service"
|
|
|
c32116 |
|
|
|
76f291 |
%package dnf-json
|
|
|
76f291 |
Summary: The dnf-json binary used by osbuild-composer and the workers
|
|
|
76f291 |
|
|
|
76f291 |
# Conflicts with older versions of composer that provide the same files
|
|
|
0037c1 |
# this can be removed when RHEL 8 reaches EOL
|
|
|
76f291 |
Conflicts: osbuild-composer <= 35
|
|
|
76f291 |
|
|
|
76f291 |
%description dnf-json
|
|
|
76f291 |
The dnf-json binary used by osbuild-composer and the workers.
|
|
|
76f291 |
|
|
|
76f291 |
%files dnf-json
|
|
|
76f291 |
%{_libexecdir}/osbuild-composer/dnf-json
|
|
|
76f291 |
|
|
|
0037c1 |
%post dnf-json
|
|
|
0037c1 |
# Fix ownership of the rpmmd cache files from previous versions where it was owned by root:root
|
|
|
0037c1 |
if [ -e /var/cache/osbuild-composer/rpmmd ]; then
|
|
|
0037c1 |
chown -f -R --from root:root _osbuild-composer:_osbuild-composer /var/cache/osbuild-composer/rpmmd
|
|
|
0037c1 |
fi
|
|
|
0037c1 |
|
|
|
c32116 |
%if %{with tests} || 0%{?rhel}
|
|
|
c32116 |
|
|
|
c32116 |
%package tests
|
|
|
c32116 |
Summary: Integration tests
|
|
|
2766a9 |
%if %{with relax_requires}
|
|
|
2766a9 |
Requires: %{name}
|
|
|
2766a9 |
%else
|
|
|
c32116 |
Requires: %{name} = %{version}-%{release}
|
|
|
2766a9 |
%endif
|
|
|
c32116 |
Requires: composer-cli
|
|
|
c32116 |
Requires: createrepo_c
|
|
|
c32116 |
Requires: xorriso
|
|
|
c32116 |
Requires: qemu-kvm-core
|
|
|
c32116 |
Requires: systemd-container
|
|
|
c32116 |
Requires: jq
|
|
|
c32116 |
Requires: unzip
|
|
|
c32116 |
Requires: container-selinux
|
|
|
c32116 |
Requires: dnsmasq
|
|
|
c32116 |
Requires: krb5-workstation
|
|
|
c32116 |
Requires: podman
|
|
|
c32116 |
Requires: python3
|
|
|
c32116 |
Requires: sssd-krb5
|
|
|
c32116 |
Requires: libvirt-client libvirt-daemon
|
|
|
c32116 |
Requires: libvirt-daemon-config-network
|
|
|
c32116 |
Requires: libvirt-daemon-config-nwfilter
|
|
|
c32116 |
Requires: libvirt-daemon-driver-interface
|
|
|
c32116 |
Requires: libvirt-daemon-driver-network
|
|
|
c32116 |
Requires: libvirt-daemon-driver-nodedev
|
|
|
c32116 |
Requires: libvirt-daemon-driver-nwfilter
|
|
|
c32116 |
Requires: libvirt-daemon-driver-qemu
|
|
|
c32116 |
Requires: libvirt-daemon-driver-secret
|
|
|
c32116 |
Requires: libvirt-daemon-driver-storage
|
|
|
c32116 |
Requires: libvirt-daemon-driver-storage-disk
|
|
|
c32116 |
Requires: libvirt-daemon-kvm
|
|
|
c32116 |
Requires: qemu-img
|
|
|
c32116 |
Requires: qemu-kvm
|
|
|
2766a9 |
Requires: rpmdevtools
|
|
|
c32116 |
Requires: virt-install
|
|
|
c32116 |
Requires: expect
|
|
|
c32116 |
Requires: python3-lxml
|
|
|
c32116 |
Requires: httpd
|
|
|
c32116 |
Requires: mod_ssl
|
|
|
c32116 |
Requires: openssl
|
|
|
76f291 |
Requires: firewalld
|
|
|
c32116 |
Requires: podman-plugins
|
|
|
c32116 |
Requires: dnf-plugins-core
|
|
|
c32116 |
Requires: skopeo
|
|
|
95e3ca |
Requires: make
|
|
|
95e3ca |
Requires: python3-pip
|
|
|
c32116 |
%if 0%{?fedora}
|
|
|
c32116 |
# koji and ansible are not in RHEL repositories. Depending on them breaks RHEL
|
|
|
c32116 |
# gating (see OSCI-1541). The test script must enable EPEL and install those
|
|
|
c32116 |
# packages manually.
|
|
|
c32116 |
Requires: koji
|
|
|
c32116 |
Requires: ansible
|
|
|
c32116 |
%endif
|
|
|
c32116 |
%ifarch %{arm}
|
|
|
c32116 |
Requires: edk2-aarch64
|
|
|
c32116 |
%endif
|
|
|
c32116 |
|
|
|
c32116 |
%description tests
|
|
|
c32116 |
Integration tests to be run on a pristine-dedicated system to test the osbuild-composer package.
|
|
|
c32116 |
|
|
|
c32116 |
%files tests
|
|
|
c32116 |
%{_libexecdir}/osbuild-composer-test/
|
|
|
c32116 |
%{_libexecdir}/tests/osbuild-composer/
|
|
|
c32116 |
%{_datadir}/tests/osbuild-composer/
|
|
|
c32116 |
|
|
|
c32116 |
%endif
|
|
|
c32116 |
|
|
|
c32116 |
%changelog
|
|
|
0037c1 |
* Wed Mar 01 2023 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 76-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Wed Feb 22 2023 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 75-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Wed Feb 08 2023 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 74-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Wed Jan 25 2023 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 73-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Wed Jan 11 2023 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 72-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Wed Dec 28 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 71-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Wed Dec 14 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 70-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Wed Nov 30 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 69-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Wed Nov 16 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 68-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Thu Nov 03 2022 Tomas Hozza <thozza@redhat.com> - 67-2
|
|
|
0037c1 |
- Fix functional tests to make them pass in RHEL-9.2 gating
|
|
|
0037c1 |
|
|
|
0037c1 |
* Wed Nov 02 2022 imagebuilder-bots+imagebuilder-bot@redhat.com <imagebuilder-bot> - 67-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
0037c1 |
* Mon Aug 29 2022 Ondřej Budai <ondrej@budai.cz> - 62-1
|
|
|
0037c1 |
- New upstream release
|
|
|
0037c1 |
|
|
|
95e3ca |
* Wed Aug 24 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 60-1
|
|
|
95e3ca |
- New upstream release
|
|
|
95e3ca |
|
|
|
95e3ca |
* Wed Aug 10 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 59-1
|
|
|
95e3ca |
- New upstream release
|
|
|
95e3ca |
|
|
|
95e3ca |
* Thu Jul 28 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 58-1
|
|
|
95e3ca |
- New upstream release
|
|
|
95e3ca |
|
|
|
95e3ca |
* Wed Jul 13 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 57-1
|
|
|
95e3ca |
- New upstream release
|
|
|
95e3ca |
|
|
|
95e3ca |
* Wed Jun 15 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 55-1
|
|
|
95e3ca |
- New upstream release
|
|
|
95e3ca |
|
|
|
95e3ca |
* Wed Jun 01 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 54-1
|
|
|
95e3ca |
- New upstream release
|
|
|
95e3ca |
|
|
|
95e3ca |
* Fri May 20 2022 imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> - 53-1
|
|
|
95e3ca |
- New upstream release
|
|
|
95e3ca |
|
|
|
95e3ca |
* Wed May 04 2022 Ondřej Budai <ondrej@budai.cz> - 51-1
|
|
|
95e3ca |
- New upstream release
|
|
|
95e3ca |
|
|
|
a2bcd3 |
* Mon Feb 28 2022 Simon Steinbeiss <simon.steinbeiss@redhat.com> - 46-1
|
|
|
a2bcd3 |
- New upstream release
|
|
|
a2bcd3 |
|
|
|
2766a9 |
* Fri Feb 18 2022 Ondřej Budai <ondrej@budai.cz> - 45-1
|
|
|
2766a9 |
- New upstream release
|
|
|
2766a9 |
|
|
|
2766a9 |
* Fri Feb 11 2022 Thomas Lavocat <tlavocat@redhat.com> - 44-1
|
|
|
2766a9 |
- New upstream release
|
|
|
2766a9 |
|
|
|
2766a9 |
* Wed Jan 26 2022 Thomas Lavocat <tlavocat@redhat.com> - 43-1
|
|
|
2766a9 |
- New upstream release
|
|
|
2766a9 |
|
|
|
2766a9 |
* Wed Jan 12 2022 Thomas Lavocat <tlavocat@redhat.com> - 42-1
|
|
|
2766a9 |
- New upstream release
|
|
|
2766a9 |
|
|
|
2766a9 |
* Wed Dec 22 2021 Ondřej Budai <ondrej@budai.cz> - 41-1
|
|
|
2766a9 |
- New upstream release
|
|
|
2766a9 |
|
|
|
76f291 |
* Thu Dec 09 2021 Ondřej Budai <ondrej@budai.cz> - 40-1
|
|
|
76f291 |
- New upstream release
|
|
|
76f291 |
|
|
|
76f291 |
* Wed Nov 24 2021 Chloe Kaubisch <chloe.kaubisch@gmail.com> - 39-1
|
|
|
76f291 |
- New upstream release
|
|
|
76f291 |
|
|
|
76f291 |
* Fri Nov 12 2021 'Diaa Sami' <'<disami@redhat.com>'> - 38-1
|
|
|
76f291 |
- New upstream release
|
|
|
76f291 |
|
|
|
76f291 |
* Tue Nov 02 2021 lavocatt - 37-1
|
|
|
76f291 |
- New upstream release
|
|
|
76f291 |
|
|
|
76f291 |
* Thu Oct 14 2021 Achilleas Koutsou <achilleas@redhat.com> - 36-1
|
|
|
76f291 |
- New upstream release
|
|
|
76f291 |
|
|
|
c32116 |
* Mon Aug 30 2021 Tom Gundersen <teg@jklm.no> - 33-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Sun Aug 29 2021 Tom Gundersen <teg@jklm.no> - 32-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Sun Aug 15 2021 Ondřej Budai <ondrej@budai.cz> - 31-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 30-2
|
|
|
c32116 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
c32116 |
Related: rhbz#1991688
|
|
|
c32116 |
|
|
|
c32116 |
* Fri Jul 02 2021 Ondřej Budai <ondrej@budai.cz> - 30-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 29-3
|
|
|
c32116 |
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
c32116 |
Related: rhbz#1971065
|
|
|
c32116 |
|
|
|
c32116 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 29-2
|
|
|
c32116 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
c32116 |
|
|
|
c32116 |
* Fri Mar 05 2021 Martin Sehnoutka <msehnout@redhat.com> - 29-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Sat Feb 20 2021 Martin Sehnoutka <msehnout@redhat.com> - 28-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Thu Feb 04 2021 Ondrej Budai <obudai@redhat.com> - 27-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 26-3
|
|
|
c32116 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
c32116 |
|
|
|
c32116 |
* Thu Dec 17 2020 Ondrej Budai <obudai@redhat.com> - 26-2
|
|
|
c32116 |
- Fix the compatibility with a new golang-github-azure-storage-blob 0.12
|
|
|
c32116 |
|
|
|
c32116 |
* Thu Dec 17 2020 Ondrej Budai <obudai@redhat.com> - 26-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Thu Nov 19 2020 Ondrej Budai <obudai@redhat.com> - 25-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Thu Nov 12 2020 Ondrej Budai <obudai@redhat.com> - 24-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Fri Nov 06 2020 Ondrej Budai <obudai@redhat.com> - 23-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Fri Oct 16 2020 Ondrej Budai <obudai@redhat.com> - 22-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Sun Aug 23 2020 Tom Gundersen <teg@jklm.no> - 20-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Tue Aug 11 2020 Tom Gundersen <teg@jklm.no> - 19-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18-2
|
|
|
c32116 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
c32116 |
|
|
|
c32116 |
* Wed Jul 22 2020 Ondrej Budai <obudai@redhat.com> - 18-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Wed Jul 08 2020 Ondrej Budai <obudai@redhat.com> - 17-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Mon Jun 29 2020 Ondrej Budai <obudai@redhat.com> - 16-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Fri Jun 12 2020 Ondrej Budai <obudai@redhat.com> - 15-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Thu Jun 04 2020 Ondrej Budai <obudai@redhat.com> - 14-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Fri May 29 2020 Ondrej Budai <obudai@redhat.com> - 13-2
|
|
|
c32116 |
- Add missing osbuild-ostree dependency
|
|
|
c32116 |
|
|
|
c32116 |
* Thu May 28 2020 Ondrej Budai <obudai@redhat.com> - 13-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Thu May 14 2020 Ondrej Budai <obudai@redhat.com> - 12-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Wed Apr 29 2020 Ondrej Budai <obudai@redhat.com> - 11-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Wed Apr 15 2020 Ondrej Budai <obudai@redhat.com> - 10-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Wed Apr 01 2020 Ondrej Budai <obudai@redhat.com> - 9-1
|
|
|
c32116 |
- New upstream release
|
|
|
c32116 |
|
|
|
c32116 |
* Mon Mar 23 2020 Ondrej Budai <obudai@redhat.com> - 8-1
|
|
|
c32116 |
- Initial package (renamed from golang-github-osbuild-composer)
|