diff --git a/.gitignore b/.gitignore index 37a9ada..ab82d11 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /yggdrasil-worker-package-manager-0.2.0.tar.xz /yggdrasil-worker-package-manager-0.2.1.tar.xz /yggdrasil-worker-package-manager-0.2.2.tar.xz +/yggdrasil-worker-package-manager-0.2.3.tar.xz diff --git a/sources b/sources index 03cf23f..6bc9811 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (yggdrasil-worker-package-manager-0.2.2.tar.xz) = 91a44e6b99c36bf0791f298d6ea2dfc9aacb4098b1f0b6305ef4084f5774eef55a3e309cff99915e0e28cf3a06dba797c66915975fba08fc0423f18f97cd5990 +SHA512 (yggdrasil-worker-package-manager-0.2.3.tar.xz) = 15dad8bb905fb5a4062d6d51b4975de75fccdcaab6202758a8e5fc613b450d305c5ad1ea6554b7aa39cdef0743a69e82594c883a5500c9bc51453cadc1799abe diff --git a/yggdrasil-worker-package-manager.spec b/yggdrasil-worker-package-manager.spec index bfc84ef..4855108 100644 --- a/yggdrasil-worker-package-manager.spec +++ b/yggdrasil-worker-package-manager.spec @@ -2,8 +2,8 @@ # https://github.com/redhatinsights/yggdrasil-worker-package-manager %global goipath github.com/redhatinsights/yggdrasil-worker-package-manager -Version: 0.2.2 -%global tag %{version} +Version: 0.2.3 +%global tag v%{version} %gometa -f @@ -23,19 +23,18 @@ Summary: Package manager worker for yggdrasil License: GPL-3.0-only URL: %{gourl} -Source: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz - -Patch100: 8c19d5ac3d5731750c935e1e23e9f4add49bff48.patch +Source: %{url}/releases/download/%{tag}/%{name}-%{version}.tar.xz BuildRequires: systemd-rpm-macros BuildRequires: meson BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(systemd) +BuildRequires: golang >= 1.21 %description %{common_description} %prep %goprep %{?rhel:-k} -%autopatch -p1 %{?rhel:-M 99} %if %{undefined rhel} %generate_buildrequires @@ -57,6 +56,15 @@ export %gomodulesmode %gocheck %endif +%post +%systemd_post com.redhat.Yggdrasil1.Worker1.package_manager.service + +%preun +%systemd_preun com.redhat.Yggdrasil1.Worker1.package_manager.service + +%postun +%systemd_postun_with_restart com.redhat.Yggdrasil1.Worker1.package_manager.service + %files %license LICENSE %if %{defined rhel} @@ -66,6 +74,8 @@ export %gomodulesmode %{_libexecdir}/* %config(noreplace) %{_sysconfdir}/%{name} %{_datadir}/dbus-1/system-services/* +%{_datadir}/dbus-1/system.d/* +%{_unitdir} %changelog %autochangelog