From ca38575a6b5b3ffc4e596436622269958ba2fa63 Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Thu, 24 Aug 2023 12:28:39 +0000 Subject: [PATCH] Enable PowerTools/CRB automatically and countme --- SOURCES/almalinux-synergy.repo | 1 + SPECS/almalinux-release-synergy.spec | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/SOURCES/almalinux-synergy.repo b/SOURCES/almalinux-synergy.repo index 58def8f..ffa9de4 100644 --- a/SOURCES/almalinux-synergy.repo +++ b/SOURCES/almalinux-synergy.repo @@ -6,6 +6,7 @@ mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/synergy # baseurl=https://repo.almalinux.org/almalinux/$releasever/synergy/$basearch/os/ gpgcheck=1 enabled=1 +countme=1 gpgkey=https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-9 ## Sources diff --git a/SPECS/almalinux-release-synergy.spec b/SPECS/almalinux-release-synergy.spec index ff4a3d0..1871b3e 100644 --- a/SPECS/almalinux-release-synergy.spec +++ b/SPECS/almalinux-release-synergy.spec @@ -1,13 +1,14 @@ Summary: AlmaLinux Synergy repository configuration Name: almalinux-release-synergy Version: 9 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 URL: https://almalinux.org/ BuildArch: noarch Source0: almalinux-synergy.repo -Requires: epel-release +Requires: epel-release +Requires(post): epel-release Provides: almalinux-release-synergy = 9 %description @@ -16,10 +17,19 @@ DNF configuration for AlmaLinux Synergy repo %install install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/almalinux-synergy.repo +%post +if [ -x /usr/bin/crb ]; then + /usr/bin/crb enable +fi + %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/yum.repos.d/almalinux-synergy.repo %changelog +* Thu Aug 24 2023 Andrew Lukoshko - 9-2 +- Enable PowerTools/CRB automatically +- Enable countme + * Mon Aug 14 2023 Andrew Lukoshko - 9-1 - Initial version