From d3d1fc20aae47c92d800b8798fac4ff6096ff47c Mon Sep 17 00:00:00 2001 From: Sofia Boldyreva Date: Fri, 31 Jan 2025 14:42:35 +0100 Subject: [PATCH] Initial commit --- config.yaml | 55 ++++++++++++++++++++++++++++++++++++++++++++ files/config.vga-qxl | 6 +++++ 2 files changed, 61 insertions(+) create mode 100644 config.yaml create mode 100644 files/config.vga-qxl diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..ecd6e88 --- /dev/null +++ b/config.yaml @@ -0,0 +1,55 @@ +actions: + - replace: + - target: "spec" + find: | + ExclusiveArch: x86_64 + + Requires: %{name}-bin = %{version}-%{release} + replace: | + ExclusiveArch: x86_64 + + %if 0%{?almalinux} > 9 + ExclusiveArch: x86_64 %{power64} + %endif + + Requires: %{name}-bin = %{version}-%{release} + count: 1 + - target: "spec" + find: | + %build + %define _lto_cflags %{nil} + replace: | + %build + # This ifarch is needed to start the build on ppc64le and finish it with 0 exit code + # to synchronize noarch packages between x86_64 and ppc64le + %ifarch x86_64 + %define _lto_cflags %{nil} + count: 1 + - target: "spec" + find: "%global vgaconfigs cirrus stdvga virtio ramfb bochs-display" + replace: "%global vgaconfigs cirrus qxl stdvga virtio ramfb bochs-display" + count: 1 + - target: "spec" + find: "%{_datadir}/seavgabios/vgabios*.bin" + replace: | + %{_datadir}/seavgabios/vgabios*.bin + + # endif for %ifarch x86_64 + %endif + count: 1 + + - modify_release: + - suffix: ".alma.1" + enabled: true + + - changelog_entry: + - name: "Eduard Abdullin" + email: "eabdullin@almalinux.org" + line: + - "Ship vgabios-qxl.bin" + - "Allow the build to start on ppc64le" + + - add_files: + - type: "source" + name: "config.vga-qxl" + number: 12 diff --git a/files/config.vga-qxl b/files/config.vga-qxl new file mode 100644 index 0000000..d393f0c --- /dev/null +++ b/files/config.vga-qxl @@ -0,0 +1,6 @@ +CONFIG_BUILD_VGABIOS=y +CONFIG_VGA_BOCHS=y +CONFIG_VGA_PCI=y +CONFIG_OVERRIDE_PCI_ID=y +CONFIG_VGA_VID=0x1b36 +CONFIG_VGA_DID=0x0100