From dd9926452862b8f6886f6e93e21349d23a2d6759 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] - Disable static libraries. - Use _smp_mflags. - Update for new libtool 2. - +BR mingw32-dlfcn. - Added documentation (README includes the license). --- libjpeg/mingw32-libjpeg.spec | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/libjpeg/mingw32-libjpeg.spec b/libjpeg/mingw32-libjpeg.spec index 14b3ddb..a87dc93 100644 --- a/libjpeg/mingw32-libjpeg.spec +++ b/libjpeg/mingw32-libjpeg.spec @@ -26,12 +26,14 @@ Patch100: jpeg-mingw32.patch BuildArch: noarch BuildRequires: mingw32-filesystem >= 23 +BuildRequires: mingw32-dlfcn BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils BuildRequires: mingw32-libpng BuildRequires: mingw32-zlib BuildRequires: autoconf, libtool + %description MinGW Windows Libjpeg library. @@ -54,10 +56,29 @@ cp %{SOURCE1} configure.in # libjpeg 6b includes a horribly obsolete version of libtool. # Blow it away and replace with build system's version. rm -f config.guess config.sub ltmain.sh ltconfig aclocal.m4 -cp /usr/share/aclocal/libtool.m4 aclocal.m4 + +cat /usr/share/aclocal/libtool.m4 > aclocal.m4 +# If this is the new libtool 2.x, we need to append some additional +# files. Rather than hard-coding a version of libtool, just test +# if the files exist and append them: +for f in \ + /usr/share/aclocal/ltoptions.m4 \ + /usr/share/aclocal/ltversion.m4 \ + /usr/share/aclocal/ltsugar.m4 \ + /usr/share/aclocal/lt~obsolete.m4; do + if [ -f $f ]; then cat $f >> aclocal.m4; fi +done + +# Now we can run libtool. libtoolize + +# Automake can fail - we only need this to get config.sub and config.guess. +automake -a ||: + +# Finally because we replaced configure.in: autoconf + %build %{_mingw32_configure} --enable-shared --disable-static make %{?_smp_mflags} @@ -83,6 +104,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) +%doc README %{_mingw32_bindir}/cjpeg %{_mingw32_bindir}/djpeg %{_mingw32_bindir}/jpegtran @@ -101,6 +123,9 @@ rm -rf $RPM_BUILD_ROOT * Fri Jan 23 2009 Richard W.M. Jones - 6b-7 - Disable static libraries. - Use _smp_mflags. +- Update for new libtool 2. +- +BR mingw32-dlfcn. +- Added documentation (README includes the license). * Thu Nov 20 2008 Richard W.M. Jones - 6b-6 - Don't set libdir in the make step. -- 1.8.3.1