diff --git a/.compat-opensm-libs.metadata b/.compat-opensm-libs.metadata new file mode 100644 index 0000000..241c4e8 --- /dev/null +++ b/.compat-opensm-libs.metadata @@ -0,0 +1 @@ +602405b0ecfeb7e616449d2c618c6a141c199d21 SOURCES/opensm-3.3.15.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5801410 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/opensm-3.3.15.tar.gz diff --git a/SPECS/compat-opensm-libs.spec b/SPECS/compat-opensm-libs.spec new file mode 100644 index 0000000..f54e341 --- /dev/null +++ b/SPECS/compat-opensm-libs.spec @@ -0,0 +1,82 @@ +Name: compat-opensm-libs +Version: 3.3.15 +Release: 3%{?dist} +Summary: Back compatability libraries for the IB management stack +Group: System Environment/Libraries +License: GPLv2 or BSD +Url: https://openfabrics.org/ +Source0: https://www.openfabrics.org/downloads/management/opensm-3.3.15.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: libtool, bison, flex, byacc, libibmad-devel libibumad-devel +ExcludeArch: s390 s390x + +%description +The libibumad and opensm packages provide libraries for use on the system. +As those libraries have changed version, this compat package provides the +older version of the libraries so that packages or user applications will +not need to be recompiled against the newer libraries unnecessarily. + +%prep +%setup -q -n opensm-3.3.15 + +%build +#libibumad first, then libibmad, then opensm +#cd libibumad-1.3.4 +#%configure +#make %{?_smp_mflags} +#cd .. +%configure --with-opensm-conf-sub-dir=rdma +make %{?_smp_mflags} CFLAGS+="-fno-strict-aliasing -Wno-format-security" + +%install +rm -rf %{buildroot} +#cd libibumad-1.3.4 +#make DESTDIR=%{buildroot} install +#cd .. +make DESTDIR=%{buildroot} install +# remove unpackaged files from the buildroot +rm -rf %{buildroot}/etc %{buildroot}/usr/include %{buildroot}/usr/sbin +rm -rf %{buildroot}/usr/share +rm -f %{buildroot}%{_libdir}/*.{la,so,a} +rm -f %{buildroot}%{_libdir}/libopensm* + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%{_libdir}/lib* + +%changelog +* Tue Feb 19 2019 Honggang Li - 3.3.15-3 +- Package up libosmcomp.so.3* to fix dependency issue after rebase + opensm to release 3.3.21 +- Resolves: bz1670692 + +* Mon Nov 10 2014 Doug Ledford - 3.3.15-2 +- Fix build flags to satisfy rpmdiff +- Related: bz1155762 + +* Mon Oct 27 2014 Doug Ledford - 3.3.15-1 +- Forward port to rhel7 and modify for use there +- Related: bz1155762 + +* Wed Aug 31 2011 Doug Ledford - 3.3.5-3 +- Change the file spec so we don't accidentally pick up the debug files in + the base package on 32bit arches +- Resolves: bz732495 + +* Mon Aug 01 2011 Doug Ledford - 3.3.5-2 +- Drop libibmad as it didn't soname bump, and also remove the lower level + opensm libs, libosm{comp,vendor} as they didn't soname bump either +- Related: bz725016 + +* Mon Jul 25 2011 Doug Ledford - 3.3.5-1 +- Initial creation of package +- Related: bz725106 +