Compare commits

..

3 commits

Author SHA1 Message Date
Link Dupont
926322f611 Update to version 0.3.2 2023-07-24 13:10:56 -04:00
Link Dupont
90b2bfbfb0 Include patches to support meson 0.58 2023-03-08 13:02:24 -05:00
Link Dupont
024d9559d4 Initial package 2023-03-08 12:07:15 -05:00
8 changed files with 43 additions and 157 deletions

12
.gitignore vendored
View file

@ -1,12 +1,2 @@
/yggdrasil-ffb580f55ae91beff78156fdb6a41be8bc049117.tar.gz
/yggdrasil-0.3.1.tar.gz
/yggdrasil-0.3.2.tar.gz
/yggdrasil-0.3.1.tar.xz
/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

View file

@ -1,20 +0,0 @@
# 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

View file

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

View file

@ -1,16 +0,0 @@
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.98^1.ffb580f-0.5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.98^1.ffb580f-0.4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jul 19 2022 Maxwell G <gotmax@e.email> - 0.2.98^1.ffb580f-0.3
- Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in
golang
* Sat Jun 18 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0.2.98^1.ffb580f-0.2
- Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191,
CVE-2022-29526, CVE-2022-30629
* Tue Aug 10 2021 Link Dupont <linkdupont@fedoraproject.org> - 0.2.98^1.ffb580f-0.1.20210728gitffb580f
- Initial package

View file

@ -1,8 +0,0 @@
[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,2 +1 @@
SHA512 (yggdrasil-0.4.10.tar.gz) = 7b9ee3ec204feeb635d7ff4c736d8b5f6ff468863ab456eea45481593a523d4711602b1ba0aef7a77d4a5886819e9791b7f54e7f0f9b30e89a34d0a7becb2bc5
SHA512 (yggdrasil-0.4.10-vendor.tar.bz2) = 9752e2c5fefd2eee93848627f3f1a21a9a7a11b60971203532ecb936f2be53e51a0d7c7f254b35badec2e27e3005f2dd5a9cb1eb281cf65fb7dd7f0ed36ca983
SHA512 (yggdrasil-0.3.2.tar.xz) = adb94e48091a4df00e2de8bddd02cd0964cf1753be85bbdc3b16ed0aef6fb530718393f4868ed2323df70163e455a5bc34e1f33432c72026ba8d5588573cb2e3

View file

@ -1,128 +1,76 @@
# Generated by go2rpm 1.19.0
%bcond check 1
%global go_vendor_license_check_disable %{defined rhel}
%bcond_without check
# https://github.com/redhatinsights/yggdrasil
%global goipath github.com/redhatinsights/yggdrasil
Version: 0.4.10
Version: 0.3.2
%global tag %{version}
%gometa -L -f
%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: %autorelease
Release: 2%{?dist}
Summary: Remote data transmission and processing client
# 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
License: GPL-3.0-only
URL: %{gourl}
Source0: %{gosource}
# Generated by go-vendor-tools
Source1: %{archivename}-vendor.tar.bz2
Source2: go-vendor-tools.toml
Source3: yggdrasil.sysusers
Source: https://github.com/RedHatInsights/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires: go-vendor-tools
BuildRequires: systemd-rpm-macros
BuildRequires: meson
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(bash-completion)
%{?systemd_requires}
%description %{common_description}
%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.
%gopkg
%prep
%goprep -p1
tar -xf %{S:1}
%generate_buildrequires
%go_vendor_license_buildrequires -c %{S:2}
%goprep -k
%autopatch -p1
%build
%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}"'
%undefine _auto_set_build_flags
export %gomodulesmode
%{?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
%global gosupfiles ./ipc/com.redhat.Yggdrasil1.Dispatcher1.xml ./ipc/com.redhat.Yggdrasil1.Worker1.xml
%install
%go_vendor_license_install -c %{S:2}
%meson_install
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/yggdrasil
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/yggdrasil.conf
%gopkginstall
%check
%go_vendor_license_check -c %{S:2}
%if %{with check}
%gocheck2
%check
%gocheck
%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}
%files
%license LICENSE
%doc CONTRIBUTING.md README.md
%{_bindir}/yggd
%{_bindir}/yggctl
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/%{name}
%{_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
%{_unitdir}/*
%{_userunitdir}/*
%{_datadir}/bash-completion/completions/*
%{_datadir}/dbus-1/{interfaces,system-services,system.d}/*
%{_datadir}/doc/%{name}/*
%{_mandir}/man1/*
%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
%gopkgfiles
%changelog
%autochangelog
* Mon Jul 24 2023 Link Dupont <linkdupont@fedoraproject.org> - 0.3.2-1
- Update to version 0.3.2
* Wed Mar 8 2023 Link Dupont <linkdupont@fedoraproject.org> - 0.3.1-2
- Initial package

View file

@ -1,4 +0,0 @@
#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