1 %include /usr/lib/rpm/mingw-defs
6 Summary: MinGW Windows Libjpeg library
9 URL: http://www.ijg.org/
10 Group: Development/Libraries
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12 Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.bz2
15 Patch1: jpeg-c++.patch
16 Patch4: libjpeg-cflags.patch
17 Patch5: libjpeg-buf-oflo.patch
18 Patch6: libjpeg-autoconf.patch
20 Patch100: jpeg-mingw.patch
24 BuildRequires: mingw-filesystem >= 19
25 BuildRequires: mingw-gcc
26 BuildRequires: mingw-binutils
27 BuildRequires: mingw-libpng
28 BuildRequires: mingw-zlib
29 BuildRequires: autoconf, libtool
32 MinGW Windows Libjpeg library.
39 %patch4 -p1 -b .cflags
45 # For long-obsolete reasons, libjpeg 6b doesn't ship with a configure.in.
46 # We need to re-autoconf though, in order to update libtool support,
47 # so supply configure.in.
48 cp %{SOURCE1} configure.in
50 # libjpeg 6b includes a horribly obsolete version of libtool.
51 # Blow it away and replace with build system's version.
52 rm -f config.guess config.sub ltmain.sh ltconfig aclocal.m4
53 cp /usr/share/aclocal/libtool.m4 aclocal.m4
58 %{_mingw_configure} --enable-shared --enable-static
59 make libdir=%{_mingw_libdir}
63 rm -rf $RPM_BUILD_ROOT
65 mkdir -p $RPM_BUILD_ROOT%{_mingw_bindir}
66 mkdir -p $RPM_BUILD_ROOT%{_mingw_includedir}
67 mkdir -p $RPM_BUILD_ROOT%{_mingw_libdir}
68 mkdir -p $RPM_BUILD_ROOT%{_mingw_mandir}/man1
69 mkdir -p $RPM_BUILD_ROOT%{_mingw_prefix}/man/man1
71 make prefix=$RPM_BUILD_ROOT%{_mingw_prefix} install
73 # Work around the broken makefiles...
74 mv $RPM_BUILD_ROOT%{_mingw_prefix}/man/man1/*.1 $RPM_BUILD_ROOT%{_mingw_mandir}/man1
78 rm -rf $RPM_BUILD_ROOT
83 %{_mingw_bindir}/cjpeg
84 %{_mingw_bindir}/djpeg
85 %{_mingw_bindir}/jpegtran
86 %{_mingw_bindir}/rdjpgcom
87 %{_mingw_bindir}/wrjpgcom
88 %{_mingw_bindir}/libjpeg-62.dll
89 %{_mingw_includedir}/jconfig.h
90 %{_mingw_includedir}/jerror.h
91 %{_mingw_includedir}/jmorecfg.h
92 %{_mingw_includedir}/jpeglib.h
93 %{_mingw_libdir}/libjpeg.a
94 %{_mingw_libdir}/libjpeg.dll.a
95 %{_mingw_libdir}/libjpeg.la
96 %{_mingw_mandir}/man1/cjpeg.1*
97 %{_mingw_mandir}/man1/djpeg.1*
98 %{_mingw_mandir}/man1/jpegtran.1*
99 %{_mingw_mandir}/man1/rdjpgcom.1*
100 %{_mingw_mandir}/man1/wrjpgcom.1*
103 * Tue Sep 9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.18.0-1
104 - Initial RPM release