1 Summary: JasPer library for images manipulation - Mingw32 cross version
2 Summary(pl.UTF-8): Biblioteka JasPer do obróbki obrazów - wersja skrośna dla Mingw32
3 Name: crossmingw32-jasper
7 Group: Development/Libraries
8 Source0: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.zip
9 # Source0-md5: a342b2b4495b3e1394e161eb5d85d754
10 URL: http://www.ece.uvic.ca/~mdadams/jasper/
11 BuildRequires: autoconf >= 2.59
12 BuildRequires: automake
13 BuildRequires: crossmingw32-gcc
14 BuildRequires: crossmingw32-libjpeg
15 BuildRequires: libtool
16 BuildRequires: sed >= 4.0
18 Requires: crossmingw32-libjpeg
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define no_install_post_strip 1
23 %define target i386-mingw32
24 %define target_platform i386-pc-mingw32
26 %define _sysprefix /usr
27 %define _prefix %{_sysprefix}/%{target}
28 %define _libdir %{_prefix}/lib
29 %define _dlldir /usr/share/wine/windows/system
30 %define __cc %{target}-gcc
31 %define __cxx %{target}-g++
34 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
37 # -z options are invalid for mingw linker
38 %define filterout_ld -Wl,-z,.*
41 JasPer is a collection of software (i.e., a library and application
42 programs) for the coding and manipulation of images. This software can
43 handle image data in a variety of formats. One such format supported
44 by JasPer is the JPEG-2000 code stream format defined in ISO/IEC
45 15444-1:2000 (but JasPer contains only partial implementation).
47 This package contains the cross version of library for Win32.
49 %description -l pl.UTF-8
50 JasPer to zestaw oprogramowania (biblioteka i aplikacje) do kodowania
51 i obróbki obrazków w różnych formatach. Jednym z nich jest JPEG-2000
52 zdefiniowany w ISO/IEC 15444-1:2000 (JasPer zawiera tylko częściową
53 implementację tego formatu).
55 Ten pakiet zawiera wersję skrośną biblioteki dla Win32.
58 Summary: Static JasPer library (cross mingw32 version)
59 Summary(pl.UTF-8): Biblioteka statyczna JasPer (wersja skrośna ming32)
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
64 Static JasPer library (cross mingw32 version).
66 %description static -l pl.UTF-8
67 Biblioteka statyczna JasPer (wersja skrośna ming32).
70 Summary: DLL JasPer library for Windows
71 Summary(pl.UTF-8): Biblioteka DLL JasPer dla Windows
72 Group: Applications/Emulators
73 Requires: crossmingw32-libjpeg-dll
77 DLL JasPer library for Windows.
79 %description dll -l pl.UTF-8
80 Biblioteka DLL JasPer dla Windows.
83 %setup -q -n jasper-%{version}
85 # don't build apps (and trmdemo uses sleep() not present in mingw32)
86 sed -i -e 's/^SUBDIRS =.*/SUBDIRS = libjasper/' src/Makefile.am
87 sed -i -e 's/^AM_DISABLE_SHARED/AC_LIBTOOL_WIN32_DLL/' configure.ac
88 sed -i -e 's/^libjasper_la_LDFLAGS = /&-no-undefined /' src/libjasper/Makefile.am
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_dlldir}
111 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
114 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
115 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
119 rm -rf $RPM_BUILD_ROOT
122 %defattr(644,root,root,755)
123 %doc LICENSE NEWS README doc/jasper.pdf doc/jpeg2000.pdf
124 %{_libdir}/libjasper.dll.a
125 %{_libdir}/libjasper.la
126 %{_includedir}/jasper
129 %defattr(644,root,root,755)
130 %{_libdir}/libjasper.a
133 %defattr(644,root,root,755)
134 %{_dlldir}/libjasper-*.dll