709518
%global __remake_config 1
709518
709518
Name:		mstflint
709518
Summary:	Mellanox firmware burning tool
0c71bb
Version:	4.23.0
0c71bb
Release:	2%{?dist}
709518
License:	GPLv2+ or BSD
0d1e84
Url:		https://github.com/Mellanox/%{name}
0d1e84
Source0: 	https://github.com/Mellanox/%{name}/releases/download/v%{version}-1/%{name}-%{version}-1.tar.gz
709518
Group:		Applications/System
0d1e84
0d1e84
Patch4:	add-default-link-flags-for-shared-libraries.patch
709518
Patch6: 	replace-mlxfwreset-with-mstfwreset-in-mstflint-message.patch
0d1e84
0d1e84
BuildRequires:	make
709518
BuildRequires:	libstdc++-devel, zlib-devel, libibmad-devel, gcc-c++, gcc
709518
BuildRequires:  libcurl-devel, boost-devel, libxml2-devel, openssl-devel
709518
%if %{__remake_config}
709518
BuildRequires:  libtool, autoconf, automake
709518
%endif
709518
Obsoletes:	openib-mstflint <= 1.4 openib-tvflash <= 0.9.2 tvflash <= 0.9.0
709518
ExcludeArch:	s390 s390x %{arm}
709518
Requires:	python3
709518
709518
%description
709518
This package contains firmware update tool, vpd dump and register dump tools
709518
for network adapters based on Mellanox Technologies chips.
709518
709518
%prep
0d1e84
%setup -q -n %{name}-%{version}
0d1e84
0d1e84
%patch4 -p1
0d1e84
%patch6 -p1
0d1e84
709518
find . -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
709518
find . -type f -iname '*.cpp' -exec chmod a-x '{}' ';'
709518
709518
%build
709518
%if %{__remake_config}
709518
./autogen.sh
709518
%endif
0d1e84
%configure --enable-fw-mgr
709518
%make_build
709518
709518
%install
2fee8b
%make_install
709518
# Remove the devel files that we don't ship
709518
rm -fr %{buildroot}%{_includedir}
709518
find %{buildroot} -type f -name '*.la' -delete
709518
find %{buildroot} -type f -name '*.a' -delete
709518
0c71bb
# Mark these shared libs executable for find-debuginfo.sh to find them.
0c71bb
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Debuginfo/
0c71bb
chmod +x %{buildroot}/%{_libdir}/mstflint/python_tools/*.so
0c71bb
709518
%files
709518
%doc README
709518
%_bindir/*
709518
%{_sysconfdir}/mstflint
709518
%{_libdir}/mstflint
709518
709518
%{_datadir}/mstflint
709518
%{_mandir}/man1/*
709518
709518
%changelog
0c71bb
* Wed Feb 08 2023 Michal Schmidt <mschmidt@redhat.com> - 4.23.0-2
0c71bb
- Update to upstream release 4.23.0
0c71bb
- Resolves: rhbz#2112936
0c71bb
0d1e84
* Wed Aug 17 2022 Michal Schmidt <mschmidt@redhat.com> - 4.21.0-1
0d1e84
- Update to upstream release 4.21.0
0d1e84
- Resolves: rhbz#2049525
0d1e84
3c0286
* Mon Mar 28 2022 Michal Schmidt <mschmidt@redhat.com> - 4.19.0-0.3
3c0286
- Rebase to the almost released 4.19.0
0d1e84
- Resolves: rhbz#2045017
3c0286
3e4254
* Sun Dec 05 2021 Honggang Li <honli@redhat.com> - 4.18.0-1
3e4254
- Rebase mstflint to latest upstream release v4.18.0-1
3e4254
- Resolves: rhbz#1982202
3e4254
ed5c34
* Thu Jul 01 2021 Honggang Li <honli@redhat.com> - 4.17.0-1
ed5c34
- Rebase mstflint to latest upstream release v4.17.0-1
ed5c34
- Resolves: bz1915313
ed5c34
2fee8b
* Thu Nov 05 2020 Honggang Li <honli@redhat.com> - 4.15.0-1
2fee8b
- Rebase to latest upstream release v4.15.0-1
2fee8b
- Resolves: bz1851723
2fee8b
12f3cd
* Thu Apr 16 2020 Honggang Li <honli@redhat.com> - 4.14.0-1
12f3cd
- Rebase to latest upstream release v4.14.0-1
12f3cd
- Resolves: bz1789386
12f3cd
26b170
* Thu Jan 16 2020 Honggang Li <honli@redhat.com> - 4.13.3-2
26b170
- Rebase to latest upstream release v4.13.3-2
26b170
- Resolves: bz1788927
26b170
26b170
* Wed Oct 30 2019 Honggang Li <honli@redhat.com> - 4.13.1-1
26b170
- Rebase to latest upstream release v4.13.1-1
26b170
- Resolves: bz1722258
26b170
20486b
* Thu Jun 13 2019 Honggang Li <honli@redhat.com> - 4.12.0-1
20486b
- Rebase to latest upstream release v4.12.0-1
20486b
- Resolves: bz1683083
20486b
709518
* Fri Feb  1 2019 Honggang Li <honli@redhat.com> - 4.11.0-2
709518
- Rebase to latest upstream release v4.11.0-2
709518
- Resolves: bz1634777
709518
709518
* Thu Sep 27 2018 Honggang Li <honli@redhat.com> - 4.10.0.3
709518
- Fix annocheck issues
709518
- Resolves: bz1630599
709518
709518
* Sun Aug 12 2018 Honggang Li <honli@redhat.com> - 4.10.0.2
709518
- Rebase to latest upstream release v4.10.0-2
709518
- Fix license issue of mtcr_ul.c
709518
- Resolves: bz1541741
709518
709518
* Tue Jul 10 2018 Honggang Li <honli@redhat.com> - 4.10.0-1
709518
- Rebase to latest upstream release v4.10.0-1
709518
- Resolves: bz1550400
709518
709518
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-5
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
709518
709518
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 4.8.0-4
709518
- Rebuilt for Boost 1.66
709518
709518
* Fri Dec 15 2017 Honggang Li <honli@redhat.com> - 4.8.0-3
709518
- Rebase mstflint to latest upstream release v4.8.0-2
709518
- Resolves: bz1526293
709518
709518
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-4
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
709518
709518
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-3
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
709518
709518
* Mon Feb 27 2017 Honggang Li <honli@redhat.com> - 4.6.0-2
709518
- Add man pages.
709518
- Resolves: bz1427063
709518
709518
* Wed Feb 22 2017 Honggang Li <honli@redhat.com> - 4.6.0-1
709518
- Rebase to latest upstream release 4.6.0.
709518
- Update mstflint package from github.
709518
- Resolves: bz1423970
709518
709518
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2.12.gd1edd58.1
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
709518
709518
* Wed Aug 24 2016 Honggang Li <honli@redhat.com> - 4.4.0-1.12.gd1edd58.1
709518
- Rebase to latest upstream release 4.4.0-1.12.gd1edd58 (bz1369683).
709518
709518
* Fri Apr  8 2016 Honggang Li <honli@redhat.com> - 4.3.0-1.49.g9b9af70.1
709518
- Rebase to latest upstream version 4.3.0-1.49.g9b9af70.
709518
709518
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-0.47.gb1cdaf7.1
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
709518
709518
* Wed Dec 02 2015 Doug Ledford <dledford@redhat.com> - 4.1.0-0.46.gb1cdaf7.1
709518
- Update to latest upstream sources (enables ConnectX-4 support)
709518
- Drop patch that no longer applies
709518
709518
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.11.g6961daa.1
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
709518
709518
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.0-0.10.g6961daa.1
709518
- Rebuilt for GCC 5 C++11 ABI change
709518
709518
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.9.g6961daa.1
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
709518
709518
* Fri Jun 20 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 3.0-0.8.g6961daa.1
709518
- Fix FTBFS with -Werror=format-security (#1037207, #1106248)
709518
- ExcludeArch: %%arm aarch64
709518
- Cleanup spec
709518
709518
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.7.g6961daa.1
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
709518
709518
* Fri Aug 16 2013 Doug Ledford <dledford@redhat.com> - 3.0-0.6.g6961daa.1
709518
- Update to latest upstream version, which resovles some licensing issues
709518
  on some of the source files
709518
709518
* Fri Aug 09 2013 Doug Ledford <dledford@redhat.com> - 3.0-0.5.gff93670.1
709518
- Update to latest upstream version, which include ConnectIB support
709518
709518
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-10
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
709518
709518
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
709518
709518
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
709518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
709518
709518
* Fri Jan 13 2012 Doug Ledford <dledford@redhat.com> - 1.4-7
709518
- The upstream tarball as provided is broken.  Clean up the tarball so
709518
  the package builds properly
709518
709518
* Fri Jan 06 2012 Doug Ledford <dledford@redhat.com> - 1.4-6
709518
- Initial import into Fedora
709518
709518
* Wed Oct 26 2011 Doug Ledford <dledford@redhat.com> - 1.4-5.el6
709518
- Update to a version that will support the latest Mellanox CX3 hardware
709518
- Resolves: bz748244
709518
709518
* Mon Aug 08 2011 Doug Ledford <dledford@redhat.com> - 1.4-4.el6
709518
- Fix a bug in mmio space unmapping
709518
- Resolves: bz729061
709518
- Related: bz725016
709518
709518
* Fri Feb 19 2010 Doug Ledford <dledford@redhat.com> - 1.4-3.el6
709518
- Don't include mtcr.h as we don't really expect anything to need Mellanox
709518
  card register definitions except this program, and we already have the
709518
  file.
709518
- Change to ExcludeArch instead of ExclusiveArch so we build in all the right
709518
  places.
709518
- Related: bz543948
709518
709518
* Mon Jan 25 2010 Doug Ledford <dledford@redhat.com> - 1.4-2.el6
709518
- Update to tarball from URL instead of from OFED
709518
- Minor tweaks for pkgwrangler import
709518
- Related: bz543948
709518
709518
* Sat Apr 18 2009 Doug Ledford <dledford@redhat.com> - 1.4-1.el5
709518
- Update to ofed 1.4.1-rc3 version
709518
- Related: bz459652
709518
709518
* Tue Apr 01 2008 Doug Ledford <dledford@redhat.com> - 1.3-1
709518
- Update to OFED 1.3 final bits
709518
- Related: bz428197
709518
709518
* Sun Jan 27 2008 Doug Ledford <dledford@redhat.com> - 1.2-2
709518
- Obsolete the old openib-mstflint package
709518
709518
* Fri Jan 25 2008 Doug Ledford <dledford@redhat.com> - 1.2-1
709518
- Initial import into CVS
709518
- Related: bz428197
709518
709518
* Thu Jul 19 2007 - Vladimir Sokolovsky vlad@mellanox.co.il
709518
- Initial Package, Version 1.2