Enable PowerTools/CRB automatically and countme

This commit is contained in:
Andrew Lukoshko 2023-08-24 11:49:08 +00:00
parent 9702f81985
commit 5c91fcc3fa
2 changed files with 13 additions and 2 deletions

View File

@ -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
## Sources

View File

@ -1,13 +1,14 @@
Summary: AlmaLinux Synergy repository configuration
Name: almalinux-release-synergy
Version: 8
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 = 8
%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 <alukoshko@almalinux.org> - 8-2
- Enable PowerTools/CRB automatically
- Enable countme
* Mon Aug 14 2023 Andrew Lukoshko <alukoshko@almalinux.org> - 8-1
- Initial version