Add fake mock configs for riscv64

Otherwise mock doesn't want to work.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-11-23 16:09:33 +02:00
parent 4426cc94a6
commit 2b27bae043
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
2 changed files with 49 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: mock-core-configs
Version: 37.8
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
Summary: Mock core config files basic chroots
License: GPL-2.0-or-later
@ -13,6 +13,8 @@ URL: https://github.com/rpm-software-management/mock/
Source: https://github.com/rpm-software-management/mock/releases/download/%{name}-%{version}-1/%{name}-%{version}.tar.gz
BuildArch: noarch
Patch10: mock-riscv64-configs.patch
# The mock.rpm requires this. Other packages may provide this if they tend to
# replace the mock-core-configs.rpm functionality.
Provides: mock-configs
@ -41,6 +43,7 @@ Rocky Linux and various other specific or combined chroots.
%prep
%setup -q
%patch10 -p1 -b .riscv64
%build
@ -140,6 +143,9 @@ fi
%ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg
%changelog
* Wed Nov 23 2022 David Abdurachmanov <davidlt@rivosinc.com> 37.8-1.0.riscv64
- Add configs for riscv64
* Tue Sep 27 2022 Pavel Raiskup <praiskup@redhat.com> 37.8-1
- openEuler 22.03 configs added (yikunkero@gmail.com)
- openEuler 20.03 configs added (yikunkero@gmail.com)

View File

@ -0,0 +1,42 @@
diff --git a/etc/mock/fedora-37-riscv64.cfg b/etc/mock/fedora-37-riscv64.cfg
new file mode 100644
index 0000000..7374dec
--- /dev/null
+++ b/etc/mock/fedora-37-riscv64.cfg
@@ -0,0 +1,5 @@
+config_opts['releasever'] = '37'
+config_opts['target_arch'] = 'riscv64'
+config_opts['legal_host_arches'] = ('riscv64',)
+
+include('templates/fedora-branched.tpl')
diff --git a/etc/mock/fedora-38-riscv64.cfg b/etc/mock/fedora-38-riscv64.cfg
new file mode 100644
index 0000000..65beeab
--- /dev/null
+++ b/etc/mock/fedora-38-riscv64.cfg
@@ -0,0 +1,4 @@
+config_opts['target_arch'] = 'riscv64'
+config_opts['legal_host_arches'] = ('riscv64',)
+
+include('templates/fedora-rawhide.tpl')
diff --git a/etc/mock/fedora-eln-riscv64.cfg b/etc/mock/fedora-eln-riscv64.cfg
new file mode 100644
index 0000000..3cf209c
--- /dev/null
+++ b/etc/mock/fedora-eln-riscv64.cfg
@@ -0,0 +1,5 @@
+config_opts['target_arch'] = 'riscv64'
+config_opts['legal_host_arches'] = ('riscv64',)
+
+include('templates/fedora-eln.tpl')
+config_opts['description'] = 'Fedora ELN'
diff --git a/etc/mock/fedora-rawhide-riscv64.cfg b/etc/mock/fedora-rawhide-riscv64.cfg
new file mode 100644
index 0000000..65beeab
--- /dev/null
+++ b/etc/mock/fedora-rawhide-riscv64.cfg
@@ -0,0 +1,4 @@
+config_opts['target_arch'] = 'riscv64'
+config_opts['legal_host_arches'] = ('riscv64',)
+
+include('templates/fedora-rawhide.tpl')