From dd67f499fc18c43505380d9013ccf2d94c05bdd1 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Sep 09 2017 11:55:50 +0000 Subject: Exclude *.debug files from non-debug packages --- diff --git a/mingw-openssl.spec b/mingw-openssl.spec index ee8df51..fec2994 100644 --- a/mingw-openssl.spec +++ b/mingw-openssl.spec @@ -24,7 +24,7 @@ Name: mingw-openssl Version: 1.0.2h -Release: 3%{?dist} +Release: 4%{?dist} Summary: MinGW port of the OpenSSL toolkit License: OpenSSL @@ -473,9 +473,13 @@ mkdir -m700 $RPM_BUILD_ROOT%{mingw32_sysconfdir}/pki/CA/private mkdir -m700 $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/CA mkdir -m700 $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/CA/private +# Exclude debug files from the main files (note: the debug files are only created after %%install, so we can't search for them directly) +find %{buildroot}%{mingw32_prefix} | grep -E '.(exe|dll|pyd)$' | sed 's|^%{buildroot}\(.*\)$|%%exclude \1.debug|' > mingw32-openssl.debugfiles +find %{buildroot}%{mingw64_prefix} | grep -E '.(exe|dll|pyd)$' | sed 's|^%{buildroot}\(.*\)$|%%exclude \1.debug|' > mingw64-openssl.debugfiles + # Win32 -%files -n mingw32-openssl +%files -n mingw32-openssl -f mingw32-openssl.debugfiles %doc build_win32/LICENSE %{mingw32_bindir}/openssl.exe %{mingw32_bindir}/c_rehash @@ -493,7 +497,7 @@ mkdir -m700 $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/CA/private %{mingw32_libdir}/libssl.a # Win64 -%files -n mingw64-openssl +%files -n mingw64-openssl -f mingw64-openssl.debugfiles %doc build_win64/LICENSE %{mingw64_bindir}/openssl.exe %{mingw64_bindir}/c_rehash @@ -512,6 +516,9 @@ mkdir -m700 $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/CA/private %changelog +* Sat Sep 09 2017 Sandro Mani - 1.0.2h-4 +- Exclude *.debug files from non-debug packages + * Wed Jul 26 2017 Fedora Release Engineering - 1.0.2h-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild