Merge heads
[fedora-mingw.git] / jasper / mingw-jasper.spec
1 %include /usr/lib/rpm/mingw-defs
2
3 Name:           mingw-jasper
4 Version:        1.900.1
5 Release:        1%{?dist}
6 Summary:        MinGW Windows Jasper library
7
8 License: JasPer
9 URL:     http://www.ece.uvic.ca/~mdadams/jasper/
10 Source0: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.zip
11 Patch1: jasper-%{version}-sleep.patch
12 Patch2: jasper-%{version}-mingw.patch
13 Group:          Development/Libraries
14 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15
16 BuildArch:      noarch
17
18 BuildRequires:  mingw-filesystem >= 19
19 BuildRequires:  mingw-gcc
20 BuildRequires:  mingw-binutils
21 BuildRequires:  mingw-libjpeg
22
23 %description
24 MinGW Windows Jasper library.
25
26
27 %prep
28 %setup -q -n jasper-%{version}
29 %patch1 -p1
30 %patch2 -p1
31
32 %build
33 %{_mingw_configure} --disable-opengl --enable-libjpeg
34 make
35
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 make DESTDIR=$RPM_BUILD_ROOT install mandir=%{_mingw_mandir}
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45
46 %files
47 %defattr(-,root,root)
48 # XXX dlls
49 %{_mingw_bindir}/i686-pc-mingw32-imgcmp.exe
50 %{_mingw_bindir}/i686-pc-mingw32-imginfo.exe
51 %{_mingw_bindir}/i686-pc-mingw32-jasper.exe
52 %{_mingw_bindir}/i686-pc-mingw32-tmrdemo.exe
53 %{_mingw_includedir}/jasper/
54 %{_mingw_libdir}/libjasper.a
55 %{_mingw_libdir}/libjasper.la
56 %{_mingw_mandir}/man1/i686-pc-mingw32-imgcmp.1*
57 %{_mingw_mandir}/man1/i686-pc-mingw32-imginfo.1*
58 %{_mingw_mandir}/man1/i686-pc-mingw32-jasper.1*
59 %{_mingw_mandir}/man1/i686-pc-mingw32-jiv.1*
60
61 %changelog
62 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.18.0-1
63 - Initial RPM release