Blame SPECS/compat-opensm-libs.spec

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