Fix mingw-find-debuginfo.sh to pick up strippable binaries also in %%{_prefix}/%%{mingw32,64_target}

This commit is contained in:
Sandro Mani 2019-08-12 13:27:48 +02:00
parent cfb1eb6575
commit c3d26e7c6d
2 changed files with 7 additions and 4 deletions

View File

@ -6,8 +6,8 @@
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
Name: mingw-filesystem Name: mingw-filesystem
Version: 107 Version: 108
Release: 2%{?dist} Release: 1%{?dist}
Summary: MinGW cross compiler base filesystem and environment Summary: MinGW cross compiler base filesystem and environment
License: GPLv2+ License: GPLv2+
@ -316,6 +316,9 @@ install -m 0644 %{SOURCE19} $RPM_BUILD_ROOT%{_datadir}/mingw/
%changelog %changelog
* Mon Aug 12 2019 Sandro Mani <manisandro@gmail.com> - 108-1
- Fix mingw-find-debuginfo.sh to pick up strippable binaries also in %%{_prefix}/%%{mingw32,64_target}
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/sh
# mingw-find-debuginfo.sh - automagically generate debug info and file list # mingw-find-debuginfo.sh - automagically generate debug info and file list
# for inclusion in an rpm spec file for mingw-* packages. # for inclusion in an rpm spec file for mingw-* packages.
@ -33,7 +33,7 @@ do
done done
for target in $@; do for target in $@; do
prefix=`rpm --eval "%{${target}_prefix}"` prefix=`rpm --eval "%{_prefix}/%{${target}_target}"`
if [ ! -d $RPM_BUILD_ROOT$prefix ] ; then if [ ! -d $RPM_BUILD_ROOT$prefix ] ; then
continue continue
fi fi