Tiny fix to specfile.
[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:        6%{?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 Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-6
89 - Use _smp_mflags.
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.
94 - +BR mingw32-dlfcn.
95 - Don't need the manual pages.
96
97 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-5
98 - Rename mingw -> mingw32.
99
100 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-4
101 - Add overflow patch from rawhide
102
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
105
106 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-2
107 - Enable DLLs.
108 - Remove static libraries.
109
110 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-1
111 - Initial RPM release