1 Summary: Library for handling TIFF files - cross Mingw32 version
2 Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie TIFF - wersja skrośna Mingw32
3 %define realname libtiff
4 Name: crossmingw32-%{realname}
8 Group: Development/Libraries
9 Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
10 # Source0-md5: 2006c1bdd12644dbf02956955175afd6
11 Patch0: %{realname}-sec.patch
12 Patch1: %{realname}-glut.patch
13 Patch2: %{realname}-CVE-2009-2285.patch
14 URL: http://www.remotesensing.org/libtiff/
15 BuildRequires: autoconf >= 2.59
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: crossmingw32-gcc-c++
18 BuildRequires: crossmingw32-libjpeg
19 BuildRequires: crossmingw32-zlib
20 BuildRequires: libtool
21 Requires: crossmingw32-libjpeg
22 Requires: crossmingw32-zlib
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define no_install_post_strip 1
27 %define target i386-mingw32
28 %define target_platform i386-pc-mingw32
30 %define _sysprefix /usr
31 %define _prefix %{_sysprefix}/%{target}
32 %define _libdir %{_prefix}/lib
33 %define _dlldir /usr/share/windows/wine/system
34 %define __cc %{target}-gcc
35 %define __cxx %{target}-g++
38 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
41 # -z options are invalid for mingw linker
42 %define filterout_ld -Wl,-z,.*
45 This package is a library of functions that manipulate TIFF images
46 (cross mingw32 version).
48 %description -l pl.UTF-8
49 Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
50 formacie TIFF (w wersji skrośnej mingw32).
53 Summary: Static libtiff library (cross mingw32 version)
54 Summary(pl.UTF-8): Statyczna biblioteka libtiff (wersja skrośna mingw32)
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
59 Static libtiff library (cross mingw32 version).
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libtiff (wersja skrośna mingw32).
65 Summary: DLL libtiff library for Windows
66 Summary(pl.UTF-8): Biblioteka DLL libtiff dla Windows
67 Group: Applications/Emulators
69 Requires: crossmingw32-libjpeg-dll
70 Requires: crossmingw32-zlib-dll
73 DLL libtiff library for Windows.
75 %description dll -l pl.UTF-8
76 Biblioteka DLL libtiff dla Windows.
79 Summary: libtiff C++ streams library (cross mingw32 version)
80 Summary(pl.UTF-8): Biblioteka strumieni C++ dla libtiff (wersja skrośna mingw32)
81 Group: Development/Libraries
82 Requires: %{name} = %{version}-%{release}
85 libtiff C++ streams library (cross mingw32 version).
87 %description cxx -l pl.UTF-8
88 Biblioteka strumieni C++ dla libtiff (wersja skrośna mingw32).
91 Summary: Static libtiff C++ streams library (cross mingw32 version)
92 Summary(pl.UTF-8): Statyczna biblioteka strumieni C++ dla libtiff (wersja skrośna mingw32)
93 Group: Development/Libraries
94 Requires: %{name}-cxx = %{version}-%{release}
96 %description cxx-static
97 Static libtiff C++ streams library (cross mingw32 version).
99 %description cxx-static -l pl.UTF-8
100 Statyczna biblioteka strumieni C++ dla libtiff (wersja skrośna
104 Summary: DLL libtiff C++ streams library for Windows
105 Summary(pl.UTF-8): Biblioteka DLL strumieni C++ libtiff dla Windows
106 Group: Applications/Emulators
107 Requires: %{name}-dll = %{version}-%{release}
110 DLL libtiff C++ streams library for Windows.
112 %description cxx-dll -l pl.UTF-8
113 Biblioteka DLL strumieni C++ libtiff dla Windows.
116 %setup -q -n tiff-%{version}
121 %{__rm} m4/{libtool,lt*}.m4
130 lt_cv_deplibs_check_method=pass_all \
137 rm -rf $RPM_BUILD_ROOT
140 DESTDIR=$RPM_BUILD_ROOT
142 install -d $RPM_BUILD_ROOT%{_dlldir}
143 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
146 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
147 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
150 rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc,man}
153 rm -rf $RPM_BUILD_ROOT
156 %defattr(644,root,root,755)
157 %doc COPYRIGHT ChangeLog README TODO
158 %{_libdir}/libtiff.dll.a
159 %{_libdir}/libtiff.la
160 %{_includedir}/tiff*.h
163 %defattr(644,root,root,755)
167 %defattr(644,root,root,755)
168 %{_dlldir}/libtiff-*.dll
171 %defattr(644,root,root,755)
172 %{_libdir}/libtiffxx.dll.a
173 %{_libdir}/libtiffxx.la
174 %{_includedir}/tiffio.hxx
177 %defattr(644,root,root,755)
178 %{_libdir}/libtiffxx.a
181 %defattr(644,root,root,755)
182 %{_dlldir}/libtiffxx-*.dll