Compare commits

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

6 commits

Author SHA1 Message Date
Link Dupont
4432a177eb Use systemd_sysusers_compat 2024-09-23 09:35:17 -04:00
Link Dupont
b15c2d97fc Run systemd-sysusers before installing package 2024-09-20 16:37:45 -04:00
Packit
84e1bf7dd4 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:42:02 +00:00
Link Dupont
f8c8176718 Update to version 0.4.3 2024-09-11 13:25:23 -04:00
Link Dupont
91a0f5939c Update to version 0.4.2 2024-08-02 07:05:44 -04:00
Link Dupont
072e995f18 Add .packit.yaml
[skip changelog]
2024-08-02 07:04:56 -04:00
6 changed files with 62 additions and 5 deletions

3
.gitignore vendored
View file

@ -3,3 +3,6 @@
/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

17
.packit.yaml Normal file
View file

@ -0,0 +1,17 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
upstream_project_url: https://github.com/RedhatInsights/yggdrasil
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-40
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-40
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-40

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.

View file

@ -1 +1 @@
SHA512 (yggdrasil-0.4.1.tar.xz) = 0329b969b7441363cf376cd8b9adf163e0d7f9ecf89db54128a3d8062c887676ac9903e911397bb6eef84238423705352138e0ff1d1ceec0d088c0514222a2f0
SHA512 (yggdrasil-0.4.4.tar.xz) = 138df3b4eeb4815fda5d7c60001d75a29596508c9c7de5a0e29aa4b54f4df73024e42cf26f8afcd19671a552199452c81d920873d839044ed1a7f509e6671875

View file

@ -2,8 +2,8 @@
# https://github.com/redhatinsights/yggdrasil
%global goipath github.com/redhatinsights/yggdrasil
Version: 0.4.1
%global tag %{version}
Version: 0.4.4
%global tag v%{version}
%gometa -f
@ -21,21 +21,32 @@ Summary: Remote data transmission and processing client
License: GPL-3.0-only
URL: %{gourl}
Source: %{url}/releases/download/%{version}/yggdrasil-%{version}.tar.xz
Source: %{url}/releases/download/%{tag}/yggdrasil-%{version}.tar.xz
Source1: yggdrasil.sysusers
BuildRequires: systemd-rpm-macros
BuildRequires: meson
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(bash-completion)
%{?sysusers_requires_compat}
%{?systemd_requires}
%description %{common_description}
%package devel
Summary: %{name} development files
%description devel
%{common_description}
Contains files needed for yggdrasil worker development.
%gopkg
%prep
%goprep %{?rhel:-k}
%autopatch -p1
%if %{undefined rhel}
%generate_buildrequires
@ -59,6 +70,21 @@ export %gomodulesmode
%gocheck
%endif
%pre
%sysusers_create_compat %{SOURCE1}
%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
%license LICENSE
%if %{defined rhel}
@ -69,11 +95,15 @@ export %gomodulesmode
%config(noreplace) %{_sysconfdir}/%{name}
%{_unitdir}/*
%{_userunitdir}/*
%{_sysusersdir}/*
%{_datadir}/bash-completion/completions/*
%{_datadir}/dbus-1/{interfaces,system-services,system.d}/*
%{_datadir}/doc/%{name}/*
%{_mandir}/man1/*
%files devel
%{_libdir}/pkgconfig/*.pc
%gopkgfiles
%changelog

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