Blame SPECS/opa-fm.spec

9cb478
%global Intel_Release 6
310bef
86e033
Name: opa-fm
9cb478
Epoch: 1
9cb478
Version: 10.3.1.0
9cb478
Release: 8%{?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
9cb478
# git checkout v10_3_1
310bef
# git archive --format=tar --prefix=opa-fm-%{version}-%{Intel_Release}/ \
9cb478
# 4a98a653d528f1db788e59d7a25711630561a19c | xz > opa-fm-%{version}-%{Intel_Release}.tar.xz
310bef
Source0: %{name}-%{version}-%{Intel_Release}.tar.xz
86e033
310bef
# bz1262327 needs Patch0002
86e033
Patch0002: 0001-Fix-well-known-tempfile-issue-in-script.patch
86e033
86e033
BuildRequires: autoconf
86e033
BuildRequires: systemd
86e033
BuildRequires: zlib-devel, openssl-devel, expat-devel
310bef
BuildRequires: libibmad-devel, 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
310bef
%setup -q -n %{name}-%{version}-%{Intel_Release}
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
86e033
./fmbuild -V %{version}.%{release}
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/
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
86e033
%config(noreplace) %{_sysconfdir}/sysconfig/opafm.xml
86e033
%{_sysconfdir}/sysconfig/opa/opafm.info
86e033
%{_prefix}/lib/opa-fm/bin/*
86e033
%{_prefix}/lib/opa-fm/etc/*
86e033
%{_prefix}/lib/opa-fm/runtime/*
9cb478
%{_prefix}/lib/opa-fm/samples/*
86e033
%{_sbindir}/opafmcmd
86e033
%{_sbindir}/opafmcmdall
310bef
%{_localstatedir}/usr/lib/opa-fm/
310bef
%{_mandir}/man8/*
86e033
86e033
86e033
%changelog
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