Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
opa-fm.4371
opa-fm.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opa-fm.spec of Package opa-fm.4371
# # spec file for package opa-fm # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define pseudo_opt %{_prefix}/lib/opafm %define opasysconfdir %{_sysconfdir}/opa/sysconfig %define opavarlibdir %{_localstatedir}/usr/lib/opa-fm/ Name: opa-fm Version: 10.0.0.0 Release: 0 Summary: Intel Omni-Path Fabric Management Software License: BSD-3-Clause Group: System Environment/Libraries Url: http://www.intel.com/ Source: opa-fm.tar.gz Patch1: 0001-Fall-back-to-custom-vendor-if-os_vendor-fails.patch Patch2: opa-fm-use-RPM_OPT_FLAGS.patch BuildRequires: gcc-c++ BuildRequires: ibacm-devel BuildRequires: libexpat-devel BuildRequires: libexpat1 BuildRequires: libibmad-devel BuildRequires: libibmad5 BuildRequires: libibumad-devel BuildRequires: libibverbs-devel BuildRequires: libibverbs1 BuildRequires: libopenssl-devel BuildRequires: ncurses-devel BuildRequires: tcl-devel BuildRequires: zlib-devel Requires: infiniband-diags Requires: libhfi1verbs-rdmav2 Requires: libibverbs-runtime Requires: rdma BuildRoot: %{_tmppath}/%{name}-%{version}-build #Currently ONLY builds on x86_64 ExclusiveArch: x86_64 %description The %{name} contains Intel Omni-Path fabric management applications. This includes: the Subnet Manager, Baseboard Manager, Performance Manager, Fabric Executive, and some fabric management tools. %prep %setup -q -n %{name} %patch1 -p1 %patch2 -p1 %build export RPM_OPT_FLAGS if [ -d Esm ]; then cd Esm fi ./fmbuild -V %{version}.%{release} %install # directories install -d -m0755 %{buildroot}%{opasysconfdir} install -d -m0755 %{buildroot}%{opasysconfdir}/opa install -D -m 644 stage.rpm/opafm.service %{buildroot}%{_prefix}/lib/systemd/system/opafm.service install -D -m 755 stage.rpm/opafmctrl %{buildroot}/%{pseudo_opt}/bin/opafmctrl install -D -m 755 stage.rpm/opafmd %{buildroot}/%{pseudo_opt}/bin/opafmd %if 0%{?rhel} && 0%{?rhel} < 7 install -D -m 755 stage.rpm/opafm %{buildroot}%{_sysconfdir}/init.d/opafm %endif install -D -m 644 stage.rpm/opafm.xml %{buildroot}%{opasysconfdir}/opafm.xml install -D -m 644 stage.rpm/opafm.info %{buildroot}%{opasysconfdir}/opa/opafm.info install -D stage.rpm/fm_capture %{buildroot}/%{pseudo_opt}/bin/fm_capture install -D stage.rpm/fm_cmd %{buildroot}/%{pseudo_opt}/bin/fm_cmd install -D stage.rpm/fm_cmdall %{buildroot}/%{pseudo_opt}/bin/fm_cmdall install -D stage.rpm/smpoolsize %{buildroot}/%{pseudo_opt}/bin/smpoolsize install -D stage.rpm/sm %{buildroot}/%{pseudo_opt}/runtime/sm install -D stage.rpm/fe %{buildroot}/%{pseudo_opt}/runtime/fe install -D stage.rpm/config_check %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/config_check install -D stage.rpm/config_convert %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/config_convert install -D stage.rpm/config_diff %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/config_diff install -D stage.rpm/config_generate %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/config_generate install -D stage.rpm/opafm %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/opafm install -D -m 644 stage.rpm/opafm.arch %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/opafm.arch install -D -m 644 stage.rpm/opafm.info %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/opafm.info if [ -d Esm ]; then sub_dir=Esm/ else sub_dir= fi install -D -m 644 ${sub_dir}ib/src/linux/startup/opafm_src.xml %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/opafm_src.xml install -D -m 644 stage.rpm/opafm.xml %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/opafm.xml install -D stage.rpm/opaxmlextract %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/opaxmlextract install -D stage.rpm/opaxmlfilter %{buildroot}/%{pseudo_opt}/%{_sysconfdir}/opaxmlfilter mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}/opt mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/opa/ mkdir -p %{buildroot}%{opavarlibdir} ln -s /%{pseudo_opt}/bin/fm_cmd %{buildroot}%{_sbindir}/opafmcmd ln -s /%{pseudo_opt}/bin/fm_cmdall %{buildroot}%{_sbindir}/opafmcmdall ln -s %{pseudo_opt} %{buildroot}/opt/ ln -s %{opasysconfdir}/opafm.xml %{buildroot}%{_sysconfdir}/sysconfig/opafm.xml ln -s %{opasysconfdir}/opa/opafm.info %{buildroot}%{_sysconfdir}/sysconfig/opa/opafm.info %pre %service_add_pre opafm.service %post if [ $1 = 1 ]; then if [ $(command -v systemctl) ]; then /bin/systemctl daemon-reload >/dev/null 2>&1 || : else /sbin/chkconfig --add opafm fi fi %service_add_post opafm.service %preun %service_del_preun opafm.service if [ $1 = 1 ] || [ $1 = 0 ]; then if [ $(command -v systemctl) ]; then systemctl stop opafm.service >/dev/null 2>&1 || : else /sbin/chkconfig --del opafm fi fi %postun %service_del_postun opafm.service %files %defattr(-,root,root,-) %dir %{_sysconfdir}/opa %dir %{opasysconfdir} %dir %{opasysconfdir}/opa %dir %{pseudo_opt}/ %dir %{pseudo_opt}/bin %dir %{pseudo_opt}/etc %dir %{pseudo_opt}/runtime %dir %{_sysconfdir}/sysconfig/opa %dir %{_localstatedir}%{_prefix} %dir %{_localstatedir}%{_prefix}/lib %dir %{opavarlibdir} /opt/opafm %{opasysconfdir}/* %doc README LICENSE %{_prefix}/lib/systemd/system/opafm.service %config(noreplace) %{_sysconfdir}/sysconfig/opafm.xml %{_sysconfdir}/sysconfig/opa/opafm.info %{pseudo_opt}/bin/* %{pseudo_opt}%{_sysconfdir}/* %{pseudo_opt}/runtime/* %{_sbindir}/opafmcmd %{_sbindir}/opafmcmdall %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor