|
|
|
@ -1,9 +1,19 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 3;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
@ -18,24 +28,23 @@ the provided allow-pattern regular expressions.}
|
|
|
|
|
%global godocs README.md
|
|
|
|
|
|
|
|
|
|
Name: yggdrasil-worker-package-manager
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
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 +66,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,10 +84,47 @@ export %gomodulesmode
|
|
|
|
|
%{_libexecdir}/*
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}
|
|
|
|
|
%{_datadir}/dbus-1/system-services/*
|
|
|
|
|
%{_datadir}/dbus-1/system.d/*
|
|
|
|
|
%{_unitdir}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jul 9 2024 Link Dupont <link@redhat.com> - 0.2.2-2
|
|
|
|
|
- Drop generation of automatic Go source package
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.2.3-3
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.2.3-2
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Fri Sep 20 2024 Link Dupont <link@sub-pop.net> - 0.2.3-2
|
|
|
|
|
- Bump release to rebuild.
|
|
|
|
|
|
|
|
|
|
* Mon Sep 16 2024 Link Dupont <link@sub-pop.net> - 0.2.3-1
|
|
|
|
|
- Update to 0.2.3 (RHEL-58739)
|
|
|
|
|
|
|
|
|
|
* Tue Jul 09 2024 Link Dupont <link@sub-pop.net> - 0.2.2-6
|
|
|
|
|
- Drop gopkg macros
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.2.2-5
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Nov 06 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.2.2-3
|
|
|
|
|
- Only apply devendoring patch in Fedora builds
|
|
|
|
|
|
|
|
|
|
* Wed Oct 25 2023 Link Dupont <link@sub-pop.net> - 0.2.2-1
|
|
|
|
|
- Update to version 0.2.2
|
|
|
|
|
|
|
|
|
|
* Wed Aug 09 2023 Link Dupont <link@sub-pop.net> - 0.2.1-1
|
|
|
|
|
- Update to version 0.2.1
|
|
|
|
|
|
|
|
|
|
* Wed Aug 09 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.2.0-3
|
|
|
|
|
- Use vendored dependencies in RHEL builds
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 8 2024 Link Dupont <link@redhat.com> - 0.2.2-1
|
|
|
|
|
- Initial package (RHEL-29802)
|
|
|
|
|
* Tue Jun 20 2023 Link Dupont <link@sub-pop.net> - 0.2.0-1
|
|
|
|
|
- Initial package (RHBZ#2176342)
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|