Add mingw_bindir to /usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:...
[fedora-mingw.git] / jasper / mingw-jasper.spec
1 %define __strip %{_mingw_strip}
2 %define __objdump %{_mingw_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw_findrequires}
5 %define __find_provides %{_mingw_findprovides}
6
7 Name:           mingw-jasper
8 Version:        1.900.1
9 Release:        3%{?dist}
10 Summary:        MinGW Windows Jasper library
11
12 License:        JasPer
13 URL:            http://www.ece.uvic.ca/~mdadams/jasper/
14 Source0:        http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.zip
15 Patch1:         jasper-1.900.1-sleep.patch
16 Patch2:         jasper-1.900.1-mingw.patch
17 Patch3:         jasper-1.900.1-enable-shared.patch
18 Group:          Development/Libraries
19 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20
21 BuildArch:      noarch
22
23 BuildRequires:  mingw-filesystem >= 23
24 BuildRequires:  mingw-gcc
25 BuildRequires:  mingw-binutils
26 BuildRequires:  mingw-libjpeg
27 BuildRequires:  autoconf automake libtool
28
29 %description
30 MinGW Windows Jasper library.
31
32
33 %prep
34 %setup -q -n jasper-%{version}
35 %patch1 -p1
36 %patch2 -p1
37 %patch3 -p1
38
39
40 %build
41 autoreconf
42 %{_mingw_configure} --disable-opengl --enable-libjpeg
43 make
44
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 make DESTDIR=$RPM_BUILD_ROOT install mandir=%{_mingw_mandir}
50
51 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libjasper.a
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56
57 %files
58 %defattr(-,root,root)
59 # XXX dlls
60 %{_mingw_bindir}/i686-pc-mingw32-imgcmp.exe
61 %{_mingw_bindir}/i686-pc-mingw32-imginfo.exe
62 %{_mingw_bindir}/i686-pc-mingw32-jasper.exe
63 %{_mingw_bindir}/i686-pc-mingw32-tmrdemo.exe
64 %{_mingw_bindir}/libjasper-1.dll
65 %{_mingw_libdir}/libjasper.dll.a
66 %{_mingw_libdir}/libjasper.la
67 %{_mingw_includedir}/jasper/
68 %{_mingw_mandir}/man1/i686-pc-mingw32-imgcmp.1*
69 %{_mingw_mandir}/man1/i686-pc-mingw32-imginfo.1*
70 %{_mingw_mandir}/man1/i686-pc-mingw32-jasper.1*
71 %{_mingw_mandir}/man1/i686-pc-mingw32-jiv.1*
72
73 %changelog
74 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-3
75 - Run autoreconf after changing configure.ac script and add BRs for autotools
76
77 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.900.1-2
78 - Enable DLLs.
79 - Remove static libraries.
80
81 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.900.1-1
82 - Initial RPM release