X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=libjpeg%2Fmingw32-libjpeg.spec;fp=libjpeg%2Fmingw32-libjpeg.spec;h=0000000000000000000000000000000000000000;hb=317e202dae860d8c9de5489ac998905edb93622c;hp=c5213d97321f9a036cedd16057519dd8cee2c062;hpb=25a53964869082212b53424a7a3d78f6ff37850e;p=fedora-mingw.git diff --git a/libjpeg/mingw32-libjpeg.spec b/libjpeg/mingw32-libjpeg.spec deleted file mode 100644 index c5213d9..0000000 --- a/libjpeg/mingw32-libjpeg.spec +++ /dev/null @@ -1,170 +0,0 @@ -%define __strip %{_mingw32_strip} -%define __objdump %{_mingw32_objdump} -%define _use_internal_dependency_generator 0 -%define __find_requires %{_mingw32_findrequires} -%define __find_provides %{_mingw32_findprovides} - -# Build the programs like cjpeg, etc. -# https://bugzilla.redhat.com/show_bug.cgi?id=467401c7 -%define build_programs 0 - -Name: mingw32-libjpeg -Version: 6b -Release: 8%{?dist} -Summary: MinGW Windows Libjpeg library - -License: IJG -URL: http://www.ijg.org/ -Group: Development/Libraries -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz -Source1: configure.in - -Patch1: jpeg-c++.patch -Patch4: libjpeg-cflags.patch -Patch5: libjpeg-buf-oflo.patch -Patch6: libjpeg-autoconf.patch - -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. - - -%prep -%setup -q -n jpeg-6b - -%patch1 -p1 -b .c++ -%patch4 -p1 -b .cflags -%patch5 -p1 -b .oflo -%patch6 -p1 - -%patch100 -p1 - -# For long-obsolete reasons, libjpeg 6b doesn't ship with a configure.in. -# We need to re-autoconf though, in order to update libtool support, -# so supply configure.in. -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 - -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} - - -%install -rm -rf $RPM_BUILD_ROOT - -mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir} -mkdir -p $RPM_BUILD_ROOT%{_mingw32_includedir} -mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir} -mkdir -p $RPM_BUILD_ROOT%{_mingw32_mandir}/man1 - -%{_mingw32_makeinstall} - -# Remove manual pages which duplicate Fedora native. -rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir} - -pushd $RPM_BUILD_ROOT%{_mingw32_bindir} -# Rename or remove win32 native binaries -for i in cjpeg djpeg jpegtran rdjpgcom wrjpgcom ; do -%if %build_programs - mv $i $i.exe -%else - rm $i -%endif -done -popd - - -%clean -rm -rf $RPM_BUILD_ROOT - - -%files -%defattr(-,root,root) -%doc README -%if %build_programs -%{_mingw32_bindir}/cjpeg.exe -%{_mingw32_bindir}/djpeg.exe -%{_mingw32_bindir}/jpegtran.exe -%{_mingw32_bindir}/rdjpgcom.exe -%{_mingw32_bindir}/wrjpgcom.exe -%endif -%{_mingw32_bindir}/libjpeg-62.dll -%{_mingw32_includedir}/jconfig.h -%{_mingw32_includedir}/jerror.h -%{_mingw32_includedir}/jmorecfg.h -%{_mingw32_includedir}/jpeglib.h -%{_mingw32_libdir}/libjpeg.dll.a -%{_mingw32_libdir}/libjpeg.la - - -%changelog -* Wed Jan 28 2009 Richard W.M. Jones - 6b-8 -- Exclude the binaries. -- Rename the binaries to *.exe (Levente Farkas). - -* 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. - -* Wed Sep 24 2008 Richard W.M. Jones - 6b-5 -- Rename mingw -> mingw32. - -* Mon Sep 22 2008 Daniel P. Berrange - 6b-4 -- Switch to tar.bz2 source, and rename configure.in - -* Sun Sep 21 2008 Daniel P. Berrange - 6b-3 -- Fix URL. -- Remove manpages which duplicate Fedora native. - -* Wed Sep 10 2008 Daniel P. Berrange - 6b-2 -- Rename configure.in with a prefix. -- Remove static library. - -* Tue Sep 9 2008 Daniel P. Berrange - 6b-1 -- Initial RPM release