Blame SPECS/centos-release-kmods.spec

534dad
Name:             centos-release-kmods
c3f051
Version:          2
a5597c
Release:          2%{?dist}
a5597c
Summary:          CentOS Kmods SIG package repositories
534dad
534dad
License:          GPLv2
a5597c
URL:              https://sigs.centos.org/kmods
534dad
534dad
Source0:          RPM-GPG-KEY-CentOS-SIG-Kmods
534dad
Source1:          CentOS-Stream-Kmods.repo
534dad
534dad
BuildArch:        noarch
534dad
534dad
Requires:         centos-stream-release
a5597c
Provides:         centos-release-kmods-rebuild = %{version}-%{release}
534dad
534dad
534dad
%description
a5597c
This package provides the package repository files for CentOS Kmods SIG.
534dad
534dad
534dad
%prep
534dad
534dad
534dad
%build
534dad
534dad
534dad
%install
534dad
%{__install} -m 644 -D -t %{buildroot}%{_sysconfdir}/pki/rpm-gpg %{SOURCE0}
a5597c
%{__install} -m 644 -D -t %{buildroot}%{_sysconfdir}/yum.repos.d %{SOURCE1}
534dad
534dad
534dad
%clean
534dad
%{__rm} -rf %{buildroot}
534dad
534dad
534dad
%files
534dad
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Kmods
534dad
%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Stream-Kmods.repo
a5597c
%ghost %{_sysconfdir}/yum.repos.d/CentOS-Stream-Kmods-Rebuild.repo
534dad
534dad
a5597c
%triggerin -- centos-release-kmods-rebuild
a5597c
REPO=/etc/yum.repos.d/CentOS-Stream-Kmods.repo
a5597c
if [ -f "${REPO}" ]
a5597c
then
a5597c
    sed -i '/^\[centos-kmods-rebuild\]$/,/^enabled=.$/s/^enabled=0$/enabled=1/' $REPO
a5597c
fi
534dad
534dad
534dad
%changelog
a5597c
* Thu Jan 20 2022 Peter Georg <peter.georg@physik.uni-regensburg.de> - 2-2
a5597c
- Add *-source repos
a5597c
- Use a single config file for all repos
a5597c
- Disable centos-kmods-rebuild by default
a5597c
c3f051
* Thu Aug 12 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 2-1
c3f051
- Add *-testing repos
c3f051
534dad
* Mon Jul 19 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 1-1
534dad
- Initial release