Blame SPECS/opa-fm.spec

86e033
Name: opa-fm
9cb478
Epoch: 1
03db72
Version: 10.7.0.0.141
b85b2f
Release: 1%{?dist}
86e033
Summary: Intel Omni-Path Fabric Management Software
86e033
86e033
Group: System Environment/Daemons
9cb478
License: GPLv2 or BSD
86e033
Url: https://github.com/01org/opa-fm
86e033
# tarball created by:
86e033
# git clone https://github.com/01org/opa-fm.git
86e033
# cd opa-fm
b85b2f
# git archive --format=tar --prefix=opa-fm-%{version}/ \
03db72
# ea3548c1fceea2be961387bffaf23e139aa44e0b | xz > opa-fm-%{version}.tar.xz
b85b2f
Source0: %{name}-%{version}.tar.xz
86e033
310bef
# bz1262327 needs Patch0002
86e033
Patch0002: 0001-Fix-well-known-tempfile-issue-in-script.patch
86e033
b85b2f
BuildRequires: openssl-devel, expat-devel
03db72
BuildRequires: libibverbs-devel >= 1.2.0
9cb478
BuildRequires: libibumad-devel
86e033
Requires(post): systemd
86e033
Requires(preun): systemd
86e033
Requires(postun): systemd
310bef
Requires: libhfi1
86e033
ExclusiveArch: x86_64
86e033
86e033
%description
86e033
opa-fm contains Intel Omni-Path fabric management applications. This
86e033
includes: the Subnet Manager, Baseboard Manager, Performance Manager,
86e033
Fabric Executive, and some fabric management tools.
86e033
86e033
%prep
b85b2f
%setup -q
86e033
%patch0002 -p1
86e033
86e033
# Make it possible to override hardcoded compiler flags
86e033
sed -i -r -e 's/(release_C(C)?OPT_Flags\s*)=/\1?=/' Makerules/Target.LINUX.GNU.*
86e033
86e033
%build
86e033
export CFLAGS='%{optflags}'
86e033
export CXXFLAGS='%{optflags}'
86e033
export release_COPT_Flags='%{optflags}'
86e033
export release_CCOPT_Flags='%{optflags}'
86e033
cd Esm
03db72
./fmbuild
86e033
86e033
%install
9cb478
BUILDDIR=%{_builddir} DESTDIR=%{buildroot} LIBDIR=%{_libdir} RPM_INS=n ./Esm/fm_install.sh
9cb478
chmod 644 %{buildroot}/%{_unitdir}/opafm.service
310bef
mkdir -p %{buildroot}/%{_localstatedir}/usr/lib/opa-fm/
03db72
chmod a-x %{buildroot}/%{_prefix}/share/opa-fm/opafm_src.xml
310bef
86e033
%post
86e033
%systemd_post opafm.service
86e033
86e033
%preun
86e033
%systemd_preun opafm.service
86e033
86e033
%postun
86e033
%systemd_postun_with_restart opafm.service
86e033
86e033
%files
86e033
%doc Esm/README
86e033
%{_unitdir}/opafm.service
b85b2f
%config(noreplace) %{_sysconfdir}/opa-fm/opafm.xml
86e033
%{_prefix}/lib/opa-fm/bin/*
86e033
%{_prefix}/lib/opa-fm/runtime/*
b85b2f
%{_prefix}/share/opa-fm/*
b85b2f
%{_prefix}/lib/opa/.comp_opafm.pl
86e033
%{_sbindir}/opafmcmd
86e033
%{_sbindir}/opafmcmdall
310bef
%{_mandir}/man8/*
86e033
86e033
86e033
%changelog
03db72
* Thu Apr 19 2018 Honggang Li <honli@redhat.com> - 10.7.0.0.141-1
03db72
- Rebase to upstream release 10.7.0.0.141
03db72
- Resolves: bz1483559
03db72
b85b2f
* Thu Oct 19 2017 Honggang Li <honli@redhat.com> - 10.5.1.0.1-1
b85b2f
- Rebase to upstream release 10.5.1.0.1
b85b2f
- Resolves: bz1452787, bz1500903
b85b2f
9cb478
* Fri Mar 17 2017 Honggang Li <honli@redhat.com> - 10.3.1.0-8
9cb478
- Rebase to upstream branch v10_3_1 as required.
9cb478
- Clean up change log.
9cb478
- Apply Epoch tag.
9cb478
- Resolves: bz1257452, bz1382792
9cb478
310bef
* Sun Jul 10 2016 Honggang Li <honli@redhat.com> - 10.1.0.0-145
310bef
- Rebase to latest upstream release.
310bef
- Related: bz1273151
310bef
310bef
* Tue Jun 21 2016 Honggang Li <honli@redhat.com> - 10.0.1.0-4
310bef
- Create private state dir.
310bef
- Resolves: bz1348477
310bef
310bef
* Thu Jun  2 2016 Honggang Li <honli@redhat.com> - 10.0.1.0-3
310bef
- Requires libhfi1.
310bef
- Remove executable permission bit of opafm.service.
310bef
- Resolves: bz1341971
310bef
310bef
* Thu May 26 2016 Honggang Li <honli@redhat.com> - 10.0.1.0-2
310bef
- Rebase to upstream release 10.0.1.0.
310bef
- Related: bz1273151
310bef
86e033
* Mon Sep 28 2015 Honggang Li <honli@redhat.com> - 10.0.0.0-444
86e033
- Update the N-V-R
86e033
- Related: bz1262327
86e033
86e033
* Mon Sep 28 2015 Honggang Li <honli@redhat.com> - 10.0.0.0-443
86e033
- Apply one missed patch to fix various /tmp races
86e033
- Revert the script for building (S)RPMs
86e033
- Resolves: bz1262327
86e033
86e033
* Thu Sep 24 2015 Honggang Li <honli@redhat.com> - 10.0.0.0-442
86e033
- Fix typo in changelog
86e033
- Related: bz1262327
86e033
86e033
* Wed Sep 23 2015 Honggang Li <honli@redhat.com> - 10.0.0.0-441
86e033
- Fix various /tmp races
86e033
- Resolves: bz1262327
86e033
86e033
* Wed Aug 26 2015 Michal Schmidt <mschmidt@redhat.com> - 10.0.0.0-440
86e033
- Respect optflags.
86e033
- Avoid overflowing prog path due to /opt -> /usr/lib substitution.
86e033
- Resolves: bz1257087
86e033
- Resolves: bz1257093
86e033
86e033
* Mon Aug 24 2015 Michal Schmidt <mschmidt@redhat.com> - 10.0.0.0-439
86e033
- Update to new upstream snapshot with unbundled expat.
86e033
- Related: bz1173302
86e033
86e033
* Tue Aug 18 2015 Michal Schmidt <mschmidt@redhat.com> - 10.0.0.0-438
86e033
- Initial packaging for RHEL, based on upstream spec file.
86e033
- Cleaned up spec.
86e033
- Moved /opt/opafm -> /usr/lib/opa-fm.
86e033
- Fix scriptlets.
86e033
86e033
* Thu Oct 09 2014 Kaike Wan <kaike.wan@intel.com> - 10.0.0.0-177
86e033
- Initial version