Blame SPECS/opa-fm.spec

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