1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
10 Summary: MinGW Windows Jasper library
13 Group: Development/Libraries
15 URL: http://www.ece.uvic.ca/~mdadams/jasper/
16 Source0: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.zip
18 # Patches from Fedora native package.
19 Patch1: jasper-1.701.0-GL.patch
20 # Note patch2 appears in native package, but is not applied:
21 #Patch2: jasper-1.701.0-GL-ac.patch
22 Patch3: patch-libjasper-stepsizes-overflow.diff
24 # MinGW-specific patches.
25 Patch1000: jasper-1.900.1-mingw32.patch
26 Patch1001: jasper-1.900.1-sleep.patch
27 Patch1002: jasper-1.900.1-enable-shared.patch
29 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
32 BuildRequires: mingw32-filesystem >= 23
33 BuildRequires: mingw32-gcc
34 BuildRequires: mingw32-binutils
35 BuildRequires: mingw32-libjpeg
36 BuildRequires: mingw32-dlfcn
37 BuildRequires: autoconf
41 MinGW Windows Jasper library.
45 %setup -q -n jasper-%{version}
47 %patch3 -p1 -b .CVE-2007-2721
49 %patch1000 -p1 -b .mingw32
50 %patch1001 -p1 -b .sleep
51 %patch1002 -p1 -b .shared
56 %{_mingw32_configure} --disable-opengl --enable-libjpeg --disable-static
61 rm -rf $RPM_BUILD_ROOT
63 make DESTDIR=$RPM_BUILD_ROOT install mandir=%{_mingw32_mandir}
65 # Remove the manual pages - don't duplicate documentation which
66 # is in the native Fedora package.
67 rm $RPM_BUILD_ROOT%{_mingw32_mandir}/man1/*
71 rm -rf $RPM_BUILD_ROOT
76 %doc COPYRIGHT LICENSE NEWS README
77 %{_mingw32_bindir}/i686-pc-mingw32-imgcmp.exe
78 %{_mingw32_bindir}/i686-pc-mingw32-imginfo.exe
79 %{_mingw32_bindir}/i686-pc-mingw32-jasper.exe
80 %{_mingw32_bindir}/i686-pc-mingw32-tmrdemo.exe
81 %{_mingw32_bindir}/libjasper-1.dll
82 %{_mingw32_libdir}/libjasper.dll.a
83 %{_mingw32_libdir}/libjasper.la
84 %{_mingw32_includedir}/jasper/
88 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-6
90 - Disable static libraries.
91 - Include documentation.
92 - Use the same patches as Fedora native package.
93 - Just run autoconf instead of autoreconf so we don't upgrade libtool.
95 - Don't need the manual pages.
97 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-5
98 - Rename mingw -> mingw32.
100 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-4
101 - Add overflow patch from rawhide
103 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-3
104 - Run autoreconf after changing configure.ac script and add BRs for autotools
106 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-2
108 - Remove static libraries.
110 * Tue Sep 9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-1
111 - Initial RPM release