12 changed files with 177 additions and 48 deletions
@ -0,0 +1,19 @@ |
|||
#!/bin/bash |
|||
|
|||
set -Eeuo pipefail |
|||
|
|||
GIT_REPOSITORY="https://github.com/nmasse-itix/zfs-aarch64.git" |
|||
COPR_PROJECT="zfs-aarch64" |
|||
COPR_USERNAME="$(copr-cli whoami)" |
|||
|
|||
for dist in centos-* fedora-*; do |
|||
chroot="${dist//centos/epel}-aarch64" |
|||
echo "Building packages for $dist using $chroot..." |
|||
for spec in $dist/SPECS/*.spec; do |
|||
spec=${spec#$dist/} |
|||
copr-cli buildscm --clone-url "$GIT_REPOSITORY" --subdir "$dist" --spec "$spec" --chroot "$chroot" --nowait "$COPR_PROJECT" |
|||
done |
|||
done |
|||
|
|||
echo "All builds submitted to COPR project '@$COPR_USERNAME/$COPR_PROJECT'." |
|||
echo "You can monitor the build status at: https://copr.fedorainfracloud.org/coprs/$COPR_USERNAME/$COPR_PROJECT/builds/" |
|||
@ -0,0 +1,26 @@ |
|||
diff --git a/SPECS/libvirt.spec b/SPECS/libvirt.spec
|
|||
--- a/SPECS/libvirt.spec
|
|||
+++ b/SPECS/libvirt.spec
|
|||
@@ -26,7 +26,7 @@
|
|||
%endif |
|||
%define arches_vbox %{arches_x86} |
|||
%define arches_ceph %{arches_64bit} |
|||
-%define arches_zfs %{arches_x86} %{power64} %{arm}
|
|||
+%define arches_zfs %{arches_x86} %{power64} %{arm} aarch64
|
|||
%define arches_numactl %{arches_x86} %{power64} aarch64 s390x |
|||
%define arches_numad %{arches_x86} %{power64} aarch64 |
|||
%define arches_ch x86_64 aarch64 |
|||
@@ -76,12 +76,7 @@
|
|||
%define with_storage_gluster 0 |
|||
%endif |
|||
|
|||
-# Fedora had zfs-fuse until F43
|
|||
-%if 0%{?fedora} && 0%{?fedora} < 43
|
|||
- %define with_storage_zfs 0%{!?_without_storage_zfs:1}
|
|||
-%else
|
|||
- %define with_storage_zfs 0
|
|||
-%endif
|
|||
+%define with_storage_zfs 1
|
|||
|
|||
%define with_storage_iscsi_direct 0%{!?_without_storage_iscsi_direct:1} |
|||
# libiscsi has been dropped in RHEL-9 |
|||
@ -0,0 +1,26 @@ |
|||
diff --git a/SPECS/libvirt.spec b/SPECS/libvirt.spec
|
|||
--- a/SPECS/libvirt.spec
|
|||
+++ b/SPECS/libvirt.spec
|
|||
@@ -26,7 +26,7 @@
|
|||
%endif |
|||
%define arches_vbox %{arches_x86} |
|||
%define arches_ceph %{arches_64bit} |
|||
-%define arches_zfs %{arches_x86} %{power64} %{arm}
|
|||
+%define arches_zfs %{arches_x86} %{power64} %{arm} aarch64
|
|||
%define arches_numactl %{arches_x86} %{power64} aarch64 s390x |
|||
%define arches_numad %{arches_x86} %{power64} aarch64 |
|||
%define arches_ch x86_64 aarch64 |
|||
@@ -76,12 +76,7 @@
|
|||
%define with_storage_gluster 0 |
|||
%endif |
|||
|
|||
-# Fedora had zfs-fuse until F43
|
|||
-%if 0%{?fedora} && 0%{?fedora} < 43
|
|||
- %define with_storage_zfs 0%{!?_without_storage_zfs:1}
|
|||
-%else
|
|||
- %define with_storage_zfs 0
|
|||
-%endif
|
|||
+%define with_storage_zfs 1
|
|||
|
|||
%define with_storage_iscsi_direct 0%{!?_without_storage_iscsi_direct:1} |
|||
# libiscsi has been dropped in RHEL-9 |
|||
@ -0,0 +1,26 @@ |
|||
diff --git a/SPECS/libvirt.spec b/SPECS/libvirt.spec
|
|||
--- a/SPECS/libvirt.spec
|
|||
+++ b/SPECS/libvirt.spec
|
|||
@@ -26,7 +26,7 @@
|
|||
%endif |
|||
%define arches_vbox %{arches_x86} |
|||
%define arches_ceph %{arches_64bit} |
|||
-%define arches_zfs %{arches_x86} %{power64} %{arm}
|
|||
+%define arches_zfs %{arches_x86} %{power64} %{arm} aarch64
|
|||
%define arches_numactl %{arches_x86} %{power64} aarch64 s390x |
|||
%define arches_numad %{arches_x86} %{power64} aarch64 |
|||
|
|||
@@ -75,12 +75,7 @@
|
|||
%endif |
|||
%endif |
|||
|
|||
-# Fedora has zfs-fuse
|
|||
-%if 0%{?fedora}
|
|||
- %define with_storage_zfs 0%{!?_without_storage_zfs:1}
|
|||
-%else
|
|||
- %define with_storage_zfs 0
|
|||
-%endif
|
|||
+%define with_storage_zfs 1
|
|||
|
|||
%define with_storage_iscsi_direct 0%{!?_without_storage_iscsi_direct:1} |
|||
# libiscsi has been dropped in RHEL-9 |
|||
@ -0,0 +1,26 @@ |
|||
diff --git a/SPECS/libvirt.spec b/SPECS/libvirt.spec
|
|||
--- a/SPECS/libvirt.spec
|
|||
+++ b/SPECS/libvirt.spec
|
|||
@@ -26,7 +26,7 @@
|
|||
%endif |
|||
%define arches_vbox %{arches_x86} |
|||
%define arches_ceph %{arches_64bit} |
|||
-%define arches_zfs %{arches_x86} %{power64} %{arm}
|
|||
+%define arches_zfs %{arches_x86} %{power64} %{arm} aarch64
|
|||
%define arches_numactl %{arches_x86} %{power64} aarch64 s390x |
|||
%define arches_numad %{arches_x86} %{power64} aarch64 |
|||
|
|||
@@ -75,12 +75,7 @@
|
|||
%endif |
|||
%endif |
|||
|
|||
-# Fedora has zfs-fuse
|
|||
-%if 0%{?fedora}
|
|||
- %define with_storage_zfs 0%{!?_without_storage_zfs:1}
|
|||
-%else
|
|||
- %define with_storage_zfs 0
|
|||
-%endif
|
|||
+%define with_storage_zfs 1
|
|||
|
|||
%define with_storage_iscsi_direct 0%{!?_without_storage_iscsi_direct:1} |
|||
# libiscsi has been dropped in RHEL-9 |
|||
@ -0,0 +1,26 @@ |
|||
diff --git a/SPECS/libvirt.spec b/SPECS/libvirt.spec
|
|||
--- a/SPECS/libvirt.spec
|
|||
+++ b/SPECS/libvirt.spec
|
|||
@@ -26,7 +26,7 @@
|
|||
%endif |
|||
%define arches_vbox %{arches_x86} |
|||
%define arches_ceph %{arches_64bit} |
|||
-%define arches_zfs %{arches_x86} %{power64} %{arm}
|
|||
+%define arches_zfs %{arches_x86} %{power64} %{arm} aarch64
|
|||
%define arches_numactl %{arches_x86} %{power64} aarch64 s390x |
|||
%define arches_numad %{arches_x86} %{power64} aarch64 |
|||
%define arches_ch x86_64 aarch64 |
|||
@@ -76,12 +76,7 @@
|
|||
%define with_storage_gluster 0 |
|||
%endif |
|||
|
|||
-# Fedora had zfs-fuse until F43
|
|||
-%if 0%{?fedora} && 0%{?fedora} < 43
|
|||
- %define with_storage_zfs 0%{!?_without_storage_zfs:1}
|
|||
-%else
|
|||
- %define with_storage_zfs 0
|
|||
-%endif
|
|||
+%define with_storage_zfs 1
|
|||
|
|||
%define with_storage_iscsi_direct 0%{!?_without_storage_iscsi_direct:1} |
|||
# libiscsi has been dropped in RHEL-9 |
|||
Loading…
Reference in new issue