262cb3
Name:		mstflint
262cb3
Summary:	Mellanox firmware burning tool
a98627
Version:	4.9.0
3e1487
Release:	3%{?dist}
262cb3
License:	GPLv2+ or BSD
262cb3
Group:		Applications/System
a98627
# Source downloaded from https://github.com/Mellanox/%{name}/releases/download/v%{version}-3/%{name}-%{version}.tar.gz
a98627
# Rename it as mstflint-4.9.0-3.tar.gz
a98627
Source: 	mstflint-4.9.0-3.tar.gz
a47877
Url:		https://github.com/Mellanox/mstflint
a98627
BuildRequires:	libstdc++-devel, zlib-devel, libibmad-devel, rdma-core-devel
3e1487
BuildRequires:  libcurl-devel, boost-devel, libxml2-devel, openssl-devel
262cb3
Obsoletes:	openib-mstflint <= 1.4 openib-tvflash <= 0.9.2 tvflash <= 0.9.0
262cb3
ExcludeArch:	s390 s390x
262cb3
262cb3
%description
3e1487
This package contains firmware update tool, vpd dump and register dump tools
3e1487
for network adapters based on Mellanox Technologies chips.
262cb3
262cb3
%prep
262cb3
%setup -q
e00166
find . -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
e00166
find . -type f -iname '*.cpp' -exec chmod a-x '{}' ';'
262cb3
262cb3
%build
e00166
export CFLAGS="$RPM_OPT_FLAGS"
e00166
export CXXFLAGS="$RPM_OPT_FLAGS -std=gnu++98 -Wno-c++11-compat"
3e1487
%configure --enable-fw-mgr
e00166
%make_build
262cb3
262cb3
%install
262cb3
make DESTDIR=%{buildroot} install
262cb3
# Remove the devel files that we don't ship
262cb3
rm -fr %{buildroot}%{_includedir}
3e1487
find %{buildroot} -type f -name '*.la' -delete
3e1487
find %{buildroot} -type f -name libmtcr_ul.a -delete
262cb3
262cb3
%files
262cb3
%doc README
262cb3
%_bindir/*
3e1487
%{_sysconfdir}/mstflint
3e1487
%{_libdir}/mstflint
262cb3
a47877
%{_datadir}/mstflint
a47877
%{_mandir}/man1/*
a47877
262cb3
%changelog
a98627
* Sun May  6 2018 Honggang Li <honli@redhat.com> - 4.9.0-3
a98627
- Rebase to latest upstream release v4.9.0-3
a98627
- Resolves: bz1541740
a98627
a98627
* Tue Apr 17 2018 Honggang Li <honli@redhat.com> - 4.9.0-1
a98627
- Rebase to latest upstream release v4.9.0-1
a98627
- Resolves: bz1541740, bz1541489
a98627
3e1487
* Thu Dec  7 2017 Honggang Li <honli@redhat.com> - 4.8.0-3
3e1487
- Fixes mstvpd for mlx5 devices
3e1487
- Resolves: bz1515993
3e1487
3e1487
* Sun Nov 12 2017 Honggang Li <honli@redhat.com> - 4.8.0-2
3e1487
- Remove redundant file from mstflint
3e1487
- Resolves: bz1512368
3e1487
3e1487
* Wed Nov  1 2017 Honggang Li <honli@redhat.com> - 4.8.0-1
3e1487
- Rebase to upstream latest release 4.8.0
3e1487
- Resolves: bz1456545
3e1487
3e1487
* Fri Oct  6 2017 Honggang Li <honli@redhat.com> - 4.7.0-1
3e1487
- Rebase to upstream latest release 4.7.0
3e1487
- Resolves: bz1456545
3e1487
a47877
* Tue Mar  7 2017 Honggang Li <honli@redhat.com> - 4.6.0-2
a47877
- Fix manpage issues reported by lexgrog.
a47877
- Resolves: bz948474
a47877
a47877
* Mon Feb 27 2017 Honggang Li <honli@redhat.com> - 4.6.0-1
a47877
- Rebase to latest upstream from github.
a47877
- Add man pages.
a47877
- Resolves: bz948474, bz1416697
a47877
e00166
* Wed Apr 20 2016 Honggang Li <honli@redhat.com> - 4.3.0-1.49.g9b9af70.1
e00166
- Rebase to latest upstream version 4.3.0-1.49.g9b9af70.
e00166
- Spec file cleanup.
e00166
- Related: bz1277500
e00166
df14df
* Mon Jun 22 2015 Michal Schmidt <mschmidt@redhat.com> - 4.0.1-1
df14df
- Update to latest upstream release.
df14df
- Related: bz1164542
df14df
f3757d
* Fri Oct 17 2014 Doug Ledford <dledford@redhat.com> - 3.7.1-1
f3757d
- Update to latest upstream release for added arch support
f3757d
- Related: bz1055716
f3757d
42f2a2
* Sat Mar 01 2014 Doug Ledford <dledford@redhat.com> - 3.5.0-1
42f2a2
- Update to latest release for ConnectIB fixes
42f2a2
- Resolves: bz1060514
42f2a2
42f2a2
* Thu Jan 23 2014 Doug Ledford <dledford@redhat.com> - 3.0-0.7.g6961daa.2
42f2a2
- Fix for build on arm arches
42f2a2
- Resolves: bz1055716
42f2a2
42f2a2
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.0-0.7.g6961daa.1
42f2a2
- Mass rebuild 2013-12-27
42f2a2
262cb3
* Fri Aug 16 2013 Doug Ledford <dledford@redhat.com> - 3.0-0.6.g6961daa.1
262cb3
- Update to latest upstream version, which resovles some licensing issues
262cb3
  on some of the source files
262cb3
262cb3
* Fri Aug 09 2013 Doug Ledford <dledford@redhat.com> - 3.0-0.5.gff93670.1
262cb3
- Update to latest upstream version, which include ConnectIB support
262cb3
262cb3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-10
262cb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
262cb3
262cb3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
262cb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
262cb3
262cb3
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
262cb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
262cb3
262cb3
* Fri Jan 13 2012 Doug Ledford <dledford@redhat.com> - 1.4-7
262cb3
- The upstream tarball as provided is broken.  Clean up the tarball so
262cb3
  the package builds properly
262cb3
262cb3
* Fri Jan 06 2012 Doug Ledford <dledford@redhat.com> - 1.4-6
262cb3
- Initial import into Fedora
262cb3
262cb3
* Wed Oct 26 2011 Doug Ledford <dledford@redhat.com> - 1.4-5.el6
262cb3
- Update to a version that will support the latest Mellanox CX3 hardware
262cb3
- Resolves: bz748244
262cb3
262cb3
* Mon Aug 08 2011 Doug Ledford <dledford@redhat.com> - 1.4-4.el6
262cb3
- Fix a bug in mmio space unmapping
262cb3
- Resolves: bz729061
262cb3
- Related: bz725016
262cb3
262cb3
* Fri Feb 19 2010 Doug Ledford <dledford@redhat.com> - 1.4-3.el6
262cb3
- Don't include mtcr.h as we don't really expect anything to need Mellanox
262cb3
  card register definitions except this program, and we already have the
262cb3
  file.
262cb3
- Change to ExcludeArch instead of ExclusiveArch so we build in all the right
262cb3
  places.
262cb3
- Related: bz543948
262cb3
262cb3
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.4-2.el6
262cb3
- Update to tarball from URL instead of from OFED
262cb3
- Minor tweaks for pkgwrangler import
262cb3
- Related: bz543948
262cb3
262cb3
* Sat Apr 18 2009 Doug Ledford <dledford@redhat.com> - 1.4-1.el5
262cb3
- Update to ofed 1.4.1-rc3 version
262cb3
- Related: bz459652
262cb3
262cb3
* Tue Apr 01 2008 Doug Ledford <dledford@redhat.com> - 1.3-1
262cb3
- Update to OFED 1.3 final bits
262cb3
- Related: bz428197
262cb3
262cb3
* Sun Jan 27 2008 Doug Ledford <dledford@redhat.com> - 1.2-2
262cb3
- Obsolete the old openib-mstflint package
262cb3
262cb3
* Fri Jan 25 2008 Doug Ledford <dledford@redhat.com> - 1.2-1
262cb3
- Initial import into CVS
262cb3
- Related: bz428197
262cb3
262cb3
* Thu Jul 19 2007 - Vladimir Sokolovsky vlad@mellanox.co.il
262cb3
- Initial Package, Version 1.2