fa9792e
#
fa9792e
# Copyright (c) 2006 Mellanox Technologies. All rights reserved.
fa9792e
#
fa9792e
# This Software is licensed under one of the following licenses:
fa9792e
#
fa9792e
# 3) under the terms of the "GNU General Public License (GPL) Version 2" a
fa9792e
#    copy of which is available from the Open Source Initiative, see
fa9792e
#    http://www.opensource.org/licenses/gpl-license.php.
fa9792e
#
fa9792e
# Redistributions of source code must retain the above copyright
fa9792e
# notice and one of the license notices.
fa9792e
#
fa9792e
# Redistributions in binary form must reproduce both the above copyright
fa9792e
# notice, one of the license notices in the documentation
fa9792e
# and/or other materials provided with the distribution.
fa9792e
#
fa9792e
#
fa9792e
#  $Id: ibutils.spec.in 7656 2006-06-04 09:38:34Z vlad $
fa9792e
#
fa9792e
fa9792e
Summary: OpenIB Mellanox InfiniBand Diagnostic Tools
fa9792e
Name: ibutils
fa9792e
Version: 1.5.7
7cd6893
Release: 16%{?dist}
fa9792e
# This is dual-licensed upstream, all code available under either license
fa9792e
License: GPLv2 or BSD
fa9792e
Url: http://www.openfabrics.org/
fa9792e
Group: System Environment/Libraries
fa9792e
Source0: http://www.openfabrics.org/downloads/%{name}/%{name}-%{version}.tar.gz
Yaakov Selkowitz 7362324
Patch0: ibutils-1.5.7-tk86.patch
Yaakov Selkowitz 7362324
Patch1: ibutils-1.5.7-format-security.patch
fa9792e
Requires: tcl, tk, graphviz-tcl
fa9792e
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
ec2ffa6
ec2ffa6
BuildRequires: libibverbs-devel >= 1.1
ec2ffa6
BuildRequires: opensm-devel >= 3.3.0
ec2ffa6
BuildRequires: tcl-devel
ec2ffa6
BuildRequires: swig
ec2ffa6
BuildRequires: tk-devel
ec2ffa6
BuildRequires: libibumad-devel
ec2ffa6
BuildRequires: autoconf
ec2ffa6
BuildRequires: graphviz-tcl
ec2ffa6
BuildRequires: chrpath
ec2ffa6
BuildRequires: perl-podlators
Yaakov Selkowitz 7362324
BuildRequires: autoconf, automake, libtool
ec2ffa6
ExcludeArch:   s390 s390x
ec2ffa6
fa9792e
%description 
fa9792e
ibutils provides IB network and path diagnostics.
fa9792e
fa9792e
%package libs
fa9792e
Summary: Shared libraries used by ibutils binaries
fa9792e
Group: System Environment/Libraries
fa9792e
%description libs
fa9792e
Shared libraries used by the Mellanox Infiniband diagnostic utilities
fa9792e
fa9792e
%package devel
fa9792e
Summary: Development files to use the ibutils shared libraries
fa9792e
Group: System Environment/Libraries
fa9792e
Requires: ibutils-libs%{?_isa} = %{version}-%{release}
fa9792e
%description devel
fa9792e
Headers and static libraries needed to develop applications that use
fa9792e
the Mellanox Infiniband diagnostic utilities libraries
fa9792e
fa9792e
%package static
fa9792e
Summary: Static libraries for ibutils
fa9792e
Group: System Environment/Libraries
fa9792e
Requires: ibutils-devel%{?_isa} = %{version}-%{release}
fa9792e
%description static
fa9792e
Static libraries from the Mellanox Infiniband diagnostic utilities
fa9792e
fa9792e
%prep
fa9792e
%setup -q
Yaakov Selkowitz 7362324
%patch0 -p1
Yaakov Selkowitz 7362324
%patch1 -p1
ec2ffa6
Yaakov Selkowitz 7362324
autoreconf -fiv -I config
fa9792e
sed -i "s/^libibmscli_la_LIBADD =/& -lpthread/" ibmgtsim/src/Makefile.in
fa9792e
%configure --with-osm=%{_prefix} --enable-ibmgtsim --disable-rpath CXXFLAGS="$CXXFLAGS -fno-strict-aliasing -fPIC"
fa9792e
# Workaround libtool reordering -Wl,--as-needed after all the libraries.
fa9792e
sed -e 's|^LTCC="gcc"|LTCC="gcc -Wl,--as-needed"|' \
fa9792e
    -e 's|^CC="g++"|CC="g++ -Wl,--as-needed"|' \
fa9792e
    -i ibdm/libtool ibis/libtool ibmgtsim/libtool
fa9792e
fa9792e
%build
fa9792e
# The build isn't smp safe, so no %{?_smp_mflags}
fa9792e
export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing -fPIC"
fa9792e
make
fa9792e
fa9792e
%install
fa9792e
make install DESTDIR=%{buildroot}
fa9792e
rm -f %{buildroot}%{_bindir}/git_version.tcl
fa9792e
# None of these files are scripts, but because in the tarball some have
fa9792e
# execute privs, that gets copied on install and rpmlint doesn't like them
fa9792e
chmod -x %{buildroot}%{_libdir}/ibdm%{version}/ibnl/*
fa9792e
find %{buildroot} -name \*.la -delete
fa9792e
chrpath -d %{buildroot}%{_bindir}/ib{mssh,nlparse,dmsh,topodiff,is,msquit,dmtr,dmchk}
fa9792e
chrpath -d %{buildroot}%{_libdir}/libib{sysapi,dm}.so.1.[01].[01]
fa9792e
chrpath -d %{buildroot}%{_libdir}/*/libib{dm,is}.so.%{version}
fa9792e
fa9792e
fa9792e
%post libs -p /sbin/ldconfig
fa9792e
fa9792e
%postun libs -p /sbin/ldconfig
fa9792e
fa9792e
%files
fa9792e
%{_bindir}/dump2psl.pl
fa9792e
%{_bindir}/dump2slvl.pl
fa9792e
%{_bindir}/ibis
fa9792e
%{_bindir}/ibdmsh
fa9792e
%{_bindir}/ibtopodiff
fa9792e
%{_bindir}/ibnlparse
fa9792e
%{_bindir}/ibdmtr
fa9792e
%{_bindir}/ibdmchk
fa9792e
%{_bindir}/ibdiagnet
fa9792e
%{_bindir}/ibdiagpath
fa9792e
%{_bindir}/ibdiagui
fa9792e
%{_bindir}/mkSimNodeDir
fa9792e
%{_bindir}/ibmssh
fa9792e
%{_bindir}/ibmsquit
fa9792e
%{_bindir}/RunSimTest
fa9792e
%{_bindir}/IBMgtSim
fa9792e
%{_datadir}/ibmgtsim
fa9792e
%{_mandir}/*/*
fa9792e
fa9792e
%files libs
fa9792e
%doc COPYING
fa9792e
%{_libdir}/libibdmcom.so.*
fa9792e
%{_libdir}/libibdm.so.*
fa9792e
%{_libdir}/libibmscli.so.*
fa9792e
%{_libdir}/libibsysapi.so.*
fa9792e
%dir %{_libdir}/ibis%{version}
fa9792e
%dir %{_libdir}/ibdm%{version}
fa9792e
%dir %{_libdir}/ibdiagnet%{version}
fa9792e
%dir %{_libdir}/ibdiagpath%{version}
fa9792e
%dir %{_libdir}/ibdiagui%{version}
fa9792e
%{_libdir}/ibis%{version}/*
fa9792e
%{_libdir}/ibdm%{version}/*
fa9792e
%{_libdir}/ibdiagnet%{version}/*
fa9792e
%{_libdir}/ibdiagpath%{version}/*
fa9792e
%{_libdir}/ibdiagui%{version}/*
fa9792e
fa9792e
%files devel
fa9792e
%{_libdir}/libibdmcom.so
fa9792e
%{_libdir}/libibdm.so
fa9792e
%{_libdir}/libibmscli.so
fa9792e
%{_libdir}/libibsysapi.so
fa9792e
%{_includedir}/ibdm
fa9792e
%{_includedir}/ibmgtsim
fa9792e
fa9792e
%files static
fa9792e
%{_libdir}/*.a
fa9792e
fa9792e
%changelog
7cd6893
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.7-16
7cd6893
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7cd6893
ec2ffa6
* Tue Jul 15 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.5.7-15
ec2ffa6
- Sync platform Excludes with rest of OpenFabrics package set
ec2ffa6
- Minor spec cleanups
ec2ffa6
Yaakov Selkowitz 7362324
* Mon Jun 30 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1.5.7-14
Yaakov Selkowitz 7362324
- Fix FTBFS with tcl-8.6 and -Werror=format-security (#1037127, #1106783)
Yaakov Selkowitz 7362324
e27ea1d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.7-13
e27ea1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e27ea1d
391aae5
* Wed May 21 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 1.5.7-12
391aae5
- Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86
391aae5
Jaromir Capik b679b1e
* Tue May 13 2014 Jaromir Capik <jcapik@redhat.com> - 1.5.7-11
Jaromir Capik b679b1e
- Replacing ppc64 with the power64 macro (#1076681)
Jaromir Capik b679b1e
498b675
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.7-10
498b675
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
498b675
302ab59
* Mon Feb 18 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.5.7-9
302ab59
- Build on ARM too
302ab59
9e9f2de
* Tue Feb 12 2013 Jon Stanley <jonstanley@gmail.com> - 1.5.7-8
6988346
- Bump
6988346
23c4232
* Tue Feb 12 2013 Jon Stanley <jonstanley@gmail.com> - 1.5.7-7.1
23c4232
- perl-podlators added to BR for F19 build
23c4232
fa9792e
* Wed Oct 24 2012 Jon Stanley <jonstanley@gmail.com> - 1.5.7-7
fa9792e
- Minor spec cleanup
fa9792e
fa9792e
* Wed Oct 24 2012 Jon Stanley <jonstanley@gmail.com> - 1.5.7-6
fa9792e
- Drop a static lib from -devel that I missed
fa9792e
- Add comment explaining dual license
fa9792e
- Drop swig runtime requirement
fa9792e
- Eliminate unnecessary linkage and undefined weak symbols
fa9792e
- Drop autoconf BR
fa9792e
fa9792e
* Tue Oct 23 2012 Jon Stanley <jonstanley@gmail.com> - 1.5.7-5
fa9792e
- Split out static libs into their own subpackage
fa9792e
- Remove unnecesary BuildRoot and defattr
fa9792e
- Add %%{?_isa} to explict deps
fa9792e
- Related: bz773485
fa9792e
fa9792e
* Fri Sep 02 2011 Doug Ledford <dledford@redhat.com> - 1.5.7-4
fa9792e
- Add a Requires for ibutils-libs to base ibutils package (found by rpmdiff)
fa9792e
fa9792e
* Thu Sep 01 2011 Doug Ledford <dledford@redhat.com> - 1.5.7-3
fa9792e
- Add a Requires on graphviz-tcl
fa9792e
- Resolves: bz734979
fa9792e
fa9792e
* Mon Aug 08 2011 Doug Ledford <dledford@redhat.com> - 1.5.7-2
fa9792e
- Fix the build so it generates proper debuginfo files
fa9792e
- Resolves: bz729019
fa9792e
- Related: bz725016
fa9792e
fa9792e
* Thu Aug 04 2011 Doug Ledford <dledford@redhat.com> - 1.5.7-1
fa9792e
- Update to latest upstream release
fa9792e
- Related: bz725016
fa9792e
fa9792e
* Thu Apr 28 2011 Doug Ledford <dledford@redhat.com> - 1.5.4-3.el6
fa9792e
- Build for i686 too
fa9792e
- Related: bz695204
fa9792e
fa9792e
* Tue Apr 19 2011 Dennis Gregorovic <dgregor@redhat.com> - 1.5.4-2.el6
fa9792e
- Build for ppc64
fa9792e
- Resolves: bz695204
fa9792e
fa9792e
* Mon Mar 08 2010 Doug Ledford <dledford@redhat.com> - 1.5.4-1.el6
fa9792e
- Update to latest upstream version, which cleans up some licensing issues
fa9792e
  found in the previous versions during review
fa9792e
- Related: bz555835
fa9792e
fa9792e
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.2-12.el6
fa9792e
- Update license for pkgwranger approval
fa9792e
- Related: bz543948
fa9792e
fa9792e
* Tue Dec 22 2009 Doug Ledford <dledford@redhat.com> - 1.2-11.el5
fa9792e
- Update to latest compatible upstream version
fa9792e
- Related: bz518218
fa9792e
fa9792e
* Fri Apr 17 2009 Doug Ledford <dledford@redhat.com> - 1.2-10
fa9792e
- Update to ofed 1.4.1-rc3 version
fa9792e
- Related: bz459652
fa9792e
fa9792e
* Tue Nov 11 2008 Doug Ledford <dledford@redhat.com> - 1.2-9
fa9792e
- Oops, forgot to remove the man page for ibdiagui, fix that
fa9792e
- Related: bz468122
fa9792e
fa9792e
* Mon Nov 10 2008 Doug Ledford <dledford@redhat.com> - 1.2-8
fa9792e
- Remove ibdiagui from the package entirely since it still doesn't work
fa9792e
  without graphviz-tcl
fa9792e
- Related: bz468122
fa9792e
fa9792e
* Thu Oct 23 2008 Doug Ledford <dledford@redhat.com> - 1.2-7
fa9792e
- Grab the upstream ibutils git repo, find a checkout that supports the
fa9792e
  recent opensm library versions and yet doesn't require graphviz-tcl,
fa9792e
  export that tree to a tarball with a git designation, build from it.
fa9792e
- Resolves: bz468122
fa9792e
fa9792e
* Thu Sep 18 2008 Doug Ledford <dledford@redhat.com> - 1.2-6
fa9792e
- Add a build flag to silence some compile warnings
fa9792e
fa9792e
* Wed Sep 17 2008 Doug Ledford <dledford@redhat.com> - 1.2-4
fa9792e
- Upstream has updated the tarball without changing the version number,
fa9792e
  grab the tarball from the OFED-1.4-beta1 tarball and use it.
fa9792e
- Resolves: bz451467
fa9792e
fa9792e
* Tue Jan 29 2008 Doug Ledford <dledford@redhat.com> - 1.2-3
fa9792e
- Bump and rebuild against OFED 1.3 libraries
fa9792e
- Resolves: bz428198
fa9792e
fa9792e
* Wed Jun 27 2007 Doug Ledford <dledford@redhat.com> - 1.2-2
fa9792e
- Bump and rebuild against openib-1.2 libraries
fa9792e
fa9792e
* Mon Jun 25 2007 Doug Ledford <dledford@redhat.com> - 1.2-1
fa9792e
- Update to OFED 1.2 released package
fa9792e
- Related: bz245817
fa9792e
fa9792e
* Wed Oct 25 2006 Tim Powers <timp@redhat.com> - 1.0-3
fa9792e
- rebuild against openib package set due to soname change
fa9792e
fa9792e
* Fri Oct 20 2006 Doug Ledford <dledford@redhat.com>
fa9792e
- Bump and rebuild against latest openib packages
fa9792e
- Disable ibmgtsim until I can figure out why it's failing to wrap a
fa9792e
  perfectly existent library function (I hate c++)
fa9792e
fa9792e
* Mon Jul 31 2006 Doug Ledford <dledford@redhat.com> 1.0-2
fa9792e
- Make spec file name convention/multilib compliant
fa9792e
- Move all the files to FHS compliant locations for a distributor
fa9792e
fa9792e
* Tue May 16 2006 Vladimir Sokolovsky <vlad@mellanox.co.il>
fa9792e
- Added ibutils sh, csh and conf to update environment
fa9792e
fa9792e
* Sun Apr  2 2006 Vladimir Sokolovsky <vlad@mellanox.co.il>
fa9792e
- Initial packaging for openib gen2 stack