]> git.pld-linux.org Git - packages/crossmingw32-jasper.git/blob - crossmingw32-jasper.spec
- BR: crossmingw32-gcc
[packages/crossmingw32-jasper.git] / crossmingw32-jasper.spec
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
4 Version:        1.900.1
5 Release:        2
6 License:        BSD-like
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
17 BuildRequires:  unzip
18 Requires:       crossmingw32-libjpeg
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         no_install_post_strip   1
22
23 %define         target                  i386-mingw32
24 %define         target_platform         i386-pc-mingw32
25
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++
32
33 %ifnarch %{ix86}
34 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
35 %define         optflags        -O2
36 %endif
37 # -z options are invalid for mingw linker
38 %define         filterout_ld    -Wl,-z,.*
39
40 %description
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).
46
47 This package contains the cross version of library for Win32.
48
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).
54
55 Ten pakiet zawiera wersję skrośną biblioteki dla Win32.
56
57 %package static
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}
62
63 %description static
64 Static JasPer library (cross mingw32 version).
65
66 %description static -l pl.UTF-8
67 Biblioteka statyczna JasPer (wersja skrośna ming32).
68
69 %package dll
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
74 Requires:       wine
75
76 %description dll
77 DLL JasPer library for Windows.
78
79 %description dll -l pl.UTF-8
80 Biblioteka DLL JasPer dla Windows.
81
82 %prep
83 %setup -q -n jasper-%{version}
84
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
89
90 %build
91 %{__libtoolize}
92 %{__aclocal}
93 %{__autoconf}
94 %{__autoheader}
95 %{__automake}
96 %configure \
97         --target=%{target} \
98         --host=%{target} \
99         --disable-opengl \
100         --enable-shared
101
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 install -d $RPM_BUILD_ROOT%{_dlldir}
111 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
112
113 %if 0%{!?debug:1}
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
116 %endif
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %files
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
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/libjasper.a
131
132 %files dll
133 %defattr(644,root,root,755)
134 %{_dlldir}/libjasper-*.dll
This page took 0.072607 seconds and 3 git commands to generate.