Exclude *.debug files from non-debug packages
This commit is contained in:
parent
57c011d77a
commit
dd67f499fc
@ -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 <manisandro@gmail.com> - 1.0.2h-4
|
||||
- Exclude *.debug files from non-debug packages
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2h-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user