Compare commits

..

1 Commits

Author SHA1 Message Date
5cb65baf64
Add fake riscv64 configs for mock
Mock will not work if will not find these.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
2020-12-04 07:49:17 +02:00
2 changed files with 39 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: mock-core-configs Name: mock-core-configs
Version: 33.3 Version: 33.3
Release: 1%{?dist} Release: 1.0.riscv64%{?dist}
Summary: Mock core config files basic chroots Summary: Mock core config files basic chroots
License: GPLv2+ License: GPLv2+
@ -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 Source: https://github.com/rpm-software-management/mock/releases/download/%{name}-%{version}-1/%{name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
Patch10: mock-riscv64-configs.patch
# The mock.rpm requires this. Other packages may provide this if they tend to # The mock.rpm requires this. Other packages may provide this if they tend to
# replace the mock-core-configs.rpm functionality. # replace the mock-core-configs.rpm functionality.
Provides: mock-configs Provides: mock-configs
@ -51,6 +53,8 @@ Config files which allow you to create chroots for:
%prep %prep
%setup -q %setup -q
%patch10 -p1 -b .riscv64
%build %build
cd etc/host-overrides cd etc/host-overrides
@ -144,6 +148,9 @@ fi
%ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg %ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg
%changelog %changelog
* Fri Dec 04 2020 David Abdurachmanov <david.abdurachmanov@sifive.com> 33.3-1.0.riscv64
- Add configurations for riscv64
* Fri Nov 20 2020 Pavel Raiskup <praiskup@redhat.com> 33.3-1 * Fri Nov 20 2020 Pavel Raiskup <praiskup@redhat.com> 33.3-1
- ELN should use for build Everything repository (jkonecny@redhat.com) - ELN should use for build Everything repository (jkonecny@redhat.com)

View File

@ -0,0 +1,31 @@
diff --git a/etc/mock/fedora-33-riscv64.cfg b/etc/mock/fedora-33-riscv64.cfg
new file mode 100644
index 0000000..3d40935
--- /dev/null
+++ b/etc/mock/fedora-33-riscv64.cfg
@@ -0,0 +1,5 @@
+config_opts['releasever'] = '33'
+config_opts['target_arch'] = 'riscv64'
+config_opts['legal_host_arches'] = ('riscv64',)
+
+include('templates/fedora-branched.tpl')
diff --git a/etc/mock/fedora-34-riscv64.cfg b/etc/mock/fedora-34-riscv64.cfg
new file mode 100644
index 0000000..65beeab
--- /dev/null
+++ b/etc/mock/fedora-34-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-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')