|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
Name: mock-core-configs
|
|
|
|
|
Version: 37
|
|
|
|
|
Version: 37.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Mock core config files basic chroots
|
|
|
|
|
|
|
|
|
@ -44,28 +44,6 @@ Config files which allow you to create chroots for:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
HOST=none
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
HOST="fedora-%{fedora}"
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
HOST="rhel-%{rhel}"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# host overrides
|
|
|
|
|
case $HOST in
|
|
|
|
|
rhel-7)
|
|
|
|
|
# RPM on EL7 doesn't link against libzstd, and newer Fedora is compressed
|
|
|
|
|
# using ZSTD. We need to enable bootstrap image here to be able to
|
|
|
|
|
# initialize the Fedora bootstrap chroot.
|
|
|
|
|
for config in etc/mock/fedora-*-*.cfg; do
|
|
|
|
|
version=$(echo "$config" | cut -d- -f2)
|
|
|
|
|
if test $version = rawhide || test $version -ge 31; then
|
|
|
|
|
echo "config_opts['use_bootstrap_image'] = True" >> "$config"
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
@ -123,7 +101,30 @@ if [ -s /etc/mageia-release ]; then
|
|
|
|
|
else
|
|
|
|
|
mock_arch=$(python3 -c "import dnf.rpm; import hawkey; print(dnf.rpm.basearch(hawkey.detect_arch()))")
|
|
|
|
|
fi
|
|
|
|
|
cfg=%{?fedora:fedora}%{?rhel:epel}%{?mageia:mageia}-$ver-${mock_arch}.cfg
|
|
|
|
|
|
|
|
|
|
cfg=unknown-distro
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
cfg=fedora-$ver-$mock_arch.cfg
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# Being installed on RHEL, or a RHEL fork. Detect it.
|
|
|
|
|
distro_id=$(. /etc/os-release; echo $ID)
|
|
|
|
|
case $distro_id in
|
|
|
|
|
centos)
|
|
|
|
|
# This package is EL8+, and there's only CentOS Stream now.
|
|
|
|
|
distro_id=centos-stream
|
|
|
|
|
;;
|
|
|
|
|
almalinux)
|
|
|
|
|
# AlmaLinux configs look like 'alma+epel'
|
|
|
|
|
distro_id=alma
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
cfg=$distro_id+epel-$ver-$mock_arch.cfg
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?mageia}
|
|
|
|
|
cfg=mageia-$ver-$mock_arch.cfg
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
if [ -e %{_sysconfdir}/mock/$cfg ]; then
|
|
|
|
|
if [ "$(readlink %{_sysconfdir}/mock/default.cfg)" != "$cfg" ]; then
|
|
|
|
|
ln -s $cfg %{_sysconfdir}/mock/default.cfg 2>/dev/null || ln -s -f $cfg %{_sysconfdir}/mock/default.cfg.rpmnew
|
|
|
|
@ -140,6 +141,11 @@ fi
|
|
|
|
|
%ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Feb 04 2022 Pavel Raiskup <praiskup@redhat.com> 37.1-1
|
|
|
|
|
- drop EL7 related %%build hack
|
|
|
|
|
- link default.cfg file to the right EL N config file
|
|
|
|
|
- Add centos-stream+epel-8 configs
|
|
|
|
|
|
|
|
|
|
* Wed Feb 02 2022 Pavel Raiskup <praiskup@redhat.com> 37-1
|
|
|
|
|
- move CentOS/EPEL 8 configs to eol/
|
|
|
|
|
- Fedora 36 branching, Rawhide == Fedora 37 now
|
|
|
|
|