%define debug_package %{nil} # EL7 doesn't define gobuild (it is available in go-srpm-macros which is EL8+) %if ! 0%{?gobuild:1} %define gobuild(o:) GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -linkmode=external -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v %{?**}; %endif Name: yggdrasil-worker-forwarder Version: 0.1.0 Summary: Worker service for Yggdrasil that can forward requests to an API endpoint Release: 2.20261009143026593079.pr10.3.gffe83e3%{?dist} License: GPLv3 Source0: yggdrasil-worker-forwarder-0.1.0.tar.gz Url: https://github.com/theforeman/%{name}/ # EL7 doesn't define go_arche (it is available in go-srpm-macros which is EL8+)s %if ! 0%{?go_arches:1} %define go_arches %{ix86} x86_64 %{arm} aarch64 ppc64le %endif ExclusiveArch: %{go_arches} BuildRequires: golang BuildRequires: go-srpm-macros BuildRequires: go-rpm-macros %description Worker service for Yggdrasil that can forward requests to an API endpoint %prep %autosetup -n yggdrasil-worker-forwarder-0.1.0 %build %if 0%{?rhel} == 7 mkdir -p _gopath/src/%{name}-%{version} cp -rf $(pwd)/*.go _gopath/src/%{name}-%{version} cp -rf $(pwd)/vendor _gopath/src/%{name}-%{version} export GOPATH=$(pwd)/_gopath pushd _gopath/src/%{name}-%{version} %{gobuild} strip %{name}-%{version} cp %{name}-%{version} %{_builddir}/%{name}-%{version}/%{name} popd %else export GO111MODULE=on %{gobuild} %endif %install mkdir -p %{buildroot}%{_libexecdir} %{__install} -m 755 %{_builddir}/%{name}-%{version}/%{name} %{buildroot}/%{_libexecdir} %files %{_libexecdir}/%{name} %license LICENSE %doc README.md %changelog * Fri Oct 09 2026 Packit - 0.1.0-2.20261009143026593079.pr10.3.gffe83e3 - Add Packit builds for EL9 and EL10 (Adam Ruzicka) - Add D-Bus transport support for yggdrasil 0.4.x (RHEL 10) (#8) (Lucy Fu) * Tue Sep 08 2026 Odilon Sousa - 0.1.0-2 - Rebuild against new golang version * Fri Jul 31 2026 Zach Huntington-Meath - 0.1.0-1 - Release yggdrasil-worker-forwarder 0.1.0 * Thu Jul 02 2026 Eric D. Helms - 0.0.4-1 - Release yggdrasil-worker-forwarder 0.0.4 * Mon Oct 16 2023 Eric D. Helms - 0.0.3-1 - Release 0.0.3 * Tue Apr 05 2022 Eric D. Helms - 0.0.1-1 - Release 0.0.1