|
|
ff3eb5 |
# Do not build with tests by default
|
|
|
ff3eb5 |
# Pass --with tests to rpmbuild to override
|
|
|
ff3eb5 |
%bcond_with tests
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%global goipath github.com/osbuild/osbuild-composer
|
|
|
ff3eb5 |
|
|
|
577a51 |
Version: 28.4
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%gometa
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%global common_description %{expand:
|
|
|
ff3eb5 |
An image building service based on osbuild
|
|
|
ff3eb5 |
It is inspired by lorax-composer and exposes the same API.
|
|
|
ff3eb5 |
As such, it is a drop-in replacement.
|
|
|
ff3eb5 |
}
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
Name: osbuild-composer
|
|
|
03fbea |
Release: 1%{?dist}.0.1
|
|
|
ff3eb5 |
Summary: An image building service based on osbuild
|
|
|
ff3eb5 |
|
|
|
8446a8 |
# osbuild-composer doesn't have support for building i686 images
|
|
|
8446a8 |
# and also RHEL and Fedora has now only limited support for this arch.
|
|
|
8446a8 |
ExcludeArch: i686
|
|
|
8446a8 |
|
|
|
ff3eb5 |
# Upstream license specification: Apache-2.0
|
|
|
ff3eb5 |
License: ASL 2.0
|
|
|
ff3eb5 |
URL: %{gourl}
|
|
|
ff3eb5 |
Source0: %{gosource}
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
|
|
ff3eb5 |
BuildRequires: systemd
|
|
|
1b8337 |
BuildRequires: krb5-devel
|
|
|
1b8337 |
BuildRequires: python3-docutils
|
|
|
1b8337 |
BuildRequires: make
|
|
|
ff3eb5 |
%if 0%{?fedora}
|
|
|
ff3eb5 |
BuildRequires: systemd-rpm-macros
|
|
|
ff3eb5 |
BuildRequires: git
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/aws/aws-sdk-go)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/Azure/azure-sdk-for-go)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/Azure/azure-storage-blob-go/azblob)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/BurntSushi/toml)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/coreos/go-semver/semver)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/coreos/go-systemd/activation)
|
|
|
1b8337 |
BuildRequires: golang(github.com/deepmap/oapi-codegen/pkg/codegen)
|
|
|
1b8337 |
BuildRequires: golang(github.com/go-chi/chi)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/google/uuid)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/julienschmidt/httprouter)
|
|
|
887cf4 |
BuildRequires: golang(github.com/getkin/kin-openapi/openapi3)
|
|
|
1b8337 |
BuildRequires: golang(github.com/kolo/xmlrpc)
|
|
|
1b8337 |
BuildRequires: golang(github.com/labstack/echo/v4)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/gobwas/glob)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/google/go-cmp/cmp)
|
|
|
a525eb |
BuildRequires: golang(github.com/gophercloud/gophercloud)
|
|
|
ff3eb5 |
BuildRequires: golang(github.com/stretchr/testify/assert)
|
|
|
1b8337 |
BuildRequires: golang(github.com/ubccr/kerby)
|
|
|
731db9 |
BuildRequires: golang(github.com/vmware/govmomi)
|
|
|
ff3eb5 |
%endif
|
|
|
ff3eb5 |
|
|
|
03bf70 |
Requires: %{name}-core = %{version}-%{release}
|
|
|
a525eb |
Requires: %{name}-worker = %{version}-%{release}
|
|
|
ff3eb5 |
Requires: systemd
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
Provides: weldr
|
|
|
ff3eb5 |
|
|
|
a525eb |
%if 0%{?rhel}
|
|
|
8b4b2a |
Obsoletes: lorax-composer <= 29
|
|
|
a525eb |
Conflicts: lorax-composer
|
|
|
a525eb |
%endif
|
|
|
a525eb |
|
|
|
1b8337 |
# Remove when we stop releasing into Fedora 35
|
|
|
1b8337 |
%if 0%{?fedora} >= 34
|
|
|
1b8337 |
# lorax 34.3 is the first one without the composer subpackage
|
|
|
1b8337 |
Obsoletes: lorax-composer < 34.3
|
|
|
1b8337 |
%endif
|
|
|
1b8337 |
|
|
|
ff3eb5 |
# remove in F34
|
|
|
ff3eb5 |
Obsoletes: golang-github-osbuild-composer < %{version}-%{release}
|
|
|
ff3eb5 |
Provides: golang-github-osbuild-composer = %{version}-%{release}
|
|
|
ff3eb5 |
|
|
|
1b8337 |
# remove when F34 is EOL
|
|
|
1b8337 |
Obsoletes: osbuild-composer-koji <= 23
|
|
|
1b8337 |
|
|
|
ff3eb5 |
%description
|
|
|
ff3eb5 |
%{common_description}
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%prep
|
|
|
ff3eb5 |
%if 0%{?rhel}
|
|
|
ff3eb5 |
%forgeautosetup -p1
|
|
|
ff3eb5 |
%else
|
|
|
ff3eb5 |
%goprep
|
|
|
ff3eb5 |
%endif
|
|
|
ff3eb5 |
|
|
|
1b8337 |
%if 0%{?fedora} && 0%{?fedora} <= 32
|
|
|
03bf70 |
# Fedora 32 and older ships different kolo/xmlrpc and azure/azblob APIs. We
|
|
|
03bf70 |
# cannot specify build tags in gobuild macro because the macro itself
|
|
|
03bf70 |
# specifies build tags and -tags argument cannot be used more than once.
|
|
|
1b8337 |
# Therefore, this ugly hack with build tags switcharoo is required.
|
|
|
1b8337 |
# Remove when F32 is EOL.
|
|
|
1b8337 |
|
|
|
03bf70 |
# Remove the build constraint from the wrappers of the old APIs
|
|
|
1b8337 |
sed -i "s$// +build kolo_xmlrpc_oldapi$// +build !kolo_xmlrpc_oldapi$" internal/upload/koji/xmlrpc-response-oldapi.go
|
|
|
03bf70 |
sed -i "s$// +build azblob_oldapi$// +build !azblob_oldapi$" internal/upload/azure/page_blob_url_oldapi.go
|
|
|
1b8337 |
|
|
|
03bf70 |
# Add a build constraint to the wrappers of the new APIs
|
|
|
1b8337 |
sed -i "s$// +build !kolo_xmlrpc_oldapi$// +build kolo_xmlrpc_oldapi$" internal/upload/koji/xmlrpc-response.go
|
|
|
03bf70 |
sed -i "s$// +build !azblob_oldapi$// +build azblob_oldapi$" internal/upload/azure/page_blob_url.go
|
|
|
1b8337 |
%endif
|
|
|
1b8337 |
|
|
|
ff3eb5 |
%build
|
|
|
ff3eb5 |
%if 0%{?rhel}
|
|
|
ff3eb5 |
GO_BUILD_PATH=$PWD/_build
|
|
|
ff3eb5 |
install -m 0755 -vd $(dirname $GO_BUILD_PATH/src/%{goipath})
|
|
|
ff3eb5 |
ln -fs $PWD $GO_BUILD_PATH/src/%{goipath}
|
|
|
ff3eb5 |
cd $GO_BUILD_PATH/src/%{goipath}
|
|
|
ff3eb5 |
install -m 0755 -vd _bin
|
|
|
ff3eb5 |
export PATH=$PWD/_bin${PATH:+:$PATH}
|
|
|
ff3eb5 |
export GOPATH=$GO_BUILD_PATH:%{gopath}
|
|
|
ff3eb5 |
export GOFLAGS=-mod=vendor
|
|
|
ff3eb5 |
%endif
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%gobuild -o _bin/osbuild-composer %{goipath}/cmd/osbuild-composer
|
|
|
ff3eb5 |
%gobuild -o _bin/osbuild-worker %{goipath}/cmd/osbuild-worker
|
|
|
ff3eb5 |
|
|
|
1b8337 |
make man
|
|
|
ff3eb5 |
|
|
|
8446a8 |
%if %{with tests} || 0%{?rhel}
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
# Build test binaries with `go test -c`, so that they can take advantage of
|
|
|
ff3eb5 |
# golang's testing package. The golang rpm macros don't support building them
|
|
|
ff3eb5 |
# directly. Thus, do it manually, taking care to also include a build id.
|
|
|
ff3eb5 |
#
|
|
|
ff3eb5 |
# On Fedora, also turn off go modules and set the path to the one into which
|
|
|
ff3eb5 |
# the golang-* packages install source code.
|
|
|
ff3eb5 |
%if 0%{?fedora}
|
|
|
ff3eb5 |
export GO111MODULE=off
|
|
|
ff3eb5 |
export GOPATH=%{gobuilddir}:%{gopath}
|
|
|
ff3eb5 |
%endif
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
TEST_LDFLAGS="${LDFLAGS:-} -B 0x$(od -N 20 -An -tx1 -w100 /dev/urandom | tr -d ' ')"
|
|
|
ff3eb5 |
|
|
|
1b8337 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-composer-cli-tests %{goipath}/cmd/osbuild-composer-cli-tests
|
|
|
ff3eb5 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-dnf-json-tests %{goipath}/cmd/osbuild-dnf-json-tests
|
|
|
ff3eb5 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-weldr-tests %{goipath}/internal/client/
|
|
|
ff3eb5 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-image-tests %{goipath}/cmd/osbuild-image-tests
|
|
|
1b8337 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-auth-tests %{goipath}/cmd/osbuild-auth-tests
|
|
|
1b8337 |
go test -c -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/osbuild-koji-tests %{goipath}/cmd/osbuild-koji-tests
|
|
|
1b8337 |
go build -tags=integration -ldflags="${TEST_LDFLAGS}" -o _bin/cloud-cleaner %{goipath}/cmd/cloud-cleaner
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%endif
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%install
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_libexecdir}/osbuild-composer
|
|
|
1b8337 |
install -m 0755 -vp _bin/osbuild-composer %{buildroot}%{_libexecdir}/osbuild-composer/
|
|
|
1b8337 |
install -m 0755 -vp _bin/osbuild-worker %{buildroot}%{_libexecdir}/osbuild-composer/
|
|
|
1b8337 |
install -m 0755 -vp dnf-json %{buildroot}%{_libexecdir}/osbuild-composer/
|
|
|
1b8337 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/osbuild-composer/repositories
|
|
|
1b8337 |
install -m 0644 -vp repositories/* %{buildroot}%{_datadir}/osbuild-composer/repositories/
|
|
|
ff3eb5 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_unitdir}
|
|
|
1b8337 |
install -m 0644 -vp distribution/*.{service,socket} %{buildroot}%{_unitdir}/
|
|
|
ff3eb5 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_sysusersdir}
|
|
|
1b8337 |
install -m 0644 -vp distribution/osbuild-composer.conf %{buildroot}%{_sysusersdir}/
|
|
|
ff3eb5 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_localstatedir}/cache/osbuild-composer/dnf-cache
|
|
|
ff3eb5 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_mandir}/man7
|
|
|
1b8337 |
install -m 0644 -vp docs/*.7 %{buildroot}%{_mandir}/man7/
|
|
|
ff3eb5 |
|
|
|
8446a8 |
%if %{with tests} || 0%{?rhel}
|
|
|
ff3eb5 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_libexecdir}/osbuild-composer-test
|
|
|
1b8337 |
install -m 0755 -vp _bin/osbuild-composer-cli-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp _bin/osbuild-weldr-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp _bin/osbuild-dnf-json-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp _bin/osbuild-image-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp _bin/osbuild-auth-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp _bin/osbuild-koji-tests %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp _bin/cloud-cleaner %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp tools/provision.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
03bf70 |
install -m 0755 -vp tools/gen-certs.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp tools/image-info %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp tools/run-koji-container.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp tools/koji-compose.py %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vp tools/libvirt_test.sh %{buildroot}%{_libexecdir}/osbuild-composer-test/
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_libexecdir}/tests/osbuild-composer
|
|
|
1b8337 |
install -m 0755 -vp test/cases/* %{buildroot}%{_libexecdir}/tests/osbuild-composer/
|
|
|
1b8337 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/ansible
|
|
|
1b8337 |
install -m 0644 -vp test/data/ansible/* %{buildroot}%{_datadir}/tests/osbuild-composer/ansible/
|
|
|
1b8337 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/azure
|
|
|
1b8337 |
install -m 0644 -vp test/data/azure/* %{buildroot}%{_datadir}/tests/osbuild-composer/azure/
|
|
|
1b8337 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/manifests
|
|
|
1b8337 |
install -m 0644 -vp test/data/manifests/* %{buildroot}%{_datadir}/tests/osbuild-composer/manifests/
|
|
|
ff3eb5 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/cloud-init
|
|
|
1b8337 |
install -m 0644 -vp test/data/cloud-init/* %{buildroot}%{_datadir}/tests/osbuild-composer/cloud-init/
|
|
|
ff3eb5 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/composer
|
|
|
1b8337 |
install -m 0644 -vp test/data/composer/* %{buildroot}%{_datadir}/tests/osbuild-composer/composer/
|
|
|
ff3eb5 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/repositories
|
|
|
1b8337 |
install -m 0644 -vp test/data/repositories/* %{buildroot}%{_datadir}/tests/osbuild-composer/repositories/
|
|
|
1b8337 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/kerberos
|
|
|
1b8337 |
install -m 0644 -vp test/data/kerberos/* %{buildroot}%{_datadir}/tests/osbuild-composer/kerberos/
|
|
|
1b8337 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/keyring
|
|
|
1b8337 |
install -m 0644 -vp test/data/keyring/id_rsa.pub %{buildroot}%{_datadir}/tests/osbuild-composer/keyring/
|
|
|
1b8337 |
install -m 0600 -vp test/data/keyring/id_rsa %{buildroot}%{_datadir}/tests/osbuild-composer/keyring/
|
|
|
1b8337 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/koji
|
|
|
1b8337 |
install -m 0644 -vp test/data/koji/* %{buildroot}%{_datadir}/tests/osbuild-composer/koji/
|
|
|
1b8337 |
|
|
|
1b8337 |
install -m 0755 -vd %{buildroot}%{_datadir}/tests/osbuild-composer/x509
|
|
|
1b8337 |
install -m 0644 -vp test/data/x509/* %{buildroot}%{_datadir}/tests/osbuild-composer/x509/
|
|
|
1b8337 |
|
|
|
ff3eb5 |
%endif
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%check
|
|
|
ff3eb5 |
%if 0%{?rhel}
|
|
|
ff3eb5 |
export GOFLAGS=-mod=vendor
|
|
|
ff3eb5 |
export GOPATH=$PWD/_build:%{gopath}
|
|
|
1b8337 |
# cd inside GOPATH, otherwise go with GO111MODULE=off ignores vendor directory
|
|
|
1b8337 |
cd $PWD/_build/src/%{goipath}
|
|
|
ff3eb5 |
%gotest ./...
|
|
|
ff3eb5 |
%else
|
|
|
ff3eb5 |
%gocheck
|
|
|
ff3eb5 |
%endif
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%post
|
|
|
1b8337 |
%systemd_post osbuild-composer.service osbuild-composer.socket osbuild-composer-api.socket osbuild-remote-worker.socket
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%preun
|
|
|
1b8337 |
%systemd_preun osbuild-composer.service osbuild-composer.socket osbuild-composer-api.socket osbuild-remote-worker.socket
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%postun
|
|
|
1b8337 |
%systemd_postun_with_restart osbuild-composer.service osbuild-composer.socket osbuild-composer-api.socket osbuild-remote-worker.socket
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%files
|
|
|
ff3eb5 |
%license LICENSE
|
|
|
ff3eb5 |
%doc README.md
|
|
|
1b8337 |
%{_mandir}/man7/%{name}.7*
|
|
|
ff3eb5 |
%{_unitdir}/osbuild-composer.service
|
|
|
ff3eb5 |
%{_unitdir}/osbuild-composer.socket
|
|
|
1b8337 |
%{_unitdir}/osbuild-composer-api.socket
|
|
|
1b8337 |
%{_unitdir}/osbuild-local-worker.socket
|
|
|
ff3eb5 |
%{_unitdir}/osbuild-remote-worker.socket
|
|
|
ff3eb5 |
%{_sysusersdir}/osbuild-composer.conf
|
|
|
ff3eb5 |
|
|
|
03bf70 |
%package core
|
|
|
03bf70 |
Summary: The core osbuild-composer binary
|
|
|
03bf70 |
|
|
|
03bf70 |
%description core
|
|
|
03bf70 |
The core osbuild-composer binary. This is suitable both for spawning in containers and by systemd.
|
|
|
03bf70 |
|
|
|
03bf70 |
%files core
|
|
|
03bf70 |
%{_libexecdir}/osbuild-composer/osbuild-composer
|
|
|
03bf70 |
%{_libexecdir}/osbuild-composer/dnf-json
|
|
|
03bf70 |
%{_datadir}/osbuild-composer/
|
|
|
03bf70 |
|
|
|
ff3eb5 |
%package worker
|
|
|
ff3eb5 |
Summary: The worker for osbuild-composer
|
|
|
ff3eb5 |
Requires: systemd
|
|
|
03bf70 |
Requires: qemu-img
|
|
|
577a51 |
Requires: osbuild >= 27.2
|
|
|
577a51 |
Requires: osbuild-ostree >= 27.2
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
# remove in F34
|
|
|
ff3eb5 |
Obsoletes: golang-github-osbuild-composer-worker < %{version}-%{release}
|
|
|
ff3eb5 |
Provides: golang-github-osbuild-composer-worker = %{version}-%{release}
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%description worker
|
|
|
ff3eb5 |
The worker for osbuild-composer
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%files worker
|
|
|
ff3eb5 |
%{_libexecdir}/osbuild-composer/osbuild-worker
|
|
|
ff3eb5 |
%{_unitdir}/osbuild-worker@.service
|
|
|
ff3eb5 |
%{_unitdir}/osbuild-remote-worker@.service
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%post worker
|
|
|
ff3eb5 |
%systemd_post osbuild-worker@.service osbuild-remote-worker@.service
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%preun worker
|
|
|
ff3eb5 |
# systemd_preun uses systemctl disable --now which doesn't work well with template services.
|
|
|
ff3eb5 |
# See https://github.com/systemd/systemd/issues/15620
|
|
|
ff3eb5 |
# The following lines mimicks its behaviour by running two commands:
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
# disable and stop all the worker services
|
|
|
ff3eb5 |
systemctl --no-reload disable osbuild-worker@.service osbuild-remote-worker@.service
|
|
|
ff3eb5 |
systemctl stop "osbuild-worker@*.service" "osbuild-remote-worker@*.service"
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%postun worker
|
|
|
ff3eb5 |
# restart all the worker services
|
|
|
ff3eb5 |
%systemd_postun_with_restart "osbuild-worker@*.service" "osbuild-remote-worker@*.service"
|
|
|
ff3eb5 |
|
|
|
8446a8 |
%if %{with tests} || 0%{?rhel}
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%package tests
|
|
|
ff3eb5 |
Summary: Integration tests
|
|
|
a525eb |
Requires: %{name} = %{version}-%{release}
|
|
|
ff3eb5 |
Requires: composer-cli
|
|
|
ff3eb5 |
Requires: createrepo_c
|
|
|
ff3eb5 |
Requires: genisoimage
|
|
|
ff3eb5 |
Requires: qemu-kvm-core
|
|
|
a239dc |
Requires: systemd-container
|
|
|
1b8337 |
Requires: jq
|
|
|
1b8337 |
Requires: unzip
|
|
|
1b8337 |
Requires: container-selinux
|
|
|
1b8337 |
Requires: dnsmasq
|
|
|
1b8337 |
Requires: krb5-workstation
|
|
|
1b8337 |
Requires: podman
|
|
|
1b8337 |
Requires: python3
|
|
|
1b8337 |
Requires: sssd-krb5
|
|
|
1b8337 |
Requires: libvirt-client libvirt-daemon
|
|
|
1b8337 |
Requires: libvirt-daemon-config-network
|
|
|
1b8337 |
Requires: libvirt-daemon-config-nwfilter
|
|
|
1b8337 |
Requires: libvirt-daemon-driver-interface
|
|
|
1b8337 |
Requires: libvirt-daemon-driver-network
|
|
|
1b8337 |
Requires: libvirt-daemon-driver-nodedev
|
|
|
1b8337 |
Requires: libvirt-daemon-driver-nwfilter
|
|
|
1b8337 |
Requires: libvirt-daemon-driver-qemu
|
|
|
1b8337 |
Requires: libvirt-daemon-driver-secret
|
|
|
1b8337 |
Requires: libvirt-daemon-driver-storage
|
|
|
1b8337 |
Requires: libvirt-daemon-driver-storage-disk
|
|
|
1b8337 |
Requires: libvirt-daemon-kvm
|
|
|
1b8337 |
Requires: qemu-img
|
|
|
1b8337 |
Requires: qemu-kvm
|
|
|
1b8337 |
Requires: virt-install
|
|
|
1b8337 |
Requires: expect
|
|
|
1b8337 |
Requires: python3-lxml
|
|
|
1b8337 |
Requires: httpd
|
|
|
1b8337 |
Requires: openssl
|
|
|
1b8337 |
Requires: podman-plugins
|
|
|
c2a5ec |
%if 0%{?fedora}
|
|
|
03bf70 |
# koji and ansible are not in RHEL repositories. Depending on them breaks RHEL
|
|
|
03bf70 |
# gating (see OSCI-1541). The test script must enable EPEL and install those
|
|
|
03bf70 |
# packages manually.
|
|
|
03bf70 |
Requires: koji
|
|
|
03bf70 |
Requires: ansible
|
|
|
1b8337 |
%endif
|
|
|
ff3eb5 |
%ifarch %{arm}
|
|
|
ff3eb5 |
Requires: edk2-aarch64
|
|
|
ff3eb5 |
%endif
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%description tests
|
|
|
ff3eb5 |
Integration tests to be run on a pristine-dedicated system to test the osbuild-composer package.
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%files tests
|
|
|
1b8337 |
%{_libexecdir}/osbuild-composer-test/
|
|
|
ff3eb5 |
%{_libexecdir}/tests/osbuild-composer/
|
|
|
ff3eb5 |
%{_datadir}/tests/osbuild-composer/
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%endif
|
|
|
ff3eb5 |
|
|
|
ff3eb5 |
%changelog
|
|
|
577a51 |
* Fri Apr 09 2021 Ondrej Budai <obudai@redhat.com> - 28.4-1
|
|
|
577a51 |
- New upstream release
|
|
|
577a51 |
|
|
|
f3f06c |
* Mon Mar 22 2021 Ondrej Budai <obudai@redhat.com> - 28.3-1
|
|
|
f3f06c |
- New upstream release
|
|
|
f3f06c |
|
|
|
26c47d |
* Thu Mar 18 2021 Ondrej Budai <obudai@redhat.com> - 28.2-1
|
|
|
26c47d |
- New upstream release
|
|
|
26c47d |
|
|
|
c2a5ec |
* Wed Mar 17 2021 Ondrej Budai <obudai@redhat.com> - 28.1-1
|
|
|
c2a5ec |
- New upstream release
|
|
|
c2a5ec |
|
|
|
887cf4 |
* Sat Feb 20 2021 Martin Sehnoutka <msehnout@redhat.com> - 28-1
|
|
|
887cf4 |
- New upstream release
|
|
|
887cf4 |
|
|
|
03bf70 |
* Fri Feb 05 2021 Ondrej Budai <obudai@redhat.com> - 27-1
|
|
|
03bf70 |
- New upstream release
|
|
|
03bf70 |
|
|
|
1b8337 |
* Thu Dec 17 2020 Ondrej Budai <obudai@redhat.com> - 26-1
|
|
|
1b8337 |
- New upstream release
|
|
|
1b8337 |
|
|
|
1b8337 |
* Mon Nov 30 2020 Ondrej Budai <obudai@redhat.com> - 25-1
|
|
|
1b8337 |
- New upstream release 25 (rhbz#1883481)
|
|
|
1b8337 |
|
|
|
6abddb |
* Thu Sep 03 2020 Tom Gundersen <tgunders@redhat.com> - 20.1-1
|
|
|
6abddb |
- New upstream release 20.1 (rhbz#1872370)
|
|
|
6abddb |
|
|
|
731db9 |
* Sun Aug 23 2020 Tom Gundersen <tgunders@redhat.com> - 20-1
|
|
|
731db9 |
- New upstream release 20 (rhbz#1871184 and rhbz#1871179)
|
|
|
731db9 |
|
|
|
a239dc |
* Thu Aug 13 2020 Tom Gundersen <tgunders@redhat.com> - 19-1
|
|
|
a239dc |
- New upstream release 19 (rhbz#1866015 and rhbz#1866013)
|
|
|
a239dc |
|
|
|
8b4b2a |
* Thu Jul 09 2020 Ondrej Budai <obudai@redhat.com> - 17-1
|
|
|
8b4b2a |
- New upstream release 17 (rhbz#1831653)
|
|
|
8b4b2a |
- Obsolete lorax-composer in favor of osbuild-composer (rhbz#1836844)
|
|
|
8b4b2a |
|
|
|
a525eb |
* Mon Jun 29 2020 Ondrej Budai <obudai@redhat.com> - 16-1
|
|
|
a525eb |
- New upstream release 16 (rhbz#1831653)
|
|
|
a525eb |
|
|
|
a525eb |
* Fri Jun 12 2020 Ondrej Budai <obudai@redhat.com> - 15-1
|
|
|
a525eb |
- New upstream release 15 (rhbz#1831653)
|
|
|
a525eb |
|
|
|
a525eb |
* Thu Jun 04 2020 Ondrej Budai <obudai@redhat.com> - 14-1
|
|
|
a525eb |
- New upstream release 14 (rhbz#1831653)
|
|
|
a525eb |
|
|
|
8446a8 |
* Thu May 28 2020 Ondrej Budai <obudai@redhat.com> - 13-1
|
|
|
8446a8 |
- New upstream release 13 (rhbz#1831653)
|
|
|
8446a8 |
|
|
|
ff3eb5 |
* Tue May 05 2020 Ondrej Budai <obudai@redhat.com> - 11-1
|
|
|
ff3eb5 |
- Initial package (renamed from golang-github-osbuild-composer) (rhbz#1771887)
|