Fix debuginfo generation

Resolves: rhbz#2166723

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
This commit is contained in:
Michal Schmidt 2023-02-03 16:03:48 +01:00
parent 6dbeb9bb5a
commit e2dcaeba36

View File

@ -3,7 +3,7 @@
Name: mstflint
Summary: Mellanox firmware burning tool
Version: 4.23.0
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+ or BSD
Url: https://github.com/Mellanox/%{name}
Source0: https://github.com/Mellanox/%{name}/releases/download/v%{version}-1/%{name}-%{version}-1.tar.gz
@ -49,6 +49,10 @@ rm -fr %{buildroot}%{_includedir}
find %{buildroot} -type f -name '*.la' -delete
find %{buildroot} -type f -name '*.a' -delete
# Mark these shared libs executable for find-debuginfo.sh to find them.
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Debuginfo/
chmod +x %{buildroot}/%{_libdir}/mstflint/python_tools/*.so
%files
%doc README
%_bindir/*
@ -59,6 +63,9 @@ find %{buildroot} -type f -name '*.a' -delete
%{_mandir}/man1/*
%changelog
* Fri Feb 03 2023 Michal Schmidt <mschmidt@redhat.com> - 4.23.0-2
- Fix debuginfo generation.
* Thu Feb 02 2023 Kamal Heib <kheib@redhat.com> - 4.23.0-1
- Update to upstream release 4.23.0