X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=libjpeg%2Fmingw32-libjpeg.spec;h=a87dc93bc162ebed8824d08d937e67c2d977871d;hb=dd9926452862b8f6886f6e93e21349d23a2d6759;hp=3451817411d8e0b462a59eda37c1dd463deee35e;hpb=2c1e54c68e8530de480d93e7122c2dd1d5077222;p=fedora-mingw.git diff --git a/libjpeg/mingw32-libjpeg.spec b/libjpeg/mingw32-libjpeg.spec index 3451817..a87dc93 100644 --- a/libjpeg/mingw32-libjpeg.spec +++ b/libjpeg/mingw32-libjpeg.spec @@ -6,7 +6,7 @@ Name: mingw32-libjpeg Version: 6b -Release: 6%{?dist} +Release: 7%{?dist} Summary: MinGW Windows Libjpeg library License: IJG @@ -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,13 +56,32 @@ 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 --enable-static -make +%{_mingw32_configure} --enable-shared --disable-static +make %{?_smp_mflags} %install @@ -73,9 +94,6 @@ mkdir -p $RPM_BUILD_ROOT%{_mingw32_mandir}/man1 %{_mingw32_makeinstall} -# Remove static library. -rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libjpeg.a - # Remove manual pages which duplicate Fedora native. rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir} @@ -86,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 +120,13 @@ rm -rf $RPM_BUILD_ROOT %changelog +* 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. - Fix path to mandir.