Compare commits

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

24 commits

Author SHA1 Message Date
Fedora Release Engineering
57c24d5f20 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:34:28 +00:00
Yaakov Selkowitz
9f10902844 Update to 0.4.10
Resolves: rhbz#2481490
2026-06-24 18:45:31 -04:00
Yaakov Selkowitz
d2086f36e8 Update to 0.4.9 with go-vendor-tools
https://fedoraproject.org/wiki/Changes/GolangPackagesVendoredByDefault
2026-02-18 01:31:46 +00:00
Maxwell G
4c14170d3e Rebuild for https://fedoraproject.org/wiki/Changes/golang1.26 2026-02-02 20:04:13 -06:00
Fedora Release Engineering
9937614c87 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 21:02:03 +00:00
Alejandro Sáez
42d7bf65d7 rebuild 2025-10-10 16:40:01 +02:00
Maxwell G
647f989db8 Rebuild for golang-1.25.0 2025-08-15 18:47:36 -05:00
Fedora Release Engineering
c323252c44 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 21:12:13 +00:00
Link Dupont
c723cac00c Include localstate dir
[skip changelog]
2025-02-03 11:43:55 -05:00
Link Dupont
c4d7377679 Correct subpackage requirement
[skip changelog]
2025-02-03 11:36:43 -05:00
Link Dupont
fa6b56a36a Include example workers in subpackage 2025-02-03 11:15:29 -05:00
Fedora Release Engineering
db1e8edaea Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 16:33:46 +00:00
Link Dupont
4b8b087453 Include local state dir 2024-11-07 11:50:25 -05:00
Link Dupont
f9963768bf Use systemd_sysusers_compat 2024-09-23 08:38:38 -04:00
Link Dupont
991fd9980f Include the golang-devel subpackage (required by workers) 2024-09-20 21:29:37 -04:00
Link Dupont
3bf04c918b Drop automatic golang package 2024-09-20 21:24:58 -04:00
Link Dupont
8a0c2f421e Run systemd-sysusers before installing package 2024-09-20 16:16:14 -04:00
Packit
107b5baebe Update to 0.4.4 upstream release
- Resolves: rhbz#2312400

Upstream tag: v0.4.4
Upstream commit: 2a15f834

Commit authored by Packit automation (https://packit.dev/)
2024-09-15 01:41:09 +00:00
Link Dupont
8f16169e11 Update packit downstream jobs
[skip changelog]
2024-09-12 12:45:38 -04:00
Link Dupont
7d8654c1de Update to version 0.4.3 (RHBZ#2311702) 2024-09-11 13:09:22 -04:00
Link Dupont
d4ae06f375 Update packit job
Change bodhi_update branches to fedora-branched

[skip changelog]
2024-08-28 13:40:32 -04:00
Link Dupont
6b54e7439a Update to version 0.4.2 (RHBZ#2302349) 2024-08-01 14:42:20 -04:00
Fedora Release Engineering
e9026754fb Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 10:41:49 +00:00
Link Dupont
d717dcc425 Add .packit.yaml
[skip changelog]
2024-05-22 17:00:40 -04:00
7 changed files with 133 additions and 42 deletions

7
.gitignore vendored
View file

@ -3,3 +3,10 @@
/yggdrasil-0.3.2.tar.gz
/yggdrasil-0.3.2.tar.xz
/yggdrasil-0.4.1.tar.xz
/yggdrasil-0.4.2.tar.xz
/yggdrasil-0.4.3.tar.xz
/yggdrasil-0.4.4.tar.xz
/yggdrasil-0.4.9.tar.gz
/yggdrasil-0.4.9-vendor.tar.bz2
/yggdrasil-0.4.10.tar.gz
/yggdrasil-0.4.10-vendor.tar.bz2

20
.packit.yaml Normal file
View file

@ -0,0 +1,20 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
upstream_project_url: https://github.com/RedHatInsights/yggdrasil
issue_repository: https://github.com/RedHatInsights/yggdrasil
upstream_tag_template: v{version}
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-all
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.101.0.

8
go-vendor-tools.toml Normal file
View file

@ -0,0 +1,8 @@
[archive]
[licensing]
detector = "askalono"
[[licensing.licenses]]
path = "vendor/gopkg.in/yaml.v3/LICENSE"
sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
expression = "MIT AND (MIT AND Apache-2.0)"

View file

@ -1 +1,2 @@
SHA512 (yggdrasil-0.4.1.tar.xz) = 0329b969b7441363cf376cd8b9adf163e0d7f9ecf89db54128a3d8062c887676ac9903e911397bb6eef84238423705352138e0ff1d1ceec0d088c0514222a2f0
SHA512 (yggdrasil-0.4.10.tar.gz) = 7b9ee3ec204feeb635d7ff4c736d8b5f6ff468863ab456eea45481593a523d4711602b1ba0aef7a77d4a5886819e9791b7f54e7f0f9b30e89a34d0a7becb2bc5
SHA512 (yggdrasil-0.4.10-vendor.tar.bz2) = 9752e2c5fefd2eee93848627f3f1a21a9a7a11b60971203532ecb936f2be53e51a0d7c7f254b35badec2e27e3005f2dd5a9cb1eb281cf65fb7dd7f0ed36ca983

View file

@ -1,80 +1,128 @@
%bcond_without check
# Generated by go2rpm 1.19.0
%bcond check 1
%global go_vendor_license_check_disable %{defined rhel}
# https://github.com/redhatinsights/yggdrasil
%global goipath github.com/redhatinsights/yggdrasil
Version: 0.4.1
%global tag %{version}
Version: 0.4.10
%gometa -f
%gometa -L -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: %autorelease
Summary: Remote data transmission and processing client
License: GPL-3.0-only
# Generated by go-vendor-tools
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND EPL-2.0 AND GPL-3.0-only AND MIT
URL: %{gourl}
Source: %{url}/releases/download/%{version}/yggdrasil-%{version}.tar.xz
Source0: %{gosource}
# Generated by go-vendor-tools
Source1: %{archivename}-vendor.tar.bz2
Source2: go-vendor-tools.toml
Source3: yggdrasil.sysusers
BuildRequires: go-vendor-tools
BuildRequires: systemd-rpm-macros
BuildRequires: meson
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(bash-completion)
%description %{common_description}
%{?systemd_requires}
%gopkg
%description
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.
%package devel
Summary: %{name} development files
%description devel
%{common_description}
Contains files needed for yggdrasil worker development.
%package examples
Summary: %{name} example workers
Requires: %{name} = %{version}-%{release}
%description examples
%{common_description}
Contains example workers for yggdrasil.
%prep
%goprep %{?rhel:-k}
%autopatch -p1
%goprep -p1
tar -xf %{S:1}
%if %{undefined rhel}
%generate_buildrequires
%go_generate_buildrequires
%endif
%go_vendor_license_buildrequires -c %{S:2}
%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}"'
%global gomodulesmode GO111MODULE=on
%meson -Dexamples=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
%global gosupfiles ./ipc/com.redhat.Yggdrasil1.Dispatcher1.xml ./ipc/com.redhat.Yggdrasil1.Worker1.xml
%install
%go_vendor_license_install -c %{S:2}
%meson_install
%gopkginstall
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/yggdrasil
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/yggdrasil.conf
%if %{with check}
%check
%gocheck
%go_vendor_license_check -c %{S:2}
%if %{with check}
%gocheck2
%endif
%files
%license LICENSE
%if %{defined rhel}
%license vendor/modules.txt
%endif
%post
%systemd_post %{name}.service
%systemd_user_post %{name}.service
%preun
%systemd_preun %{name}.service
%systemd_user_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%systemd_user_postun_with_restart %{name}.service
%files -f %{go_vendor_license_filelist}
%doc CONTRIBUTING.md README.md
%{_bindir}/*
%{_bindir}/yggd
%{_bindir}/yggctl
%config(noreplace) %{_sysconfdir}/%{name}
%{_unitdir}/*
%{_userunitdir}/*
%{_datadir}/bash-completion/completions/*
%{_datadir}/dbus-1/{interfaces,system-services,system.d}/*
%{_datadir}/doc/%{name}/*
%{_mandir}/man1/*
%{_unitdir}/yggdrasil-bus@.service
%{_unitdir}/yggdrasil-bus@.socket
%{_unitdir}/yggdrasil@.service
%{_unitdir}/yggdrasil.service
%{_userunitdir}/yggdrasil.service
%{_sysusersdir}/yggdrasil.conf
%{_datadir}/bash-completion/completions/yggd
%{_datadir}/bash-completion/completions/yggctl
%{_datadir}/dbus-1/interfaces/com.redhat.Yggdrasil1.xml
%{_datadir}/dbus-1/interfaces/com.redhat.Yggdrasil1.Worker1.xml
%{_datadir}/dbus-1/interfaces/com.redhat.Yggdrasil1.Dispatcher1.xml
%{_datadir}/dbus-1/system.d/yggd.conf
%{_datadir}/dbus-1/system-services/com.redhat.Yggdrasil1.service
%{_datadir}/doc/%{name}/tags.toml
%{_mandir}/man1/yggctl.1.gz
%{_mandir}/man1/yggd.1.gz
%attr(0755, yggdrasil, yggdrasil) %{_localstatedir}/lib/yggdrasil
%gopkgfiles
%files devel
%{_libdir}/pkgconfig/yggdrasil.pc
%files examples
%{_libexecdir}/yggdrasil/echo
%{_datadir}/dbus-1/system.d/com.redhat.Yggdrasil1.Worker1.echo.conf
%{_datadir}/dbus-1/system-services/com.redhat.Yggdrasil1.Worker1.echo.service
%{_unitdir}/com.redhat.Yggdrasil1.Worker1.echo.service
%changelog
%autochangelog

4
yggdrasil.sysusers Normal file
View file

@ -0,0 +1,4 @@
#Type Name ID GECOS Home directory Shell
u yggdrasil - "yggdrasil system user" /var/lib/yggdrasil -
u yggdrasil-worker - "yggdrasil worker user" - -
m yggdrasil yggdrasil-worker