File mstflint.spec of Package mstflint
#
# spec file for package mstflint
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define extra_version -1.8.g7d4dede
Name: mstflint
Summary: Mellanox Firmware Burning and Diagnostics Tools
License: GPL-2.0 or BSD-2-Clause
Group: System/Console
Version: 3.6.0
Release: 0
Source0: http://www.openfabrics.org/downloads/mstflint/%{name}-%{version}%{extra_version}.tar.gz
# PATCH-FIX-UPSTREAM Declare package as foreign and other autotools stuff pth@suse.de
Patch0: mstflint-autotools.patch
# PATCH-FIX-UPSTREAM Add all needed defines to get it built on s390x
Patch4: mstflint-s390_arch.patch
# PATCH-FIX-UPSTREAM Don't use -Werror as there are format warnings
Patch5: mstflint-no_Werror.patch
Url: http://www.openfabrics.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libibmad-devel
BuildRequires: libtool
BuildRequires: zlib-devel
%description
This package contains a burning tool and diagnostic tools for Mellanox
manufactured HCA/NIC cards. It also provides access to the relevant
source code. Please see the file LICENSE for licensing details.
This package is based on a subset of the Mellanox Firmware Tools (MFT)
package. For a full documentation of the MFT package, please refer to
the downloads page at the Mellanox web site.
%package devel
Summary: SDK to access flash on Mellanox HCAs/NICs
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
This package contains the header and the library symlink needed
to access the flash memory on Mellanox HCAs/NICs.
%prep
%setup -q
%patch0
%patch4
%patch5
rm -f configure.in
rm -f mtcr_ul/Makefile.in
%build
autoreconf -fi
%{configure}
make CFLAGS="%{optflags} -I. -fno-exceptions"
%install
make DESTDIR=%{buildroot} install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc README COPYING LICENSE
%{_mandir}/man1/*.1.gz
%_bindir/*
%{_datadir}/%{name}
%files devel
%defattr(-, root, root)
%{_includedir}/mtcr_ul
%{_libdir}/libmtcr_ul.a
%changelog