diff --git a/90-epel.preset b/90-epel.preset
index b3f4e22..d4d9701 100644
--- a/90-epel.preset
+++ b/90-epel.preset
@@ -1,9 +1,5 @@
-# Also see:
-# https://fedoraproject.org/wiki/Starting_services_by_default
-#
-# https://bugzilla.redhat.com/show_bug.cgi?id=1901721
-enable x509watch.timer
-#
-# https://bugzilla.redhat.com/show_bug.cgi?id=1986205
-#
-enable certbot-renew.timer
+# See https://docs.fedoraproject.org/en-US/packaging-guidelines/DefaultServices/
+# for the Fedora policy. EPEL follows the same policy. The EPEL Steering
+# Committee can approve exceptions to the policy, which will be defined in this
+# file.
+
diff --git a/GPL b/GPL-2.0-only.txt
similarity index 96%
rename from GPL
rename to GPL-2.0-only.txt
index 3c10746..9efa6fb 100644
--- a/GPL
+++ b/GPL-2.0-only.txt
@@ -1,16 +1,8 @@
-*****************************************************************************
-The following copyright applies to the Red Hat Linux compilation and any
-portions of Red Hat Linux it does not conflict with. Whenever this
-policy does conflict with the copyright of any individual portion of Red Hat
-Linux, it does not apply.
-
-*****************************************************************************
-
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -312,8 +304,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ with this program; if not, see .
Also add information on how to contact you by electronic and paper mail.
@@ -337,8 +328,8 @@ necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
- , 1 April 1989
- Ty Coon, President of Vice
+ , 1 April 1989
+ Moe Ghoul, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
diff --git a/RPM-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HV7gMnt9UmxbxBE2pGU7vu3CwjYga5DpwU7
-w5wu1TmM5KgZtZvuWOTDnqDLf0cKoIbW8FeeCOn24elcj32bnQDuF9DPey1mqcvT
-/yEo/Ushyz6CVYxN8DGgcy2M9JOsnmjDx02h6qgWGWDuKgb9jZrvRedpAQCeemEd
-fhEs6ihqVxRFl16HxC4EVijybhAL76SsM2nbtIqW1apBQJQpXWtQwwdvgTVpdEtE
-r4ArVJYX5LrswnWEQMOelugUG6S3ZjMfcyOa/O0364iY73vyVgaYK+2XtT2usMux
-VL469Kj5m13T6w==
-=Mjs/
------END PGP PUBLIC KEY BLOCK-----
diff --git a/crb b/crb
index 452de3d..dfdd88f 100755
--- a/crb
+++ b/crb
@@ -1,5 +1,14 @@
#!/bin/bash
+#
# Enable / Disable / Status the codeready-builder(CRB) or equivalent repo.
+#
+# Copyright (C) 2024
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Authors:
+# Troy Dawson
+#
+
###############
# Show help
diff --git a/epel-cisco-openh264.repo b/epel-cisco-openh264.repo
deleted file mode 100644
index 442abca..0000000
--- a/epel-cisco-openh264.repo
+++ /dev/null
@@ -1,33 +0,0 @@
-[epel-cisco-openh264]
-name=Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - $basearch
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-cisco-openh264-9&arch=$basearch
-type=rpm
-enabled=1
-metadata_expire=14d
-repo_gpgcheck=0
-gpgcheck=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-skip_if_unavailable=True
-
-[epel-cisco-openh264-debuginfo]
-name=Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - $basearch - Debug
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-cisco-openh264-debug-9&arch=$basearch
-type=rpm
-enabled=0
-metadata_expire=14d
-repo_gpgcheck=0
-gpgcheck=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-skip_if_unavailable=True
-
-[epel-cisco-openh264-source]
-name=Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - $basearch - Source
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-cisco-openh264-source-9&arch=$basearch
-type=rpm
-enabled=0
-metadata_expire=14d
-repo_gpgcheck=0
-gpgcheck=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-skip_if_unavailable=True
-
diff --git a/epel-modular.repo b/epel-modular.repo
deleted file mode 100644
index 3daee11..0000000
--- a/epel-modular.repo
+++ /dev/null
@@ -1,30 +0,0 @@
-[epel-modular]
-name=Extra Packages for Enterprise Linux Modular 9 - $basearch
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/9/Modular/$basearch/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=1
-gpgcheck=1
-countme=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-
-[epel-modular-debuginfo]
-name=Extra Packages for Enterprise Linux Modular 9 - $basearch - Debug
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/9/Modular/$basearch/debug/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-debug-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
-
-[epel-modular-source]
-name=Extra Packages for Enterprise Linux Modular 9 - $basearch - Source
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/9/Modular/source/tree/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-source-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
diff --git a/epel-next-testing.repo b/epel-next-testing.repo
deleted file mode 100644
index 136562c..0000000
--- a/epel-next-testing.repo
+++ /dev/null
@@ -1,30 +0,0 @@
-[epel-next-testing]
-name=Extra Packages for Enterprise Linux 9 - Next - Testing - $basearch
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/testing/next/9/Everything/$basearch/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-testing-next-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgcheck=1
-countme=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-
-[epel-next-testing-debuginfo]
-name=Extra Packages for Enterprise Linux 9 - Next - Testing - $basearch - Debug
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/testing/next/9/Everything/$basearch/debug/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-testing-next-debug-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
-
-[epel-next-testing-source]
-name=Extra Packages for Enterprise Linux 9 - Next - Testing - $basearch - Source
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/testing/next/9/Everything/source/tree/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-testing-next-source-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
diff --git a/epel-next.repo b/epel-next.repo
deleted file mode 100644
index f917c44..0000000
--- a/epel-next.repo
+++ /dev/null
@@ -1,30 +0,0 @@
-[epel-next]
-name=Extra Packages for Enterprise Linux 9 - Next - $basearch
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/next/9/Everything/$basearch/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-next-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=1
-gpgcheck=1
-countme=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-
-[epel-next-debuginfo]
-name=Extra Packages for Enterprise Linux 9 - Next - $basearch - Debug
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/next/9/Everything/$basearch/debug/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-next-debug-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
-
-[epel-next-source]
-name=Extra Packages for Enterprise Linux 9 - Next - $basearch - Source
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/next/9/Everything/source/tree/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-next-source-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
diff --git a/epel-playground.repo b/epel-playground.repo
deleted file mode 100644
index 62e828c..0000000
--- a/epel-playground.repo
+++ /dev/null
@@ -1,30 +0,0 @@
-[epel-playground]
-name=Extra Packages for Enterprise Linux 9 - Playground - $basearch
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/playground/9/Everything/$basearch/os/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=playground-epel9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgcheck=1
-countme=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-
-[epel-playground-debuginfo]
-name=Extra Packages for Enterprise Linux 9 - Playground - $basearch - Debug
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/playground/9/Everything/$basearch/debug/tree/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=playground-debug-epel9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
-
-[epel-playground-source]
-name=Extra Packages for Enterprise Linux 9 - Playground - $basearch - Source
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/playground/9/Everything/source/tree/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=playground-source-epel9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
diff --git a/epel-release.spec b/epel-release.spec
index 9c0a680..a866f61 100644
--- a/epel-release.spec
+++ b/epel-release.spec
@@ -1,100 +1,73 @@
-%bcond_without base
-%bcond_without next
-%bcond_without openh264
-%bcond_with modular
-%bcond_with playground
-
Name: epel-release
-Version: 9
-Release: 10%{dist}
+Version: 10
+Release: %autorelease
Summary: Extra Packages for Enterprise Linux repository configuration
-License: GPLv2
-
-# This is a EPEL maintained package which is specific to
-# our distribution. Thus the source is only available from
-# within this srpm.
-URL: http://download.fedoraproject.org/pub/epel
-Source0: http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-%{version}
-Source1: GPL
-
-Source100: epel.repo
-Source101: epel-next.repo
-Source102: epel-modular.repo
-Source103: epel-playground.repo
-Source104: epel-cisco-openh264.repo
-
-Source200: epel-testing.repo
-Source201: epel-next-testing.repo
-Source202: epel-testing-modular.repo
-
-# EPEL default preset policy (borrowed from fedora's 90-default.preset)
-Source300: 90-epel.preset
-
-# Add epel crb repo
-Source301: crb
-
+# Most things in this package are not considered copyrightable. If that were
+# true for everything in the package, the license identifier would be
+# LicenseRef-Not-Copyrightable. However, the exception is the crb script,
+# which is GPL-2.0-only. Per advice from Fedora Legal, we should use
+# GPL-2.0-only as the license identifier for the package in this scenario.
+# https://bugzilla.redhat.com/show_bug.cgi?id=2302438
+License: GPL-2.0-only
BuildArch: noarch
-Requires: redhat-release >= %{version}
-# epel-release is only for enterprise linux, not fedora
-Conflicts: fedora-release
+URL: https://epel.io
+
+# keys
+Source10: https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-%{version}
+
+# repo configs
+Source20: epel.repo
+Source21: epel-testing.repo
+
+# preset policy
+Source30: 90-epel.preset
+
+# Add epel crb script
+Source31: crb
+# epel crb script is licensed GPL-2.0-only
+Source32: GPL-2.0-only.txt
+
+# The setup process for EPEL involves installing epel-release before the EPEL
+# repository is available. For this to continue to work correctly, all
+# dependencies of this package must be available from the default repositories.
+# Notably, if weak dependencies of this package are not present at the time of
+# installation, they will be skipped and never get installed.
+# https://pagure.io/epel/issue/328
+
+# This should only be installed on Enterprise Linux with the same major version
+Requires: (redhat-release >= %{version} with redhat-release < %[%{version} + 1])
+
# crb needs config-manager to run
# But only recommend it, incase people do not need crb
Recommends: dnf-command(config-manager)
-%if %{with next}
-Recommends: (epel-next-release if centos-stream-release)
-%endif
+
+# SELinux policy modules related to EPEL
+Recommends: (selinux-policy-extra if selinux-policy)
%description
This package contains the Extra Packages for Enterprise Linux (EPEL) repository
-GPG key as well as configuration for yum.
-
-
-%if %{with next}
-%package -n epel-next-release
-Summary: Extra Packages for Enterprise Linux Next repository configuration
-Requires: %{name} = %{version}-%{release}
-
-
-%description -n epel-next-release
-This package contains the Extra Packages for Enterprise Linux (EPEL) Next
-configuration for yum.
-%endif
-
+configuration and GPG key.
%prep
%setup -q -c -T
-install -pm 644 %{SOURCE1} .
+# Add epel crb script license
+install -pm 644 %{SOURCE32} .
%install
-# GPG Key
-install -Dpm 644 %{SOURCE0} \
- %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-EPEL-%{version}
+# keys
+install -Dp -m 0644 -t %{buildroot}%{_sysconfdir}/pki/rpm-gpg %{S:10}
-# yum repo configs
-install -dm 755 %{buildroot}%{_sysconfdir}/yum.repos.d
-%if %{with base}
-install -pm 644 %{SOURCE100} %{SOURCE200} %{buildroot}%{_sysconfdir}/yum.repos.d
-%endif
-%if %{with next}
-install -pm 644 %{SOURCE101} %{SOURCE201} %{buildroot}%{_sysconfdir}/yum.repos.d
-%endif
-%if %{with modular}
-install -pm 644 %{SOURCE102} %{SOURCE202} %{buildroot}%{_sysconfdir}/yum.repos.d
-%endif
-%if %{with playground}
-install -pm 644 %{SOURCE103} %{buildroot}%{_sysconfdir}/yum.repos.d
-%endif
-%if %{with openh264}
-install -pm 644 %{SOURCE104} %{buildroot}%{_sysconfdir}/yum.repos.d
-%endif
+# repo configs
+install -Dp -m 0644 -t %{buildroot}%{_sysconfdir}/yum.repos.d %{S:20} %{S:21}
-# systemd presets
-install -pm 644 -D %{SOURCE300} %{buildroot}%{_prefix}/lib/systemd/system-preset/90-epel.preset
+# preset policy
+install -Dp -m 0644 -t %{buildroot}%{_prefix}/lib/systemd/system-preset %{S:30}
+
+# Add epel crb script
+install -D -pm744 -t %{buildroot}%{_bindir} %{SOURCE31}
-# Add epel crb repo
-install -D -pm744 -t %{buildroot}%{_bindir} %{SOURCE301}
%post
# Doing a check to see if crb is enabled is as hard and resource intense as enabling or disabling crb.
@@ -106,149 +79,13 @@ fi
%files
-%license GPL
-%if %{with base}
+%license GPL-2.0-only.txt
+%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-EPEL-%{version}
%config(noreplace) %{_sysconfdir}/yum.repos.d/epel.repo
%config(noreplace) %{_sysconfdir}/yum.repos.d/epel-testing.repo
-%endif
-%if %{with modular}
-%config(noreplace) %{_sysconfdir}/yum.repos.d/epel-modular.repo
-%config(noreplace) %{_sysconfdir}/yum.repos.d/epel-testing-modular.repo
-%endif
-%if %{with playground}
-%config(noreplace) %{_sysconfdir}/yum.repos.d/epel-playground.repo
-%endif
-%if %{with openh264}
-%config(noreplace) %{_sysconfdir}/yum.repos.d/epel-cisco-openh264.repo
-%endif
-%{_sysconfdir}/pki/rpm-gpg/*
%{_prefix}/lib/systemd/system-preset/90-epel.preset
%{_bindir}/crb
-%if %{with next}
-%files -n epel-next-release
-%config(noreplace) %{_sysconfdir}/yum.repos.d/epel-next.repo
-%config(noreplace) %{_sysconfdir}/yum.repos.d/epel-next-testing.repo
-%endif
-
%changelog
-* Tue Apr 22 2025 Troy Dawson - 9-10
-- Tweak crb script. Add FORCE_DNF option
-
-* Thu Nov 28 2024 Carl George - 9-9
-- Remove the use of $releasever rhbz#2219796
-
-* Fri Aug 30 2024 Troy Dawson - 9-8
-- Tweak crb script. Fix for RHEL rhui repos (#2308671)
-
-* Thu Aug 17 2023 Neal Gompa - 9-7
-- Fix typo to actually enable EPEL OpenH264 repo
-
-* Tue Aug 15 2023 Neal Gompa - 9-6
-- Add EPEL OpenH264 repository (#2053295)
-
-* Fri Apr 14 2023 Troy Dawson - 9-5
-- Tweak crb script, check os-release for RHEL (#2186721)
-
-* Tue Aug 09 2022 Troy Dawson - 9-4
-- Tweak crb script, Recommends dnf-command(config-manager) (#2115602)
-
-* Wed Jun 29 2022 Troy Dawson - 9-3
-- Add crb script
-
-* Wed Dec 01 2021 Carl George - 9-2
-- Enable epel9 repo files
-
-* Fri Oct 08 2021 Carl George - 9-1
-- Initial package for epel9-next
-
-* Fri Sep 03 2021 Mohan Boddu - 8-13
-- Change the baseurl to point to source/tree for srpms
-
-* Fri Jul 30 2021 Kevin Fenzi - 8-12
-- Enable certbot-renew.timer ( rhbz#1986205 )
-
-* Thu Jun 03 2021 Carl George - 8-11
-- Add epel-next-release subpackage
-
-* Sat Dec 05 2020 Kevin Fenzi - 8-10
-- Add x509watch.timer enabled by default. Fixes bug #1901721
-
-* Sat Oct 31 2020 Kevin Fenzi - 8-9
-- Add countme feature for epel. Fixes bug #1825984
-
-* Fri Dec 13 2019 Merlin Mathesius - 8-8%{dist}
-- Add modular repos.
-
-* Thu Oct 10 2019 Stephen Smoogen - 8-7%{dist}
-- Remove failovermethod from EPEL8 tree. It is no longer needed.
-
-* Mon Sep 16 2019 Stephen Smoogen - 8-6%{dist}
-- Change gpg key to use -8 versus -$releasever. This fixes bash problem
-
-* Tue Aug 6 2019 Stephen Smoogen - 8-5%{dist}
-- Fix playground release to have os/ on its name [Kevin Fenzi]
-- Make sure all values of $release are $releasever
-
-
-* Thu Aug 1 2019 Pablo Greco - 8-4
-- Use the correct var for dnf to expand
-- Update playground source url
-- Remove epel-modules repo
-- Use https in baseurl
-
-* Thu Aug 1 2019 Stephen Smoogen - 8-3
-- Make sure that the key name is named correctly
-
-* Thu Aug 1 2019 Stephen Smoogen - 8-2
-- Make baseurl paths match dl.fedoraproject.org
-- Add draft of epel8 packaging
-- Fix docs
-
-* Thu Jul 18 2019 Stephen Smoogen - 8-1
-- Update for RHEL-8
-- Add playground repo data
-- Clean out 90-epel.preset to make sure we dont override RHEL-8 items. Just add items in which EPEL needs.
-
-* Mon Oct 02 2017 Kevin Fenzi - 7-11
-- Add Conflicts on fedora-release to prevent people from installing on Fedora systems. Fixes bug #1497702
-
-* Sat Jun 24 2017 Kevin Fenzi - 7-10
-- Change mirrorlist= in repo files to be metalink= (as thats what they are). Fixes bug #1451212
-
-* Tue Dec 27 2016 Kevin Fenzi - 7-9
-- Add preset for drbdlinks package. Fixes bug #1405744
-
-* Sat Jul 23 2016 Kevin Fenzi - 7-8
-- Drop duplicate libstoragemgmt from presets. Fixes bug #1358971
-
-* Fri Jun 03 2016 Kevin Fenzi - 7-7
-- Drop initial-setup from presets. Fixes bug #1342511
-
-* Wed Mar 30 2016 Jason L Tibbitts III - 7-6
-- Remove macros.epel; let epel-rpm-macros handle it instead.
-
-* Tue Nov 25 2014 Rex Dieter 7-5
-- fix typo in macros.epel
-
-* Fri Nov 21 2014 Rex Dieter 7-4
-- add systemd 90-epel.preset
-
-* Fri Nov 21 2014 Rex Dieter 7-3
-- implement %%epel macro
-
-* Tue Sep 02 2014 Kevin Fenzi 7-2
-- Make repo files config(noreplace). Fixes bug #1135576
-
-* Thu Aug 28 2014 Dennis Gilmore - 7-1
-- enable gpg checking now we are out of beta
-
-* Wed Jun 18 2014 Kevin Fenzi 7-0.2
-- Drop unneeded up2date post/postun
-- Fixed up description.
-- Fixes bugs #1052434 and #1093918
-
-* Mon Dec 16 2013 Dennis Gilmore - 7-0.1
-- initial epel 7 build. gpg cheking is disabled
-
+%autochangelog
diff --git a/epel-testing-modular.repo b/epel-testing-modular.repo
deleted file mode 100644
index 32a016d..0000000
--- a/epel-testing-modular.repo
+++ /dev/null
@@ -1,30 +0,0 @@
-[epel-testing-modular]
-name=Extra Packages for Enterprise Linux Modular 9 - Testing - $basearch
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/testing/9/Modular/$basearch
-metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-epel9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgcheck=1
-countme=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-
-[epel-testing-modular-debuginfo]
-name=Extra Packages for Enterprise Linux Modular 9 - Testing - $basearch - Debug
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/testing/9/Modular/$basearch/debug
-metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-debug-epel9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
-
-[epel-testing-modular-source]
-name=Extra Packages for Enterprise Linux Modular 9 - Testing - $basearch - Source
-# It is much more secure to use the metalink, but if you wish to use a local mirror
-# place its address here.
-#baseurl=https://download.example/pub/epel/testing/9/Modular/source/tree/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-source-epel9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
-gpgcheck=1
diff --git a/epel-testing.repo b/epel-testing.repo
index fcd9bef..8335438 100644
--- a/epel-testing.repo
+++ b/epel-testing.repo
@@ -1,30 +1,36 @@
[epel-testing]
-name=Extra Packages for Enterprise Linux 9 - Testing - $basearch
+name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
-#baseurl=https://download.example/pub/epel/testing/9/Everything/$basearch/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-epel9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
+#baseurl=https://download.example/pub/epel/testing/$releasever${releasever_minor:+z}/Everything/$basearch/
+metalink=https://mirrors.fedoraproject.org/metalink?repo=epel${releasever_minor:+-z}-testing-$releasever&arch=$basearch
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major
gpgcheck=1
+repo_gpgcheck=0
+metadata_expire=24h
countme=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
+enabled=0
[epel-testing-debuginfo]
-name=Extra Packages for Enterprise Linux 9 - Testing - $basearch - Debug
+name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Debug
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
-#baseurl=https://download.example/pub/epel/testing/9/Everything/$basearch/debug/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
+#baseurl=https://download.example/pub/epel/testing/$releasever${releasever_minor:+z}/Everything/$basearch/debug/
+metalink=https://mirrors.fedoraproject.org/metalink?repo=epel${releasever_minor:+-z}-testing-debug-$releasever&arch=$basearch
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major
gpgcheck=1
+repo_gpgcheck=0
+metadata_expire=24h
+enabled=0
[epel-testing-source]
-name=Extra Packages for Enterprise Linux 9 - Testing - $basearch - Source
+name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Source
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
-#baseurl=https://download.example/pub/epel/testing/9/Everything/source/tree/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
+#baseurl=https://download.example/pub/epel/testing/$releasever${releasever_minor:+z}/Everything/source/tree/
+metalink=https://mirrors.fedoraproject.org/metalink?repo=epel${releasever_minor:+-z}-testing-source-$releasever&arch=source
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major
gpgcheck=1
+repo_gpgcheck=0
+metadata_expire=24h
+enabled=0
diff --git a/epel.repo b/epel.repo
index 06f2c52..f186dbd 100644
--- a/epel.repo
+++ b/epel.repo
@@ -1,30 +1,36 @@
[epel]
-name=Extra Packages for Enterprise Linux 9 - $basearch
+name=Extra Packages for Enterprise Linux $releasever - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
-#baseurl=https://download.example/pub/epel/9/Everything/$basearch/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=1
+#baseurl=https://download.example/pub/epel/$releasever${releasever_minor:+z}/Everything/$basearch/
+metalink=https://mirrors.fedoraproject.org/metalink?repo=epel${releasever_minor:+-z}-$releasever&arch=$basearch
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major
gpgcheck=1
+repo_gpgcheck=0
+metadata_expire=24h
countme=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
+enabled=1
[epel-debuginfo]
-name=Extra Packages for Enterprise Linux 9 - $basearch - Debug
+name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
-#baseurl=https://download.example/pub/epel/9/Everything/$basearch/debug/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
+#baseurl=https://download.example/pub/epel/$releasever${releasever_minor:+z}/Everything/$basearch/debug/
+metalink=https://mirrors.fedoraproject.org/metalink?repo=epel${releasever_minor:+-z}-debug-$releasever&arch=$basearch
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major
gpgcheck=1
+repo_gpgcheck=0
+metadata_expire=24h
+enabled=0
[epel-source]
-name=Extra Packages for Enterprise Linux 9 - $basearch - Source
+name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
-#baseurl=https://download.example/pub/epel/9/Everything/source/tree/
-metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-9&arch=$basearch&infra=$infra&content=$contentdir
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
+#baseurl=https://download.example/pub/epel/$releasever${releasever_minor:+z}/Everything/source/tree/
+metalink=https://mirrors.fedoraproject.org/metalink?repo=epel${releasever_minor:+-z}-source-$releasever&arch=source
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever_major
gpgcheck=1
+repo_gpgcheck=0
+metadata_expire=24h
+enabled=0