|
|
a0dc7d |
# One of the steps this package's insane build system does is patching version
|
|
|
a0dc7d |
# strings in built binaries (MakeTools/patch_version/patch_version.c).
|
|
|
a0dc7d |
# The expected template of a version string (ICS_BUILD_VERSION from
|
|
|
a0dc7d |
# CodeVersion/code_version.c) is not found in binaries that contain a
|
|
|
a0dc7d |
# GetCodeVersion() call. I suspect LTO optimizes it away.
|
|
|
a0dc7d |
# Disabling LTO made the build work.
|
|
|
a0dc7d |
%global _lto_cflags %{nil}
|
|
|
a0dc7d |
|
|
|
dac0b3 |
Name: opa-fm
|
|
|
dac0b3 |
Epoch: 1
|
|
|
a0dc7d |
Version: 10.11.2.0.3
|
|
|
cb3010 |
Release: 1%{?dist}
|
|
|
dac0b3 |
Summary: Intel Omni-Path Fabric Management Software
|
|
|
dac0b3 |
|
|
|
dac0b3 |
License: GPLv2 or BSD
|
|
|
a0dc7d |
Url: https://github.com/cornelisnetworks/opa-fm
|
|
|
a0dc7d |
Source0: https://github.com/cornelisnetworks/opa-fm/archive/refs/tags/v%{version}.tar.gz
|
|
|
dac0b3 |
|
|
|
dac0b3 |
# bz1262327 needs Patch0002
|
|
|
dac0b3 |
Patch0002: 0001-Fix-well-known-tempfile-issue-in-script.patch
|
|
|
dac0b3 |
Patch0003: opafm-link-all-executables-with-pie.patch
|
|
|
dac0b3 |
Patch0004: add-fPIC-flag.patch
|
|
|
dac0b3 |
|
|
|
dac0b3 |
BuildRequires: openssl-devel, expat-devel
|
|
|
dac0b3 |
BuildRequires: libibverbs-devel >= 1.2.0
|
|
|
dac0b3 |
BuildRequires: libibumad-devel
|
|
|
dac0b3 |
BuildRequires: zlib-devel
|
|
|
dac0b3 |
BuildRequires: gcc
|
|
|
dac0b3 |
BuildRequires: gcc-c++
|
|
|
a0dc7d |
BuildRequires: systemd-rpm-macros
|
|
|
dac0b3 |
Requires: libhfi1
|
|
|
dac0b3 |
ExclusiveArch: x86_64
|
|
|
dac0b3 |
|
|
|
dac0b3 |
%description
|
|
|
dac0b3 |
opa-fm contains Intel Omni-Path fabric management applications. This
|
|
|
dac0b3 |
includes: the Subnet Manager, Baseboard Manager, Performance Manager,
|
|
|
dac0b3 |
Fabric Executive, and some fabric management tools.
|
|
|
dac0b3 |
|
|
|
dac0b3 |
%prep
|
|
|
dac0b3 |
%setup -q
|
|
|
dac0b3 |
%patch0002 -p1
|
|
|
dac0b3 |
%patch0003 -p1
|
|
|
dac0b3 |
%patch0004 -p1
|
|
|
dac0b3 |
|
|
|
dac0b3 |
# Make it possible to override hardcoded compiler flags
|
|
|
dac0b3 |
sed -i -r -e 's/(release_C(C)?OPT_Flags\s*)=/\1?=/' Makerules/Target.LINUX.GNU.*
|
|
|
1371b0 |
sed -r -e 's/(^COPT\s*=\s*)/#\1/' -i Esm/ib/src/linux/opafmvf/Makefile
|
|
|
dac0b3 |
|
|
|
dac0b3 |
%build
|
|
|
1371b0 |
export CFLAGS='%{optflags} -std=gnu11'
|
|
|
1371b0 |
export CXXFLAGS='%{optflags} -std=gnu11'
|
|
|
1371b0 |
export release_COPT_Flags='%{optflags} -std=gnu11'
|
|
|
1371b0 |
export release_CCOPT_Flags='%{optflags} -std=gnu11'
|
|
|
dac0b3 |
cd Esm
|
|
|
a0dc7d |
OPA_FEATURE_SET=opa10 ./fmbuild $BUILD_ARGS
|
|
|
dac0b3 |
|
|
|
dac0b3 |
%install
|
|
|
dac0b3 |
BUILDDIR=%{_builddir} DESTDIR=%{buildroot} LIBDIR=%{_libdir} RPM_INS=n ./Esm/fm_install.sh
|
|
|
dac0b3 |
chmod 644 %{buildroot}/%{_unitdir}/opafm.service
|
|
|
dac0b3 |
mkdir -p %{buildroot}/%{_localstatedir}/usr/lib/opa-fm/
|
|
|
dac0b3 |
chmod a-x %{buildroot}/%{_prefix}/share/opa-fm/opafm_src.xml
|
|
|
dac0b3 |
|
|
|
dac0b3 |
%post
|
|
|
dac0b3 |
%systemd_post opafm.service
|
|
|
dac0b3 |
|
|
|
dac0b3 |
%preun
|
|
|
dac0b3 |
%systemd_preun opafm.service
|
|
|
dac0b3 |
|
|
|
dac0b3 |
%postun
|
|
|
dac0b3 |
%systemd_postun_with_restart opafm.service
|
|
|
dac0b3 |
|
|
|
dac0b3 |
%files
|
|
|
dac0b3 |
%doc Esm/README
|
|
|
dac0b3 |
%{_unitdir}/opafm.service
|
|
|
dac0b3 |
%config(noreplace) %{_sysconfdir}/opa-fm/opafm.xml
|
|
|
dac0b3 |
%config(noreplace) %{_sysconfdir}/opa-fm/opafm_pp.xml
|
|
|
dac0b3 |
%{_sysconfdir}/opa-fm
|
|
|
dac0b3 |
%{_prefix}/lib/opa-fm/bin/*
|
|
|
dac0b3 |
%{_prefix}/lib/opa-fm/runtime/*
|
|
|
dac0b3 |
%{_prefix}/share/opa-fm/*
|
|
|
dac0b3 |
%{_sbindir}/opafmcmd
|
|
|
dac0b3 |
%{_sbindir}/opafmcmdall
|
|
|
dac0b3 |
%{_sbindir}/opafmconfigpp
|
|
|
dac0b3 |
%{_sbindir}/opafmvf
|
|
|
dac0b3 |
%{_mandir}/man8/*
|
|
|
dac0b3 |
|
|
|
dac0b3 |
%changelog
|
|
|
a0dc7d |
* Wed Feb 08 2023 Michal Schmidt <mschmidt@redhat.com> - 10.11.2.0.3-1
|
|
|
a0dc7d |
- Update to upstream version 10.11.2.0.3
|
|
|
a0dc7d |
- Resolves: rhbz#2110931
|
|
|
a0dc7d |
|
|
|
8a93c8 |
* Tue May 25 2021 Honggang Li <honli@redhat.com> - 10.11.0.2.1-1
|
|
|
8a93c8 |
- Rebase to upstream release 10.11.0.2.1
|
|
|
8a93c8 |
- Resolves: bz1921701, bz1959990
|
|
|
8a93c8 |
|
|
|
e6467c |
* Thu Nov 12 2020 Honggang Li <honli@redhat.com> - 10.10.3.0.11-1
|
|
|
e6467c |
- Rebase to upstream release 10.10.3.0.11
|
|
|
e6467c |
- Resolves: bz1821735
|
|
|
e6467c |
|
|
|
cb3010 |
* Wed Apr 15 2020 Honggang Li <honli@redhat.com> - 10.10.1.0.35-1
|
|
|
cb3010 |
- Rebase to upstream release 10.10.1.0.35
|
|
|
cb3010 |
- Resolves:bz1739281
|
|
|
cb3010 |
|
|
|
1371b0 |
* Tue Dec 03 2019 Honggang Li <honli@redhat.com> - 10.10.0.0.444-2
|
|
|
1371b0 |
- Override hard-coded CFLAGS for opafmvf
|
|
|
1371b0 |
- Resolves bz1778557
|
|
|
1371b0 |
|
|
|
1371b0 |
* Thu Oct 31 2019 Honggang Li <honli@redhat.com> - 10.10.0.0.444-1
|
|
|
1371b0 |
- Rebase to upstream release 10.10.0.0.444
|
|
|
1371b0 |
- Resolves:bz1719674
|
|
|
1371b0 |
|
|
|
dac0b3 |
* Tue Jun 11 2019 Honggang Li <honli@redhat.com> - 10.9.2.2.1-1
|
|
|
dac0b3 |
- Rebase to upstream release 10.9.2.2.1
|
|
|
dac0b3 |
- Resolves: bz1660617
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Wed Sep 26 2018 Honggang Li <honli@redhat.com> - 10.7.0.0.145-2
|
|
|
dac0b3 |
- Link all executables with '-pie'
|
|
|
dac0b3 |
- Resovles: bz1624155
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Wed Jun 13 2018 Honggang Li <honli@redhat.com> - 10.7.0.0.145-1
|
|
|
dac0b3 |
- Rebase to latest upstream release
|
|
|
dac0b3 |
- Resolves: bz1581530
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Tue Dec 12 2017 Honggang Li <honli@redhat.com> - 10.5.1.0.1-2
|
|
|
dac0b3 |
- Don't include obsolete header bits/sigset.h
|
|
|
dac0b3 |
- Resolves: bz1523732
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Thu Oct 19 2017 Honggang Li <honli@redhat.com> - 10.5.1.0.1-1
|
|
|
dac0b3 |
- Rebase to upstream release 10.5.1.0.1
|
|
|
dac0b3 |
- Resolves: bz1452787, bz1500903
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Fri Mar 17 2017 Honggang Li <honli@redhat.com> - 10.3.1.0-8
|
|
|
dac0b3 |
- Rebase to upstream branch v10_3_1 as required.
|
|
|
dac0b3 |
- Clean up change log.
|
|
|
dac0b3 |
- Apply Epoch tag.
|
|
|
dac0b3 |
- Resolves: bz1257452, bz1382792
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Sun Jul 10 2016 Honggang Li <honli@redhat.com> - 10.1.0.0-145
|
|
|
dac0b3 |
- Rebase to latest upstream release.
|
|
|
dac0b3 |
- Related: bz1273151
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Tue Jun 21 2016 Honggang Li <honli@redhat.com> - 10.0.1.0-4
|
|
|
dac0b3 |
- Create private state dir.
|
|
|
dac0b3 |
- Resolves: bz1348477
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Thu Jun 2 2016 Honggang Li <honli@redhat.com> - 10.0.1.0-3
|
|
|
dac0b3 |
- Requires libhfi1.
|
|
|
dac0b3 |
- Remove executable permission bit of opafm.service.
|
|
|
dac0b3 |
- Resolves: bz1341971
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Thu May 26 2016 Honggang Li <honli@redhat.com> - 10.0.1.0-2
|
|
|
dac0b3 |
- Rebase to upstream release 10.0.1.0.
|
|
|
dac0b3 |
- Related: bz1273151
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Mon Sep 28 2015 Honggang Li <honli@redhat.com> - 10.0.0.0-444
|
|
|
dac0b3 |
- Update the N-V-R
|
|
|
dac0b3 |
- Related: bz1262327
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Mon Sep 28 2015 Honggang Li <honli@redhat.com> - 10.0.0.0-443
|
|
|
dac0b3 |
- Apply one missed patch to fix various /tmp races
|
|
|
dac0b3 |
- Revert the script for building (S)RPMs
|
|
|
dac0b3 |
- Resolves: bz1262327
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Thu Sep 24 2015 Honggang Li <honli@redhat.com> - 10.0.0.0-442
|
|
|
dac0b3 |
- Fix typo in changelog
|
|
|
dac0b3 |
- Related: bz1262327
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Wed Sep 23 2015 Honggang Li <honli@redhat.com> - 10.0.0.0-441
|
|
|
dac0b3 |
- Fix various /tmp races
|
|
|
dac0b3 |
- Resolves: bz1262327
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Wed Aug 26 2015 Michal Schmidt <mschmidt@redhat.com> - 10.0.0.0-440
|
|
|
dac0b3 |
- Respect optflags.
|
|
|
dac0b3 |
- Avoid overflowing prog path due to /opt -> /usr/lib substitution.
|
|
|
dac0b3 |
- Resolves: bz1257087
|
|
|
dac0b3 |
- Resolves: bz1257093
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Mon Aug 24 2015 Michal Schmidt <mschmidt@redhat.com> - 10.0.0.0-439
|
|
|
dac0b3 |
- Update to new upstream snapshot with unbundled expat.
|
|
|
dac0b3 |
- Related: bz1173302
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Tue Aug 18 2015 Michal Schmidt <mschmidt@redhat.com> - 10.0.0.0-438
|
|
|
dac0b3 |
- Initial packaging for RHEL, based on upstream spec file.
|
|
|
dac0b3 |
- Cleaned up spec.
|
|
|
dac0b3 |
- Moved /opt/opafm -> /usr/lib/opa-fm.
|
|
|
dac0b3 |
- Fix scriptlets.
|
|
|
dac0b3 |
|
|
|
dac0b3 |
* Thu Oct 09 2014 Kaike Wan <kaike.wan@intel.com> - 10.0.0.0-177
|
|
|
dac0b3 |
- Initial version
|