|
|
@ -2,7 +2,7 @@
|
|
|
|
%global mockgid 135
|
|
|
|
%global mockgid 135
|
|
|
|
|
|
|
|
|
|
|
|
Name: mock-core-configs
|
|
|
|
Name: mock-core-configs
|
|
|
|
Version: 30.4
|
|
|
|
Version: 30.5
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Mock core config files basic chroots
|
|
|
|
Summary: Mock core config files basic chroots
|
|
|
|
|
|
|
|
|
|
|
@ -19,8 +19,10 @@ BuildArch: noarch
|
|
|
|
# distribution-gpg-keys contains GPG keys used by mock configs
|
|
|
|
# distribution-gpg-keys contains GPG keys used by mock configs
|
|
|
|
Requires: distribution-gpg-keys >= 1.29
|
|
|
|
Requires: distribution-gpg-keys >= 1.29
|
|
|
|
|
|
|
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(post): coreutils
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 29 || 0%{?rhel} > 8
|
|
|
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora} || 0%{?mageia} || 0%{?rhel} > 7
|
|
|
|
%if 0%{?fedora} || 0%{?mageia} || 0%{?rhel} > 7
|
|
|
|
# to detect correct default.cfg
|
|
|
|
# to detect correct default.cfg
|
|
|
|
Requires(post): python3-dnf
|
|
|
|
Requires(post): python3-dnf
|
|
|
@ -30,6 +32,7 @@ Requires(post): python3
|
|
|
|
Requires(post): sed
|
|
|
|
Requires(post): sed
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
# to detect correct default.cfg
|
|
|
|
# to detect correct default.cfg
|
|
|
|
Requires(post): python
|
|
|
|
Requires(post): python
|
|
|
|
Requires(post): yum
|
|
|
|
Requires(post): yum
|
|
|
@ -53,6 +56,11 @@ Config files which allow you to create chroots for:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysusersdir}
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 29 || 0%{?rhel} > 8
|
|
|
|
|
|
|
|
cp -a mock.conf %{buildroot}%{_sysusersdir}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/mock/eol
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/mock/eol
|
|
|
|
cp -a etc/mock/*.cfg %{buildroot}%{_sysconfdir}/mock
|
|
|
|
cp -a etc/mock/*.cfg %{buildroot}%{_sysconfdir}/mock
|
|
|
|
cp -a etc/mock/eol/*cfg %{buildroot}%{_sysconfdir}/mock/eol
|
|
|
|
cp -a etc/mock/eol/*cfg %{buildroot}%{_sysconfdir}/mock/eol
|
|
|
@ -71,10 +79,15 @@ elif [ -d %{buildroot}%{_sysconfdir}/bash_completion.d ]; then
|
|
|
|
echo %{_sysconfdir}/bash_completion.d/mock >> %{name}.cfgs
|
|
|
|
echo %{_sysconfdir}/bash_completion.d/mock >> %{name}.cfgs
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%pre
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 29 || 0%{?rhel} > 8
|
|
|
|
|
|
|
|
%sysusers_create_package mock mock.conf
|
|
|
|
|
|
|
|
%else
|
|
|
|
# check for existence of mock group, create it if not found
|
|
|
|
# check for existence of mock group, create it if not found
|
|
|
|
getent group mock > /dev/null || groupadd -f -g %mockgid -r mock
|
|
|
|
getent group mock > /dev/null || groupadd -f -g %mockgid -r mock
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
if [ -s /etc/os-release ]; then
|
|
|
|
if [ -s /etc/os-release ]; then
|
|
|
@ -116,11 +129,26 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.cfgs
|
|
|
|
%files -f %{name}.cfgs
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 29 || 0%{?rhel} > 8
|
|
|
|
|
|
|
|
%{_sysusersdir}/mock.conf
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%dir %{_sysconfdir}/mock
|
|
|
|
%dir %{_sysconfdir}/mock
|
|
|
|
%dir %{_sysconfdir}/mock/eol
|
|
|
|
%dir %{_sysconfdir}/mock/eol
|
|
|
|
%ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg
|
|
|
|
%ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Aug 08 2019 Miroslav Suchý <msuchy@redhat.com> 30.5-1
|
|
|
|
|
|
|
|
- disable updates-modulare repos for now
|
|
|
|
|
|
|
|
- buildrequire systemd-srpm-macros to get _sysusersdir
|
|
|
|
|
|
|
|
- removed info about metadata expire (khoidinhtrinh@gmail.com)
|
|
|
|
|
|
|
|
- added updates-modular to 29 and 30 (khoidinhtrinh@gmail.com)
|
|
|
|
|
|
|
|
- replace groupadd using sysusers.d
|
|
|
|
|
|
|
|
- core-configs: epel-7 profiles to use mirrorlists (praiskup@redhat.com)
|
|
|
|
|
|
|
|
- EOL Fedora 28
|
|
|
|
|
|
|
|
- do not protect packages in chroot [GH#286]
|
|
|
|
|
|
|
|
- Fix value for dist for OpenMandriva 4.0 configs (ngompa13@gmail.com)
|
|
|
|
|
|
|
|
- Add initial OpenMandriva distribution targets (ngompa13@gmail.com)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 06 2019 Miroslav Suchý <msuchy@redhat.com> 30.4-1
|
|
|
|
* Thu Jun 06 2019 Miroslav Suchý <msuchy@redhat.com> 30.4-1
|
|
|
|
- Add 'fastestmirror=1' to Mageia mock configs (ngompa13@gmail.com)
|
|
|
|
- Add 'fastestmirror=1' to Mageia mock configs (ngompa13@gmail.com)
|
|
|
|
- bootstrap: disable sclo* repos for epel --installroot (praiskup@redhat.com)
|
|
|
|
- bootstrap: disable sclo* repos for epel --installroot (praiskup@redhat.com)
|
|
|
|