|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: mock-core-configs
|
|
|
|
|
Version: 36.4
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 37
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Mock core config files basic chroots
|
|
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
@ -18,26 +18,18 @@ BuildArch: noarch
|
|
|
|
|
Provides: mock-configs
|
|
|
|
|
|
|
|
|
|
# distribution-gpg-keys contains GPG keys used by mock configs
|
|
|
|
|
Requires: distribution-gpg-keys >= 1.60
|
|
|
|
|
Requires: distribution-gpg-keys >= 1.64
|
|
|
|
|
# specify minimal compatible version of mock
|
|
|
|
|
Requires: mock >= 2.5
|
|
|
|
|
Requires: mock-filesystem
|
|
|
|
|
|
|
|
|
|
Requires(post): coreutils
|
|
|
|
|
%if 0%{?fedora} || 0%{?mageia} || 0%{?rhel} > 7
|
|
|
|
|
# to detect correct default.cfg
|
|
|
|
|
Requires(post): python3-dnf
|
|
|
|
|
Requires(post): python3-hawkey
|
|
|
|
|
Requires(post): system-release
|
|
|
|
|
Requires(post): python3
|
|
|
|
|
Requires(post): sed
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
# to detect correct default.cfg
|
|
|
|
|
Requires(post): python
|
|
|
|
|
Requires(post): yum
|
|
|
|
|
Requires(post): /etc/os-release
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Config files which allow you to create chroots for:
|
|
|
|
@ -126,15 +118,11 @@ else
|
|
|
|
|
# something obsure, use buildtime version
|
|
|
|
|
ver=%{?rhel}%{?fedora}%{?mageia}
|
|
|
|
|
fi
|
|
|
|
|
%if 0%{?fedora} || 0%{?mageia} || 0%{?rhel} > 7
|
|
|
|
|
if [ -s /etc/mageia-release ]; then
|
|
|
|
|
mock_arch=$(sed -n '/^$/!{$ s/.* \(\w*\)$/\1/p}' /etc/mageia-release)
|
|
|
|
|
else
|
|
|
|
|
mock_arch=$(python3 -c "import dnf.rpm; import hawkey; print(dnf.rpm.basearch(hawkey.detect_arch()))")
|
|
|
|
|
fi
|
|
|
|
|
%else
|
|
|
|
|
mock_arch=$(python -c "import rpmUtils.arch; baseArch = rpmUtils.arch.getBaseArch(); print baseArch")
|
|
|
|
|
%endif
|
|
|
|
|
cfg=%{?fedora:fedora}%{?rhel:epel}%{?mageia:mageia}-$ver-${mock_arch}.cfg
|
|
|
|
|
if [ -e %{_sysconfdir}/mock/$cfg ]; then
|
|
|
|
|
if [ "$(readlink %{_sysconfdir}/mock/default.cfg)" != "$cfg" ]; then
|
|
|
|
@ -152,8 +140,13 @@ fi
|
|
|
|
|
%ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 36.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
* 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
|
|
|
|
|
- depend on distribution-gpg-keys 1.64
|
|
|
|
|
- drop failovermethod=priority from EL8 configs
|
|
|
|
|
- Add Extras repo for CentOS Stream 9 (ngompa13@gmail.com)
|
|
|
|
|
- remove el7 specific parts from the spec file (msuchy@redhat.com)
|
|
|
|
|
|
|
|
|
|
* Thu Dec 16 2021 Pavel Raiskup <praiskup@redhat.com> 36.4-1
|
|
|
|
|
- add CentOS Stream 9 + EPEL Next 9 (ngompa13@gmail.com)
|
|
|
|
|