Blame SPECS/centos-release-advanced-virtualization.spec

501ee5
Summary: Advanced Virtualization packages from the CentOS Virtualization SIG repository
501ee5
Name: centos-release-advanced-virtualization
501ee5
Version: 1.0
Neil Hanlon 85c5af
Release: 4%{?dist}
501ee5
License: GPLv2
501ee5
URL: http://wiki.centos.org/SpecialInterestGroup/Virtualization
501ee5
Source0: CentOS-Advanced-Virtualization.repo
501ee5
Source1: COPYING
501ee5
501ee5
BuildArch: noarch
501ee5
501ee5
Requires: centos-release-virt-common
501ee5
Requires: centos-release
6b7226
Requires(post): centos-release
501ee5
501ee5
%description
501ee5
yum configuration and basic docs for Advanced Virtualization packages as delivered via the
501ee5
CentOS Virtualization SIG.
501ee5
501ee5
%prep
501ee5
cp %{SOURCE1} .
501ee5
501ee5
%install
501ee5
install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/CentOS-Advanced-Virtualization.repo
501ee5
6b7226
%post
6b7226
source /etc/os-release
Neil Hanlon 85c5af
if [[ $ID == 'centos' && $NAME == *'Stream' ]]; then
6b7226
    echo "8-stream" > /etc/dnf/vars/avstream
6b7226
    echo "advancedvirt-common" > /etc/dnf/vars/avdir
6b7226
else
6b7226
    echo "8" > /etc/dnf/vars/avstream
6b7226
    echo "advanced-virtualization" > /etc/dnf/vars/avdir
6b7226
fi
6b7226
6b7226
%postun
6b7226
if [ $1 -eq 0 ] ; then
6b7226
    rm -f /etc/dnf/vars/avstream
6b7226
    rm -f /etc/dnf/vars/avdir
6b7226
fi
6b7226
501ee5
501ee5
%files
501ee5
%defattr(-,root,root)
501ee5
%config(noreplace) %{_sysconfdir}/yum.repos.d/CentOS-Advanced-Virtualization.repo
501ee5
%license COPYING
501ee5
501ee5
%changelog
Neil Hanlon 85c5af
* Tue Oct 26 2021 Neil Hanlon <neil@resf.org> - 1.0-4
Neil Hanlon 85c5af
- Fix logic for avstream and avdir to allow installation on non-Stream installs and derivatives
Neil Hanlon 85c5af
6b7226
* Wed Jun 09 2021 Sandro Bonazzola <sbonazzo@redhat.com> - 1.0-3
6b7226
- Add support for CentOS Stream 8 repos
6b7226
7b4c9f
* Wed Sep 02 2020 Sandro Bonazzola <sbonazzo@redhat.com> - 1.0-2
7b4c9f
- Set module_hotfixes=1 for advanced virtualization repos
7b4c9f
501ee5
* Thu Jun 04 2020 Sandro Bonazzola <sbonazzo@redhat.com> - 1.0-1
501ee5
- Initial packaging