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: fbb6f446ea4ed18955e2714934e5b698
11 Patch0: %{_realname}-sec.patch
12 URL: http://www.remotesensing.org/libtiff/
13 BuildRequires: autoconf >= 2.59
14 BuildRequires: automake
15 BuildRequires: crossmingw32-gcc
16 BuildRequires: crossmingw32-libjpeg
17 BuildRequires: crossmingw32-zlib
18 BuildRequires: libtool
19 Requires: crossmingw32-libjpeg
20 Requires: crossmingw32-zlib
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define no_install_post_strip 1
25 %define target i386-mingw32
26 %define target_platform i386-pc-mingw32
27 %define arch %{_prefix}/%{target}
29 %define _sysprefix /usr
30 %define _prefix %{_sysprefix}/%{target}
31 %define _dlldir /usr/share/windows/wine/system
32 %define __cc %{target}-gcc
33 %define __cxx %{target}-g++
36 This package is a library of functions that manipulate TIFF images
37 (cross mingw32 version).
39 %description -l pl.UTF-8
40 Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
41 formacie TIFF (w wersji skrośnej mingw32).
44 Summary: Static libtiff library (cross mingw32 version)
45 Summary(pl.UTF-8): Statyczna biblioteka libtiff (wersja skrośna mingw32)
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
50 Static libtiff library (cross mingw32 version).
52 %description static -l pl.UTF-8
53 Statyczna biblioteka libtiff (wersja skrośna mingw32).
56 Summary: DLL libtiff library for Windows
57 Summary(pl.UTF-8): Biblioteka DLL libtiff dla Windows
58 Group: Applications/Emulators
60 Requires: crossmingw32-libjpeg-dll
61 Requires: crossmingw32-zlib-dll
64 DLL libtiff library for Windows.
66 %description dll -l pl.UTF-8
67 Biblioteka DLL libtiff dla Windows.
70 Summary: libtiff C++ streams library (cross mingw32 version)
71 Summary(pl.UTF-8): Biblioteka strumieni C++ dla libtiff (wersja skrośna mingw32)
72 Group: Development/Libraries
73 Requires: %{name} = %{version}-%{release}
76 libtiff C++ streams library (cross mingw32 version).
78 %description cxx -l pl.UTF-8
79 Biblioteka strumieni C++ dla libtiff (wersja skrośna mingw32).
82 Summary: Static libtiff C++ streams library (cross mingw32 version)
83 Summary(pl.UTF-8): Statyczna biblioteka strumieni C++ dla libtiff (wersja skrośna mingw32)
84 Group: Development/Libraries
85 Requires: %{name}-cxx = %{version}-%{release}
87 %description cxx-static
88 Static libtiff C++ streams library (cross mingw32 version).
90 %description cxx-static -l pl.UTF-8
91 Statyczna biblioteka strumieni C++ dla libtiff (wersja skrośna
95 Summary: DLL libtiff C++ streams library for Windows
96 Summary(pl.UTF-8): Biblioteka DLL strumieni C++ libtiff dla Windows
97 Group: Applications/Emulators
98 Requires: %{name}-dll = %{version}-%{release}
101 DLL libtiff C++ streams library for Windows.
103 %description cxx-dll -l pl.UTF-8
104 Biblioteka DLL strumieni C++ libtiff dla Windows.
107 %setup -q -n tiff-%{version}
110 rm -f m4/{libtool,lt*}.m4
119 lt_cv_deplibs_check_method=pass_all \
126 rm -rf $RPM_BUILD_ROOT
129 DESTDIR=$RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT%{_dlldir}
132 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
135 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
136 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
139 rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc,man}
142 rm -rf $RPM_BUILD_ROOT
145 %defattr(644,root,root,755)
146 %doc COPYRIGHT ChangeLog README TODO
147 %{_libdir}/libtiff.dll.a
148 %{_libdir}/libtiff.la
149 %{_includedir}/tiff*.h
152 %defattr(644,root,root,755)
156 %defattr(644,root,root,755)
157 %{_dlldir}/libtiff-*.dll
160 %defattr(644,root,root,755)
161 %{_libdir}/libtiffxx.dll.a
162 %{_libdir}/libtiffxx.la
163 %{_includedir}/tiffio.hxx
166 %defattr(644,root,root,755)
167 %{_libdir}/libtiffxx.a
170 %defattr(644,root,root,755)
171 %{_dlldir}/libtiffxx-*.dll