94 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			94 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
actions:
 | 
						|
  - replace:
 | 
						|
      - target: "spec"
 | 
						|
        find: |
 | 
						|
              %global tools_only 0
 | 
						|
              %ifarch %{power64}
 | 
						|
                  %global tools_only 1
 | 
						|
              %endif              
 | 
						|
        replace: |
 | 
						|
              %global tools_only 0
 | 
						|
              %if 0%{?almalinux} < 9
 | 
						|
              %ifarch %{power64}
 | 
						|
                  %global tools_only 1
 | 
						|
              %endif
 | 
						|
              %endif              
 | 
						|
        count: 1
 | 
						|
      - target: "spec"
 | 
						|
        find: |
 | 
						|
              # Provided by package SLOF
 | 
						|
              rm -rf %{buildroot}%{_datadir}/%{name}/slof.bin              
 | 
						|
        replace: |
 | 
						|
              # Provided by package SLOF
 | 
						|
              %ifnarch ppc64le
 | 
						|
              rm -rf %{buildroot}%{_datadir}/%{name}/slof.bin
 | 
						|
              %endif              
 | 
						|
        count: 1
 | 
						|
      - target: "spec"
 | 
						|
        find: |
 | 
						|
              %ifarch x86_64
 | 
						|
                  %{_libdir}/%{name}/accel-tcg-%{kvm_target}.so
 | 
						|
              %endif              
 | 
						|
        replace: |
 | 
						|
              %ifarch x86_64
 | 
						|
                  %{_libdir}/%{name}/accel-tcg-%{kvm_target}.so
 | 
						|
              %endif
 | 
						|
              
 | 
						|
              %ifarch ppc64le
 | 
						|
                  %{_datadir}/%{name}/slof.bin
 | 
						|
              %endif              
 | 
						|
        count: 1
 | 
						|
      - target: "spec"
 | 
						|
        find: |
 | 
						|
              rm -rf %{buildroot}%{_datadir}/%{name}/vgabios*bin              
 | 
						|
        replace: |
 | 
						|
              %ifnarch %{power64}
 | 
						|
              rm -rf %{buildroot}%{_datadir}/%{name}/vgabios*bin
 | 
						|
              %else
 | 
						|
              rm -rf %{buildroot}%{_datadir}/%{name}/vgabios-*.bin
 | 
						|
              %endif              
 | 
						|
        count: 1
 | 
						|
      - target: "spec"
 | 
						|
        find: |
 | 
						|
              %if %{have_memlock_limits}
 | 
						|
                  %{_sysconfdir}/security/limits.d/95-kvm-memlock.conf
 | 
						|
              %endif              
 | 
						|
 | 
						|
        replace: |
 | 
						|
              %if %{have_memlock_limits}
 | 
						|
                  %{_sysconfdir}/security/limits.d/95-kvm-memlock.conf
 | 
						|
              %endif
 | 
						|
              %ifarch %{power64}
 | 
						|
                  %{_datadir}/%{name}/vgabios.bin
 | 
						|
              %endif              
 | 
						|
        count: 1
 | 
						|
 | 
						|
  - add_files:
 | 
						|
      - type: "patch"
 | 
						|
        name: "0001-Bring-back-missing-line-in-target-ppc-cpu-models.patch"
 | 
						|
        number: "Latest"
 | 
						|
  - add_files:
 | 
						|
      - type: "patch"
 | 
						|
        name: "0001-usb-add-config-options-for-hub-and-hid-devices-for-p.patch"
 | 
						|
        number: "Latest"
 | 
						|
  - add_files:
 | 
						|
      - type: "patch"
 | 
						|
        name: "0001-Add-AlmaLinux-9-to-machine-class-options.patch"
 | 
						|
        number: "Latest"
 | 
						|
  - add_files:
 | 
						|
      - type: "patch"
 | 
						|
        name: "osuosl-enable-ppc64.patch"
 | 
						|
        number: "Latest"
 | 
						|
 | 
						|
  - modify_release:
 | 
						|
    - suffix: ".alma.1"
 | 
						|
      enabled: true
 | 
						|
 | 
						|
  - changelog_entry:
 | 
						|
      - name: "Eduard Abdullin"
 | 
						|
        email: "eabdullin@almalinux.org"
 | 
						|
        line:
 | 
						|
          - "Enable building for ppc64le"
 | 
						|
          - "Don't remove slof.bin for ppc64le"
 | 
						|
          - "usb: add config options for hub and hid devices for ppc"
 |