Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Link Dupont
ae499334fc Initial package 2023-07-24 13:37:09 -04:00
3 changed files with 62 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/yggdrasil-0.3.1.tar.xz
/yggdrasil-0.3.2.tar.xz

1
sources Normal file
View file

@ -0,0 +1 @@
SHA512 (yggdrasil-0.3.2.tar.xz) = adb94e48091a4df00e2de8bddd02cd0964cf1753be85bbdc3b16ed0aef6fb530718393f4868ed2323df70163e455a5bc34e1f33432c72026ba8d5588573cb2e3

59
yggdrasil.spec Normal file
View file

@ -0,0 +1,59 @@
%bcond_without check
%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.}
Name: yggdrasil
Version: 0.3.2
Release: 1%{?dist}
Summary: Remote data transmission and processing client
License: GPL-3.0-only
URL: https://github.com/RedHatInsights/%{name}
Source: https://github.com/RedHatInsights/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires: systemd-rpm-macros
BuildRequires: meson
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(bash-completion)
BuildRequires: golang >= 1.18
%description %{common_description}
%prep
%autosetup
%global gocompilerflags "-buildmode pie -compiler gc"
%build
%undefine _auto_set_build_flags
export GO111MODULES=off
%{?gobuilddir:export GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"}
%meson -Dvendor=true "-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
%install
%meson_install
%if %{with check}
%check
%meson_test
%endif
%files
%license LICENSE
%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/*
%changelog
* Mon Jul 24 2023 Link Dupont <linkdupont@fedoraproject.org> - 0.3.2-1
- Initial package