Blame SPECS/opa-fm.spec

dac0b3
Name: opa-fm
dac0b3
Epoch: 1
f9eb02
Version: 10.10.1.0.35
f9eb02
Release: 1%{?dist}
dac0b3
Summary: Intel Omni-Path Fabric Management Software
dac0b3
dac0b3
Group: System Environment/Daemons
dac0b3
License: GPLv2 or BSD
dac0b3
Url: https://github.com/intel/opa-fm
dac0b3
# tarball created by:
dac0b3
# git clone https://github.com/intel/opa-fm.git
dac0b3
# cd opa-fm
dac0b3
# git archive --format=tar --prefix=opa-fm-%{version}/ \
f9eb02
# 317bb9f137735388b121b5fd6e7be28dde48b0a3 | xz > opa-fm-%{version}.tar.xz
dac0b3
Source0: %{name}-%{version}.tar.xz
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++
dac0b3
Requires(post): systemd
dac0b3
Requires(preun): systemd
dac0b3
Requires(postun): systemd
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
dac0b3
OPA_FEATURE_SET= ./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
f9eb02
* Wed Apr 15 2020 Honggang Li <honli@redhat.com> - 10.10.1.0.35-1
f9eb02
- Rebase to upstream release 10.10.1.0.35
f9eb02
- Resolves:bz1739281
f9eb02
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