Bump all spec releases for mass rebuild to mingw32-gcc 4.4
[fedora-mingw.git] / jasper / mingw32-jasper.spec
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}
6
7 Name:           mingw32-jasper
8 Version:        1.900.1
9 Release:        7%{?dist}
10 Summary:        MinGW Windows Jasper library
11
12 License:        JasPer
13 Group:          Development/Libraries
14
15 URL:            http://www.ece.uvic.ca/~mdadams/jasper/
16 Source0:        http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.zip
17
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
23
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
28
29 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
30 BuildArch:      noarch
31
32 BuildRequires:  mingw32-filesystem >= 23
33 BuildRequires:  mingw32-gcc
34 BuildRequires:  mingw32-binutils
35 BuildRequires:  mingw32-libjpeg
36 BuildRequires:  mingw32-dlfcn
37 BuildRequires:  autoconf
38
39
40 %description
41 MinGW Windows Jasper library.
42
43
44 %prep
45 %setup -q -n jasper-%{version}
46 %patch1 -p1 -b .GL
47 %patch3 -p1 -b .CVE-2007-2721
48
49 %patch1000 -p1 -b .mingw32
50 %patch1001 -p1 -b .sleep
51 %patch1002 -p1 -b .shared
52
53
54 %build
55 autoconf
56 %{_mingw32_configure} --disable-opengl --enable-libjpeg --disable-static
57 make %{?_smp_mflags}
58
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 make DESTDIR=$RPM_BUILD_ROOT install mandir=%{_mingw32_mandir}
64
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/*
68
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73
74 %files
75 %defattr(-,root,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/
85
86
87 %changelog
88 * Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-7
89 - Rebuild for mingw32-gcc 4.4
90
91 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-6
92 - Use _smp_mflags.
93 - Disable static libraries.
94 - Include documentation.
95 - Use the same patches as Fedora native package.
96 - Just run autoconf instead of autoreconf so we don't upgrade libtool.
97 - +BR mingw32-dlfcn.
98 - Don't need the manual pages.
99
100 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-5
101 - Rename mingw -> mingw32.
102
103 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-4
104 - Add overflow patch from rawhide
105
106 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-3
107 - Run autoreconf after changing configure.ac script and add BRs for autotools
108
109 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-2
110 - Enable DLLs.
111 - Remove static libraries.
112
113 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-1
114 - Initial RPM release