From 9e9be21ba60d207d8048f48b7b79940290b58ef8 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 7 Mar 2007 00:09:13 +0000 Subject: [PATCH] - use _dlldir, no strip if debug Changed files: crossmingw32-libjpeg.spec -> 1.12 --- crossmingw32-libjpeg.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crossmingw32-libjpeg.spec b/crossmingw32-libjpeg.spec index 9fe2b4d..6ac76c5 100644 --- a/crossmingw32-libjpeg.spec +++ b/crossmingw32-libjpeg.spec @@ -133,16 +133,18 @@ dlpreopen='' libdir='%{_libdir}' EOF +%if 0%{!?debug:1} %{target}-strip jpeg.dll %{target}-strip -g -R.comment -R.note *.a +%endif %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_prefix}/{include,lib,bin} +install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_dlldir}} install jconfig.h jerror.h jmorecfg.h jpeglib.h jversion.h $RPM_BUILD_ROOT%{_includedir} install *.a $RPM_BUILD_ROOT%{_libdir} -install jpeg.dll $RPM_BUILD_ROOT%{_bindir}/libjpeg.dll +install jpeg.dll $RPM_BUILD_ROOT%{_dlldir}/libjpeg.dll install libjpeg.la $RPM_BUILD_ROOT%{_libdir} %clean @@ -160,4 +162,4 @@ rm -rf $RPM_BUILD_ROOT %files dll %defattr(644,root,root,755) -%{_bindir}/libjpeg.dll +%{_dlldir}/libjpeg.dll -- 2.43.0