commit b3d34a194fe6ed86d22d57aea23971ce42c4db43 Author: MSVSphere Packaging Team Date: Mon Oct 7 21:25:54 2024 +0300 import yggdrasil-0.4.1-1.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e6e51d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/yggdrasil-0.4.1.tar.xz diff --git a/.yggdrasil.metadata b/.yggdrasil.metadata new file mode 100644 index 0000000..811a409 --- /dev/null +++ b/.yggdrasil.metadata @@ -0,0 +1 @@ +e65f32fe1f5b9703f869016812bf5cdc1f09aa3a SOURCES/yggdrasil-0.4.1.tar.xz diff --git a/SPECS/yggdrasil.spec b/SPECS/yggdrasil.spec new file mode 100644 index 0000000..bea67af --- /dev/null +++ b/SPECS/yggdrasil.spec @@ -0,0 +1,84 @@ +%bcond_without check + +# https://github.com/redhatinsights/yggdrasil +%global goipath github.com/redhatinsights/yggdrasil +Version: 0.4.1 +%global tag %{version} + +%gometa -f + +%global common_description %{expand: +yggdrasil is a system daemon that subscribes to topics on an MQTT broker and +routes any data received on the topics to an appropriate child "worker" process, +exchanging data with its worker processes through a D-Bus message broker.} + +%global golicenses LICENSE +%global godocs CONTRIBUTING.md README.md + +Name: yggdrasil +Release: 1%{?dist} +Summary: Remote data transmission and processing client + +License: GPL-3.0-only +URL: %{gourl} +Source: %{url}/releases/download/%{version}/yggdrasil-%{version}.tar.xz + +BuildRequires: systemd-rpm-macros +BuildRequires: meson +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(systemd) +BuildRequires: pkgconfig(bash-completion) + +%description %{common_description} + +%gopkg + +%prep +%goprep %{?rhel:-k} +%autopatch -p1 + +%if %{undefined rhel} +%generate_buildrequires +%go_generate_buildrequires +%endif + +%build +%undefine _auto_set_build_flags +export %gomodulesmode +%{?gobuilddir:export GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"} +%meson "-Dgobuildflags=[%(echo %{expand:%gocompilerflags} | sed -e s/"^"/"'"/ -e s/" "/"', '"/g -e s/"$"/"'"/), '-tags', '"rpm_crashtraceback\ ${BUILDTAGS:-}"', '-a', '-v', '-x']" -Dgoldflags='%{?currentgoldflags} -B 0x%(head -c20 /dev/urandom|od -An -tx1|tr -d " \n") -compressdwarf=false -linkmode=external -extldflags "%{build_ldflags} %{?__golang_extldflags}"' +%meson_build + +%global gosupfiles ./ipc/com.redhat.Yggdrasil1.Dispatcher1.xml ./ipc/com.redhat.Yggdrasil1.Worker1.xml +%install +%meson_install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%files +%license LICENSE +%if %{defined rhel} +%license vendor/modules.txt +%endif +%doc CONTRIBUTING.md README.md +%{_bindir}/* +%config(noreplace) %{_sysconfdir}/%{name} +%{_unitdir}/* +%{_userunitdir}/* +%{_datadir}/bash-completion/completions/* +%{_datadir}/dbus-1/{interfaces,system-services,system.d}/* +%{_datadir}/doc/%{name}/* +%{_mandir}/man1/* + +%gopkgfiles + +%changelog +* Mon Oct 07 2024 MSVSphere Packaging Team - 0.4.1-1 +- Rebuilt for MSVSphere 9.5 beta + +* Mon Apr 15 2024 Link Dupont - 0.4.1-1 +- Initial package (RHEL-29800)