bbc2798
%global __remake_config 1
bbc2798
8df8b7a
Name:		mstflint
8df8b7a
Summary:	Mellanox firmware burning tool
bbc2798
Version:	4.11.0
4d9bba1
Release:	4%{?dist}
8df8b7a
License:	GPLv2+ or BSD
c600aaa
Group:		Applications/System
c600aaa
Source: 	https://github.com/Mellanox/mstflint/releases/download/v4.11.0-3/mstflint-4.11.0-3.tar.gz
c600aaa
Patch1: 	convert-format-for-mlxfwreset_status_checker.patch
c600aaa
Patch2: 	0001-Fix-shebang-for-python-scripts.patch
c600aaa
Patch3: 	extend-buffer.patch
c600aaa
Patch4: 	add-default-link-flags-for-shared-libraries.patch
4d9bba1
Patch5: 	0001-mstflint-crash-when-compiled-with-CXXFLAGS-Wp-D_GLIB.patch
c600aaa
Patch6: 	replace-mlxfwreset-with-mstfwreset-in-mstflint-message.patch
e06f38a
Url:		https://github.com/Mellanox/mstflint
efbb425
BuildRequires:	libstdc++-devel, zlib-devel, libibmad-devel, gcc-c++, gcc
2ae396f
BuildRequires:  libcurl-devel, boost-devel, libxml2-devel, openssl-devel
bbc2798
%if %{__remake_config}
bbc2798
BuildRequires:  libtool, autoconf, automake
bbc2798
%endif
8df8b7a
Obsoletes:	openib-mstflint <= 1.4 openib-tvflash <= 0.9.2 tvflash <= 0.9.0
2ae396f
ExcludeArch:	s390 s390x %{arm}
bbc2798
Requires:	python3
8df8b7a
8df8b7a
%description
2ae396f
This package contains firmware update tool, vpd dump and register dump tools
2ae396f
for network adapters based on Mellanox Technologies chips.
8df8b7a
8df8b7a
%prep
8df8b7a
%setup -q
bbc2798
%patch1 -p1
bbc2798
%patch2 -p1
bbc2798
%patch3 -p1
c600aaa
%patch4 -p1
4d9bba1
%patch5 -p1
c600aaa
%patch6 -p1
5934d92
find . -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
5934d92
find . -type f -iname '*.cpp' -exec chmod a-x '{}' ';'
8df8b7a
8df8b7a
%build
bbc2798
%if %{__remake_config}
bbc2798
./autogen.sh
bbc2798
%endif
2ae396f
%configure --enable-fw-mgr
2ae396f
%make_build
8df8b7a
8df8b7a
%install
6566d6b
make DESTDIR=%{buildroot} install
6566d6b
# Remove the devel files that we don't ship
6566d6b
rm -fr %{buildroot}%{_includedir}
2ae396f
find %{buildroot} -type f -name '*.la' -delete
bbc2798
find %{buildroot} -type f -name '*.a' -delete
c600aaa
# python scripts with shebang should be installed as executable
c600aaa
find %{buildroot} -type f -name  test.py -exec chmod -v a+x '{}' ';'
c600aaa
find %{buildroot} -type f -name  mstfwreset.py -exec chmod -v a+x '{}' ';'
c600aaa
find %{buildroot} -type f -name  mlxfwreset_mlnxdriver.py -exec chmod -v a+x '{}' ';'
c600aaa
find %{buildroot} -type f -name  mlnx_peripheral_components.py -exec chmod -v a+x '{}' ';'
c600aaa
find %{buildroot} -type f -name  mlxfwreset_status_checker.py -exec chmod -v a+x '{}' ';'
c600aaa
find %{buildroot} -type f -name  mcra.py -exec chmod -v a+x '{}' ';'
c600aaa
find %{buildroot} -type f -name  mlxfwreset_utils.py -exec chmod -v a+x '{}' ';'
c600aaa
find %{buildroot} -type f -name  pci_device.py -exec chmod -v a+x '{}' ';'
8df8b7a
8df8b7a
%files
8df8b7a
%doc README
8df8b7a
%_bindir/*
2ae396f
%{_sysconfdir}/mstflint
2ae396f
%{_libdir}/mstflint
8df8b7a
f06fecd
%{_datadir}/mstflint
f06fecd
%{_mandir}/man1/*
f06fecd
8df8b7a
%changelog
4d9bba1
* Fri Feb 22 2019 Honggang Li <honli@redhat.com> - 4.11.0-4
4d9bba1
- Fix mstflint segment fault issue for ConnectX-5 HCA
4d9bba1
- Resolves: 1679844
4d9bba1
c600aaa
* Tue Feb 12 2019 Honggang Li <honli@redhat.com> - 4.11.0-3
c600aaa
- Rebase mstflint to latest upstream release v4.11.0-3
c600aaa
- Resolves: 1676338
c600aaa
bbc2798
* Fri Feb  1 2019 Honggang Li <honli@redhat.com> - 4.11.0-2
bbc2798
- Rebase mstflint to latest upstream release v4.11.0-2
bbc2798
- Resolves: bz1671710
bbc2798
4ed3583
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.0-4
4ed3583
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4ed3583
da4308a
* Fri Jan 25 2019 Jonathan Wakely <jwakely@redhat.com> - 4.10.0-3
da4308a
- Rebuilt for Boost 1.69
da4308a
9a2ac85
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.0-2
9a2ac85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9a2ac85
efbb425
* Tue Jul 10 2018 Honggang Li <honli@redhat.com> - 4.10.0-1
efbb425
- Rebase to latest upstream release v4.10.0-1
efbb425
- Resolves: bz1550400
efbb425
213686f
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-5
213686f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
213686f
d357c23
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 4.8.0-4
d357c23
- Rebuilt for Boost 1.66
d357c23
2ae396f
* Fri Dec 15 2017 Honggang Li <honli@redhat.com> - 4.8.0-3
2ae396f
- Rebase mstflint to latest upstream release v4.8.0-2
2ae396f
- Resolves: bz1526293
2ae396f
8618aa9
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-4
8618aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8618aa9
4e6a950
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-3
4e6a950
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4e6a950
f06fecd
* Mon Feb 27 2017 Honggang Li <honli@redhat.com> - 4.6.0-2
f06fecd
- Add man pages.
f06fecd
- Resolves: bz1427063
f06fecd
e06f38a
* Wed Feb 22 2017 Honggang Li <honli@redhat.com> - 4.6.0-1
e06f38a
- Rebase to latest upstream release 4.6.0.
e06f38a
- Update mstflint package from github.
e06f38a
- Resolves: bz1423970
e06f38a
4816fc1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2.12.gd1edd58.1
4816fc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4816fc1
411f4ec
* Wed Aug 24 2016 Honggang Li <honli@redhat.com> - 4.4.0-1.12.gd1edd58.1
411f4ec
- Rebase to latest upstream release 4.4.0-1.12.gd1edd58 (bz1369683).
411f4ec
5934d92
* Fri Apr  8 2016 Honggang Li <honli@redhat.com> - 4.3.0-1.49.g9b9af70.1
5934d92
- Rebase to latest upstream version 4.3.0-1.49.g9b9af70.
5934d92
20a002b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-0.47.gb1cdaf7.1
20a002b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
20a002b
f0016a0
* Wed Dec 02 2015 Doug Ledford <dledford@redhat.com> - 4.1.0-0.46.gb1cdaf7.1
f0016a0
- Update to latest upstream sources (enables ConnectX-4 support)
f0016a0
- Drop patch that no longer applies
f0016a0
fa31fd6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.11.g6961daa.1
fa31fd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fa31fd6
3291f0d
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.0-0.10.g6961daa.1
3291f0d
- Rebuilt for GCC 5 C++11 ABI change
3291f0d
86bb74e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.9.g6961daa.1
86bb74e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
86bb74e
04f7db0
* Fri Jun 20 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 3.0-0.8.g6961daa.1
04f7db0
- Fix FTBFS with -Werror=format-security (#1037207, #1106248)
Yaakov Selkowitz bb37b8e
- ExcludeArch: %%arm aarch64
04f7db0
- Cleanup spec
04f7db0
cb7a528
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.7.g6961daa.1
cb7a528
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cb7a528
94ef709
* Fri Aug 16 2013 Doug Ledford <dledford@redhat.com> - 3.0-0.6.g6961daa.1
94ef709
- Update to latest upstream version, which resovles some licensing issues
94ef709
  on some of the source files
94ef709
6566d6b
* Fri Aug 09 2013 Doug Ledford <dledford@redhat.com> - 3.0-0.5.gff93670.1
6566d6b
- Update to latest upstream version, which include ConnectIB support
6566d6b
c7a76a8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-10
c7a76a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c7a76a8
e6543ab
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
e6543ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e6543ab
82d4c81
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
82d4c81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
82d4c81
36106b7
* Fri Jan 13 2012 Doug Ledford <dledford@redhat.com> - 1.4-7
36106b7
- The upstream tarball as provided is broken.  Clean up the tarball so
36106b7
  the package builds properly
36106b7
8df8b7a
* Fri Jan 06 2012 Doug Ledford <dledford@redhat.com> - 1.4-6
8df8b7a
- Initial import into Fedora
8df8b7a
8df8b7a
* Wed Oct 26 2011 Doug Ledford <dledford@redhat.com> - 1.4-5.el6
8df8b7a
- Update to a version that will support the latest Mellanox CX3 hardware
8df8b7a
- Resolves: bz748244
8df8b7a
8df8b7a
* Mon Aug 08 2011 Doug Ledford <dledford@redhat.com> - 1.4-4.el6
8df8b7a
- Fix a bug in mmio space unmapping
8df8b7a
- Resolves: bz729061
8df8b7a
- Related: bz725016
8df8b7a
8df8b7a
* Fri Feb 19 2010 Doug Ledford <dledford@redhat.com> - 1.4-3.el6
8df8b7a
- Don't include mtcr.h as we don't really expect anything to need Mellanox
8df8b7a
  card register definitions except this program, and we already have the
8df8b7a
  file.
8df8b7a
- Change to ExcludeArch instead of ExclusiveArch so we build in all the right
8df8b7a
  places.
8df8b7a
- Related: bz543948
8df8b7a
8df8b7a
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.4-2.el6
8df8b7a
- Update to tarball from URL instead of from OFED
8df8b7a
- Minor tweaks for pkgwrangler import
8df8b7a
- Related: bz543948
8df8b7a
8df8b7a
* Sat Apr 18 2009 Doug Ledford <dledford@redhat.com> - 1.4-1.el5
8df8b7a
- Update to ofed 1.4.1-rc3 version
8df8b7a
- Related: bz459652
8df8b7a
8df8b7a
* Tue Apr 01 2008 Doug Ledford <dledford@redhat.com> - 1.3-1
8df8b7a
- Update to OFED 1.3 final bits
8df8b7a
- Related: bz428197
8df8b7a
8df8b7a
* Sun Jan 27 2008 Doug Ledford <dledford@redhat.com> - 1.2-2
8df8b7a
- Obsolete the old openib-mstflint package
8df8b7a
8df8b7a
* Fri Jan 25 2008 Doug Ledford <dledford@redhat.com> - 1.2-1
8df8b7a
- Initial import into CVS
8df8b7a
- Related: bz428197
8df8b7a
8df8b7a
* Thu Jul 19 2007 - Vladimir Sokolovsky vlad@mellanox.co.il
8df8b7a
- Initial Package, Version 1.2