]> git.pld-linux.org Git - packages/crossmingw32-jasper.git/blame - crossmingw32-jasper.spec
- BR: crossmingw32-gcc
[packages/crossmingw32-jasper.git] / crossmingw32-jasper.spec
CommitLineData
99735e94
JB
1Summary: JasPer library for images manipulation - Mingw32 cross version
2Summary(pl.UTF-8): Biblioteka JasPer do obróbki obrazów - wersja skrośna dla Mingw32
3Name: crossmingw32-jasper
4Version: 1.900.1
c4e2dba3 5Release: 2
99735e94
JB
6License: BSD-like
7Group: Development/Libraries
8Source0: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.zip
9# Source0-md5: a342b2b4495b3e1394e161eb5d85d754
10URL: http://www.ece.uvic.ca/~mdadams/jasper/
11BuildRequires: autoconf >= 2.59
12BuildRequires: automake
1e64b50d 13BuildRequires: crossmingw32-gcc
99735e94
JB
14BuildRequires: crossmingw32-libjpeg
15BuildRequires: libtool
16BuildRequires: sed >= 4.0
17BuildRequires: unzip
18Requires: crossmingw32-libjpeg
19BuildRoot: %{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
41JasPer is a collection of software (i.e., a library and application
42programs) for the coding and manipulation of images. This software can
43handle image data in a variety of formats. One such format supported
44by JasPer is the JPEG-2000 code stream format defined in ISO/IEC
4515444-1:2000 (but JasPer contains only partial implementation).
46
47This package contains the cross version of library for Win32.
48
49%description -l pl.UTF-8
50JasPer to zestaw oprogramowania (biblioteka i aplikacje) do kodowania
51i obróbki obrazków w różnych formatach. Jednym z nich jest JPEG-2000
52zdefiniowany w ISO/IEC 15444-1:2000 (JasPer zawiera tylko częściową
53implementację tego formatu).
54
55Ten pakiet zawiera wersję skrośną biblioteki dla Win32.
56
57%package static
58Summary: Static JasPer library (cross mingw32 version)
59Summary(pl.UTF-8): Biblioteka statyczna JasPer (wersja skrośna ming32)
60Group: Development/Libraries
61Requires: %{name} = %{version}-%{release}
62
63%description static
64Static JasPer library (cross mingw32 version).
65
66%description static -l pl.UTF-8
67Biblioteka statyczna JasPer (wersja skrośna ming32).
68
69%package dll
70Summary: DLL JasPer library for Windows
71Summary(pl.UTF-8): Biblioteka DLL JasPer dla Windows
72Group: Applications/Emulators
73Requires: crossmingw32-libjpeg-dll
74Requires: wine
75
76%description dll
77DLL JasPer library for Windows.
78
79%description dll -l pl.UTF-8
80Biblioteka 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)
86sed -i -e 's/^SUBDIRS =.*/SUBDIRS = libjasper/' src/Makefile.am
87sed -i -e 's/^AM_DISABLE_SHARED/AC_LIBTOOL_WIN32_DLL/' configure.ac
88sed -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} \
1e64b50d 99 --disable-opengl \
99735e94
JB
100 --enable-shared
101
102%{__make}
103
104%install
105rm -rf $RPM_BUILD_ROOT
106
107%{__make} install \
108 DESTDIR=$RPM_BUILD_ROOT
109
110install -d $RPM_BUILD_ROOT%{_dlldir}
111mv -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
119rm -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.092028 seconds and 4 git commands to generate.