- Fix build on AlmaLinux

This commit is contained in:
eabdullin 2023-03-29 11:23:59 +03:00
parent e87f38870b
commit 9e62c1128b
1 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,7 @@
Name: opa-fm
Epoch: 1
Version: 10.11.2.0.3
Release: 1%{?dist}
Release: 1%{?dist}.alma
Summary: Intel Omni-Path Fabric Management Software
License: GPLv2 or BSD
@ -46,6 +46,9 @@ Fabric Executive, and some fabric management tools.
sed -i -r -e 's/(release_C(C)?OPT_Flags\s*)=/\1?=/' Makerules/Target.LINUX.GNU.*
sed -r -e 's/(^COPT\s*=\s*)/#\1/' -i Esm/ib/src/linux/opafmvf/Makefile
# Add AlmaLinux detection
sed -i 's/rhel)/rhel|almalinux|AlmaLinux)/' MakeTools/funcs-ext.sh
%build
export CFLAGS='%{optflags} -std=gnu11'
export CXXFLAGS='%{optflags} -std=gnu11'
@ -85,6 +88,9 @@ chmod a-x %{buildroot}/%{_prefix}/share/opa-fm/opafm_src.xml
%{_mandir}/man8/*
%changelog
* Wed Mar 29 2023 Eduard Abdullin <eabdullin@almalinux.org> - 10.11.2.0.3-1.alma
- Fix build on AlmaLinux
* Wed Feb 08 2023 Michal Schmidt <mschmidt@redhat.com> - 10.11.2.0.3-1
- Update to upstream version 10.11.2.0.3
- Resolves: rhbz#2110931