SHA256
1
0
forked from pool/opa-ff
Josef Möllers 2017-04-03 12:33:44 +00:00 committed by Git OBS Bridge
parent 03c56a3b06
commit 85686fb2e9
2 changed files with 36 additions and 12 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Apr 3 12:30:57 UTC 2017 - josef.moellers@suse.com
- Package opa-address-resolution-devel renamed to
opa-address-resolution, then .so's and .h files packaged
into a new opa-address-resolution-devel.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 28 11:35:42 CEST 2017 - pth@suse.de Tue Mar 28 11:35:42 CEST 2017 - pth@suse.de

View File

@ -32,9 +32,7 @@ Patch2: 0001-Add-shebang-for-exp-files.patch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libexpat-devel BuildRequires: libexpat-devel
BuildRequires: rdma-core-devel BuildRequires: rdma-core-devel
# New:
BuildRequires: librdmacm1 BuildRequires: librdmacm1
# end New
BuildRequires: libopenssl-devel BuildRequires: libopenssl-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: tcl-devel BuildRequires: tcl-devel
@ -47,7 +45,7 @@ ExclusiveArch: x86_64
%description %description
The %{name} contains basic tools and libraries for Intel Omni-Path fabric management applications. This The %{name} contains basic tools and libraries for Intel Omni-Path fabric management applications. This
includes: the opa-fastfabric opa-basic-tools, opa-address-resolution-devel includes: the opa-fastfabric opa-basic-tools, opa-address-resolution
%package -n opa-basic-tools %package -n opa-basic-tools
Summary: Managment level tools and scripts Summary: Managment level tools and scripts
@ -70,15 +68,26 @@ Requires: atlas
%description -n opa-fastfabric %description -n opa-fastfabric
Contains tools for managing fabric on a managment node. Contains tools for managing fabric on a managment node.
%package -n opa-address-resolution-devel %package -n opa-address-resolution
Summary: Contains Address Resolution manager Summary: Contains Address Resolution manager
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: opa-basic-tools Requires: opa-basic-tools
AutoReq: no AutoReq: no
%description -n opa-address-resolution-devel %description -n opa-address-resolution
This is to be filled out more concisely later. This is to be filled out more concisely later.
%package -n opa-address-resolution-devel
Summary: Development files for the Address Resolution manager
Group: Development/Libraries/C and C++
Requires: opa-basic-tools
Requires: opa-address-resolution = %{version}
AutoReq: no
%description -n opa-address-resolution-devel
This package contains the include files and libraries
required to develop programs for the opa-address-resolution package.
%prep %prep
%setup -q -n opa-ff %setup -q -n opa-ff
%patch1 -p1 %patch1 -p1
@ -142,8 +151,6 @@ mkdir -p %{buildroot}%{opasysconfdir}
mkdir -p %{buildroot}%{_includedir}/infiniband mkdir -p %{buildroot}%{_includedir}/infiniband
mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man8 mkdir -p %{buildroot}%{_mandir}/man8
# mkdir -p %{buildroot}/opt
# ln -s %{pseudo_opt} %{buildroot}/opt/opa
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/opa mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/opa
@ -201,7 +208,10 @@ cp -t %{buildroot}/%{opasysconfdir} opamon.conf opamon.si.conf
#Libraries installing #Libraries installing
cd $(cat %{_builddir}/LIB_PATH) cd $(cat %{_builddir}/LIB_PATH)
cp -t %{buildroot}%{_libdir} libopasadb.so.* cp -t %{buildroot}%{_libdir} libopasadb.so.*
ln -s libopasadb.so.* %{buildroot}%{_libdir}/libopasadb.so
cp -t %{buildroot}%{_libdir}/ibacm libdsap.so.* cp -t %{buildroot}%{_libdir}/ibacm libdsap.so.*
ln -s libdsap.so.* %{buildroot}%{_libdir}/ibacm/libdsap.so
ln -s /etc/opa/sysconfig/allhosts %{buildroot}/etc/sysconfig/opa/allhosts 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/chassis %{buildroot}/etc/sysconfig/opa/chassis
@ -283,8 +293,8 @@ cat %{_builddir}/ff_sbin_file.list %{_builddir}/ff_help_file.list %{_builddir}/f
#make -k clean >/dev/null 2>&1 || : # suppress all errors and return codes from the make clean. #make -k clean >/dev/null 2>&1 || : # suppress all errors and return codes from the make clean.
%post -n opa-address-resolution-devel -p /sbin/ldconfig %post -n opa-address-resolution -p /sbin/ldconfig
%postun -n opa-address-resolution-devel -p /sbin/ldconfig %postun -n opa-address-resolution -p /sbin/ldconfig
%files -n opa-basic-tools -f %{_builddir}/basic_file.list %files -n opa-basic-tools -f %{_builddir}/basic_file.list
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -316,23 +326,30 @@ cat %{_builddir}/ff_sbin_file.list %{_builddir}/ff_help_file.list %{_builddir}/f
%config(noreplace) %{opasysconfdir}/switches %config(noreplace) %{opasysconfdir}/switches
%config(noreplace) %{opasysconfdir}/opaff.xml %config(noreplace) %{opasysconfdir}/opaff.xml
%{opasysconfdir}/opamon.si.conf %{opasysconfdir}/opamon.si.conf
%config(noreplace) %{opasysconfdir}/opamon.si.conf
%{pseudo_opt}tools/osid_wrapper %{pseudo_opt}tools/osid_wrapper
%{_sbindir}/opafmconfigcheck %{_sbindir}/opafmconfigcheck
%{_sbindir}/opafmconfigdiff %{_sbindir}/opafmconfigdiff
# /opt/opa # /opt/opa
%files -n opa-address-resolution-devel %files -n opa-address-resolution
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{_sysconfdir}/rdma/ %dir %{_sysconfdir}/rdma/
%dir %{_libdir}/ibacm/
#Everything under the bin directory belongs exclusively to opasadb at this time. #Everything under the bin directory belongs exclusively to opasadb at this time.
%{_bindir}/* %{_bindir}/*
%{_libdir}/* %{_libdir}/*.so.*
%{_includedir}/* %{_libdir}/ibacm/*.so.*
%{_mandir}/man1/opa_osd_dump.1* %{_mandir}/man1/opa_osd_dump.1*
%{_mandir}/man1/opa_osd_exercise.1* %{_mandir}/man1/opa_osd_exercise.1*
%{_mandir}/man1/opa_osd_perf.1* %{_mandir}/man1/opa_osd_perf.1*
%{_mandir}/man1/opa_osd_query.1* %{_mandir}/man1/opa_osd_query.1*
%config(noreplace) %{_sysconfdir}/rdma/dsap.conf %config(noreplace) %{_sysconfdir}/rdma/dsap.conf
%files -n opa-address-resolution-devel
%{_includedir}/*
%{_libdir}/libopasadb.so
%{_libdir}/ibacm/libdsap.so
%changelog %changelog