]> git.pld-linux.org Git - packages/crossmingw32-jasper.git/blame - crossmingw32-jasper.spec
- updated to 2.0.10, fixes:
[packages/crossmingw32-jasper.git] / crossmingw32-jasper.spec
CommitLineData
bfda6270
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
99735e94 3Name: crossmingw32-jasper
6bc1029c
JB
4Version: 2.0.10
5Release: 1
99735e94
JB
6License: BSD-like
7Group: Development/Libraries
6bc1029c
JB
8#Source0Download: http://www.ece.uvic.ca/~frodo/jasper/#download
9Source0: http://www.ece.uvic.ca/~frodo/jasper/software/jasper-%{version}.tar.gz
10# Source0-md5: 06882adcf92524eb493f3cf0d3f62c9a
11Patch0: %{name}-libname.patch
12URL: http://www.ece.uvic.ca/~frodo/jasper/
13BuildRequires: cmake >= 2.8.11
1e64b50d 14BuildRequires: crossmingw32-gcc
99735e94 15BuildRequires: crossmingw32-libjpeg
99735e94 16Requires: crossmingw32-libjpeg
6bc1029c 17Obsoletes: crossmingw32-jasper-static
99735e94
JB
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define no_install_post_strip 1
21
22%define target i386-mingw32
23%define target_platform i386-pc-mingw32
24
25%define _sysprefix /usr
26%define _prefix %{_sysprefix}/%{target}
27%define _libdir %{_prefix}/lib
6bc1029c 28%define _pkgconfigdir %{_prefix}/lib/pkgconfig
99735e94
JB
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,.*
0c098d73
JR
39%define filterout_c -f[-a-z0-9=]*
40%define filterout_cxx -f[-a-z0-9=]*
99735e94
JB
41
42%description
43JasPer is a collection of software (i.e., a library and application
44programs) for the coding and manipulation of images. This software can
45handle image data in a variety of formats. One such format supported
46by JasPer is the JPEG-2000 code stream format defined in ISO/IEC
4715444-1:2000 (but JasPer contains only partial implementation).
48
49This package contains the cross version of library for Win32.
50
51%description -l pl.UTF-8
52JasPer to zestaw oprogramowania (biblioteka i aplikacje) do kodowania
53i obróbki obrazków w różnych formatach. Jednym z nich jest JPEG-2000
54zdefiniowany w ISO/IEC 15444-1:2000 (JasPer zawiera tylko częściową
55implementację tego formatu).
56
57Ten pakiet zawiera wersję skrośną biblioteki dla Win32.
58
99735e94
JB
59%package dll
60Summary: DLL JasPer library for Windows
61Summary(pl.UTF-8): Biblioteka DLL JasPer dla Windows
62Group: Applications/Emulators
63Requires: crossmingw32-libjpeg-dll
64Requires: wine
65
66%description dll
67DLL JasPer library for Windows.
68
69%description dll -l pl.UTF-8
70Biblioteka DLL JasPer dla Windows.
71
72%prep
73%setup -q -n jasper-%{version}
6bc1029c 74%patch0 -p1
99735e94
JB
75
76%build
6bc1029c
JB
77# there is upstream directory named "build", use different name
78install -d builddir
79cd builddir
80# note: build/jasper.pc.in expects CMAKE_INSTALL_INCLUDEDIR and CMAKE_INSTALL_LIBDIR relative to CMAKE_INSTALL_PREFIX
81%cmake .. \
82 -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \
83 -DCMAKE_INSTALL_LIBDIR:PATH=lib \
84 -DCMAKE_SYSTEM_NAME=Windows \
85 -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=FALSE \
86 -DJAS_ENABLE_OPENGL=FALSE \
87 -DJPEG_INCLUDE_DIR:PATH=%{_includedir}
99735e94
JB
88
89%{__make}
90
91%install
92rm -rf $RPM_BUILD_ROOT
93
6bc1029c 94%{__make} -C builddir install \
99735e94
JB
95 DESTDIR=$RPM_BUILD_ROOT
96
97install -d $RPM_BUILD_ROOT%{_dlldir}
6bc1029c 98%{__mv} $RPM_BUILD_ROOT%{_libdir}/*.dll $RPM_BUILD_ROOT%{_dlldir}
99735e94
JB
99
100%if 0%{!?debug:1}
101%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
102%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
103%endif
104
6bc1029c
JB
105%{__rm} $RPM_BUILD_ROOT%{_bindir}/*.exe \
106 $RPM_BUILD_ROOT%{_mandir}/man1/*.1
107%{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/{README,*.pdf,html}
108
99735e94
JB
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112%files
113%defattr(644,root,root,755)
6bc1029c 114%doc ChangeLog LICENSE README doc/jasper.pdf doc/jpeg2000.pdf
99735e94 115%{_libdir}/libjasper.dll.a
99735e94 116%{_includedir}/jasper
6bc1029c 117%{_pkgconfigdir}/jasper.pc
99735e94
JB
118
119%files dll
120%defattr(644,root,root,755)
6bc1029c 121%{_dlldir}/libjasper.dll
This page took 0.064558 seconds and 4 git commands to generate.