commit 7b7cbed7d5e5a0ec8c68a42e280e8bc74d01a734 Author: Kalev Lember kalev@smartlink.ee Date: Thu May 12 09:53:59 2011 +0300
Don't install private headers, most notably config.h
mingw32-pthreads.spec | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) --- diff --git a/mingw32-pthreads.spec b/mingw32-pthreads.spec index e6dbf82..4b7aaff 100644 --- a/mingw32-pthreads.spec +++ b/mingw32-pthreads.spec @@ -9,7 +9,7 @@
Name: mingw32-pthreads Version: 2.8.0 -Release: 13%{?dist} +Release: 14%{?dist} Summary: MinGW pthread library
%define crazy_version %(echo %{version}|tr . -) @@ -93,7 +93,13 @@ mkdir -p $RPM_BUILD_ROOT%{_mingw32_includedir} install -m 0755 *.dll $RPM_BUILD_ROOT%{_mingw32_bindir} install -m 0644 *.def $RPM_BUILD_ROOT%{_mingw32_bindir} install -m 0644 *.a $RPM_BUILD_ROOT%{_mingw32_libdir} -install -m 0644 *.h $RPM_BUILD_ROOT%{_mingw32_includedir} + +install -m 0644 pthread.h $RPM_BUILD_ROOT%{_mingw32_includedir} +install -m 0644 sched.h $RPM_BUILD_ROOT%{_mingw32_includedir} +install -m 0644 semaphore.h $RPM_BUILD_ROOT%{_mingw32_includedir} + +# Fix up installed pthread.h to not include private config.h +sed -i '/#include "config.h"/d' $RPM_BUILD_ROOT%{_mingw32_includedir}/pthread.h
# Create a symlink from libpthreadGC2.a to libpthread.a because of BZ #498616 ln -s libpthreadGC2.a $RPM_BUILD_ROOT%{_mingw32_libdir}/libpthread.a @@ -117,6 +123,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog +* Thu May 12 2011 Kalev Lember kalev@smartlink.ee - 2.8.0-14 +- Don't install private headers, most notably config.h + * Fri Apr 22 2011 Kalev Lember kalev@smartlink.ee - 2.8.0-13 - Rebuilt for pseudo-reloc version mismatch (#698827)