|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
%global mockgid 135
|
|
|
|
|
|
|
|
|
|
Name: mock-core-configs
|
|
|
|
|
Version: 27.4
|
|
|
|
|
Version: 28.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Mock core config files basic chroots
|
|
|
|
|
|
|
|
|
@ -21,7 +21,7 @@ Requires: distribution-gpg-keys >= 1.15
|
|
|
|
|
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
Requires(post): coreutils
|
|
|
|
|
%if 0%{?fedora} || 0%{?mageia}
|
|
|
|
|
%if 0%{?fedora} || 0%{?mageia} || 0%{?rhel} > 7
|
|
|
|
|
# to detect correct default.cfg
|
|
|
|
|
Requires(post): python3-dnf
|
|
|
|
|
Requires(post): python3-hawkey
|
|
|
|
@ -29,7 +29,7 @@ Requires(post): system-release
|
|
|
|
|
Requires(post): python3
|
|
|
|
|
Requires(post): sed
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%if 0%{?rhel} <= 7
|
|
|
|
|
# to detect correct default.cfg
|
|
|
|
|
Requires(post): python
|
|
|
|
|
Requires(post): yum
|
|
|
|
@ -76,7 +76,7 @@ exit 0
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
if [ -s /etc/os-release ]; then
|
|
|
|
|
# fedora and rhel7
|
|
|
|
|
# fedora and rhel7+
|
|
|
|
|
if grep -Fiq Rawhide /etc/os-release; then
|
|
|
|
|
ver=rawhide
|
|
|
|
|
# mageia
|
|
|
|
@ -91,7 +91,7 @@ else
|
|
|
|
|
# something obsure, use buildtime version
|
|
|
|
|
ver=%{?rhel}%{?fedora}%{?mageia}
|
|
|
|
|
fi
|
|
|
|
|
%if 0%{?fedora} || 0%{?mageia}
|
|
|
|
|
%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
|
|
|
|
@ -119,6 +119,15 @@ fi
|
|
|
|
|
%ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jan 22 2018 Miroslav Suchý <msuchy@redhat.com> 28.1-1
|
|
|
|
|
- bump up version to 28.1
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2018 Miroslav Suchý <msuchy@redhat.com> 27.5-1
|
|
|
|
|
- add fedora 28 configs
|
|
|
|
|
- remove failovermethod=priority for repos which use dnf
|
|
|
|
|
- remove fedora 24 configs
|
|
|
|
|
- set skip_if_unavailable=False for all repos
|
|
|
|
|
|
|
|
|
|
* Mon Oct 09 2017 Miroslav Suchý <msuchy@redhat.com> 27.4-1
|
|
|
|
|
- Fix mock & mock-core-config specs to support Mageia (ngompa13@gmail.com)
|
|
|
|
|
- Ensure mock-core-configs will select the right default on Mageia
|
|
|
|
|