Compare commits

...

3 Commits

Author SHA1 Message Date
Link Dupont
bdf9d7e548 Update to 0.4.5 (RHEL-77619)
Resolves: RHEL-77619
2025-02-03 11:53:08 -05:00
Link Dupont
56d174423e Include examples subpackage 2025-02-03 11:50:48 -05:00
Link Dupont
000dedb734 Include local state dir (RHEL-66427) 2024-11-07 11:39:45 -05:00
3 changed files with 41 additions and 12 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/yggdrasil-0.4.1.tar.xz /yggdrasil-0.4.1.tar.xz
/yggdrasil-0.4.2.tar.xz /yggdrasil-0.4.2.tar.xz
/yggdrasil-0.4.4.tar.xz /yggdrasil-0.4.4.tar.xz
/yggdrasil-0.4.5.tar.xz

View File

@ -1 +1 @@
SHA512 (yggdrasil-0.4.4.tar.xz) = 138df3b4eeb4815fda5d7c60001d75a29596508c9c7de5a0e29aa4b54f4df73024e42cf26f8afcd19671a552199452c81d920873d839044ed1a7f509e6671875 SHA512 (yggdrasil-0.4.5.tar.xz) = 26c688a6b776fbd574b601a16d1816c167d04103851365ac7ec1da4fe06e1d61190d68e2df5f7f58d31a0b5c167686bef2594f3cae97516ac3f6cc21db28f14c

View File

@ -2,7 +2,7 @@
# https://github.com/redhatinsights/yggdrasil # https://github.com/redhatinsights/yggdrasil
%global goipath github.com/redhatinsights/yggdrasil %global goipath github.com/redhatinsights/yggdrasil
Version: 0.4.4 Version: 0.4.5
%global tag v%{version} %global tag v%{version}
%gometa -f %gometa -f
@ -42,6 +42,16 @@ Summary: %{name} development files
Contains files needed for yggdrasil worker development. 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 %{name}.
%gopkg %gopkg
%prep %prep
@ -57,7 +67,7 @@ Contains files needed for yggdrasil worker development.
%undefine _auto_set_build_flags %undefine _auto_set_build_flags
export %gomodulesmode export %gomodulesmode
%{?gobuilddir:export GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"} %{?gobuilddir:export GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"}
%meson -Dvendor=True -Ddefault_data_host=cert.cloud.redhat.com -Ddefault_path_prefix=redhat/insights "-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 -Dexamples=True -Dvendor=True -Ddefault_data_host=cert.cloud.redhat.com -Ddefault_path_prefix=redhat/insights "-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 %meson_build
%global gosupfiles ./ipc/com.redhat.Yggdrasil1.Dispatcher1.xml ./ipc/com.redhat.Yggdrasil1.Worker1.xml %global gosupfiles ./ipc/com.redhat.Yggdrasil1.Dispatcher1.xml ./ipc/com.redhat.Yggdrasil1.Worker1.xml
@ -65,6 +75,7 @@ export %gomodulesmode
%meson_install %meson_install
%__install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/config.toml %__install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/config.toml
%__install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf %__install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf
%__install -d -m 0755 %{buildroot}%{_localstatedir}/lib/yggdrasil
%if %{with check} %if %{with check}
%check %check
@ -92,18 +103,35 @@ export %gomodulesmode
%license vendor/modules.txt %license vendor/modules.txt
%endif %endif
%doc CONTRIBUTING.md README.md %doc CONTRIBUTING.md README.md
%{_bindir}/* %{_bindir}/yggd
%{_bindir}/yggctl
%config(noreplace) %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}
%{_unitdir}/* %{_unitdir}/yggdrasil-bus@.service
%{_userunitdir}/* %{_unitdir}/yggdrasil-bus@.socket
%{_sysusersdir}/* %{_unitdir}/yggdrasil@.service
%{_datadir}/bash-completion/completions/* %{_unitdir}/yggdrasil.service
%{_datadir}/dbus-1/{interfaces,system-services,system.d}/* %{_userunitdir}/yggdrasil.service
%{_datadir}/doc/%{name}/* %{_sysusersdir}/yggdrasil.conf
%{_mandir}/man1/* %{_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
%files devel %files devel
%{_libdir}/pkgconfig/*.pc %{_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 %changelog
%autochangelog %autochangelog