SHA256
1
0
forked from pool/opa-ff

Accepting request 591495 from home:NMoreyChaisemartin:branches:science:HPC

- Update pseudo_opt path to %{_prefix}/lib/opa (bsc#1042721,bsc#1086934)
- Update opasysconfdif to %{_sysconfdir}/opa/
- Minor cleanup of sysconfig install code

OBS-URL: https://build.opensuse.org/request/show/591495
OBS-URL: https://build.opensuse.org/package/show/science:HPC/opa-ff?expand=0&rev=38
This commit is contained in:
Nicolas Morey-Chaisemartin 2018-03-27 11:41:51 +00:00 committed by Git OBS Bridge
parent 9e597a1efc
commit e098ff3079
2 changed files with 15 additions and 15 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Mar 27 06:42:29 UTC 2018 - nmoreychaisemartin@suse.com
- Update pseudo_opt path to %{_prefix}/lib/opa (bsc#1042721,bsc#1086934)
- Update opasysconfdif to %{_sysconfdir}/opa/
- Minor cleanup of sysconfig install code
-------------------------------------------------------------------
Thu Mar 1 16:33:18 UTC 2018 - nmoreychaisemartin@suse.com

View File

@ -20,8 +20,9 @@
%define opamgt_major 0
%define opasadb_major 1_0_0
%define pseudo_opt %{_prefix}/lib/opa-ff/
%define opasysconfdir %{_sysconfdir}/opa/sysconfig
%define pseudo_opt %{_prefix}/lib/opa/
%define opasysconfdir %{_sysconfdir}/opa/
Name: opa-ff
Version: 10.6.0
Release: 0
@ -211,22 +212,15 @@ ln -s libdsap.so.* %{buildroot}%{_libdir}/ibacm/libdsap.so
cp -t %{buildroot}%{_libdir}/ libopamgt.so.*
ln -s libopamgt.so.* %{buildroot}%{_libdir}/libopamgt.so
ln -s /etc/opa/sysconfig/allhosts %{buildroot}/etc/sysconfig/opa/allhosts
ln -s /etc/opa/sysconfig/chassis %{buildroot}/etc/sysconfig/opa/chassis
ln -s /etc/opa/sysconfig/esm_chassis %{buildroot}//etc/sysconfig/opa/esm_chassis
ln -s /etc/opa/sysconfig/hosts %{buildroot}/etc/sysconfig/opa/hosts
ln -s /etc/opa/sysconfig/opafastfabric.conf %{buildroot}/etc/sysconfig/opa/opafastfabric.conf
ln -s /etc/opa/sysconfig/opaff.xml %{buildroot}/etc/sysconfig/opa/opaff.xml
ln -s /etc/opa/sysconfig/opamon.conf %{buildroot}/etc/sysconfig/opa/opamon.conf
ln -s /etc/opa/sysconfig/opamon.si.conf %{buildroot}/etc/sysconfig/opa/opamon.si.conf
ln -s /etc/opa/sysconfig/ports %{buildroot}/etc/sysconfig/opa/ports
ln -s /etc/opa/sysconfig/switches %{buildroot}/etc/sysconfig/opa/switches
# Now that we've put everything in the buildroot, copy any default config files to their expected location for user
# to edit. To prevent nuking existing user configs, the files section of this spec file will reference these as noreplace
# config files.
cp %{buildroot}%{pseudo_opt}tools/opafastfabric.conf.def %{buildroot}/%{opasysconfdir}/opafastfabric.conf
for file in $(ls %{buildroot}/%{opasysconfdir}); do
ln -s %{opasysconfdir}/$file %{buildroot}/etc/sysconfig/opa/$file
done
#Now we do a bunch of work to build the file listing of what belongs to each RPM
# List for basic
@ -317,9 +311,8 @@ cp %{buildroot}%{pseudo_opt}tools/opafastfabric.conf.def %{buildroot}/%{opasysco
%dir %{pseudo_opt}samples
%dir %{pseudo_opt}tools
%dir %{_sysconfdir}/opa
%dir %{opasysconfdir}
%dir %{_sysconfdir}/sysconfig/opa
%{opasysconfdir}
/etc/sysconfig/opa/*
%config(noreplace) %{opasysconfdir}/opafastfabric.conf