3 %bcond_without opengl # do not build OpenGL viewer
5 Summary: Library for handling TIFF files - cross Mingw32 version
6 Summary(de.UTF-8):Library zum Verwalten von TIFF-Dateien
7 Summary(fr.UTF-8):Bibliothèque de gestion des fichiers TIFF - wersja skrośna Mingw32
8 Summary(pl.UTF-8):Bibliteka do manipulacji plikami w formacie TIFF
9 Summary(tr.UTF-8):TIFF dosyalarını işleme kitaplığı
10 %define _realname libtiff
11 Name: crossmingw32-%{_realname}
16 Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
17 # Source0-md5: fbb6f446ea4ed18955e2714934e5b698
18 Patch0: %{_realname}-sec.patch
19 URL: http://www.remotesensing.org/libtiff/
20 %{?with_opengl:BuildRequires: OpenGL-glut-devel}
21 BuildRequires: autoconf >= 2.59
22 BuildRequires: automake
23 BuildRequires: crossmingw32-libjpeg
24 BuildRequires: crossmingw32-zlib
25 BuildRequires: libtool
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _noautoreqdep libGL.so.1 libGLU.so.1
30 %define no_install_post_strip 1
32 %define target i386-mingw32
33 %define target_platform i386-pc-mingw32
34 %define arch %{_prefix}/%{target}
35 %define gccarch %{_prefix}/lib/gcc-lib/%{target}
36 %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
38 %define _sysprefix /usr
39 %define _prefix %{_sysprefix}/%{target}
40 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
41 %define __cc %{target}-gcc
42 %define __cxx %{target}-g++
45 This package is a library of functions that manipulate TIFF images.
47 %description -l de.UTF-8
48 Eine Library von Funktionen zur Manipulation von TIFFs.
50 %description -l fr.UTF-8
51 Bibliothèque de fonctions pour manipuler des images TIFF.
53 %description -l pl.UTF-8
54 Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
57 %description -l tr.UTF-8
58 Bu paket TIFF resimlerini işleyen fonksiyonlardan oluşan bir
62 Summary: libtiff C++ streams library
63 Summary(pl.UTF-8):Biblioteka strumieni C++ dla libtiff
65 Requires: %{name} = %{version}-%{release}
68 libtiff C++ streams library.
70 %description cxx -l pl.UTF-8
71 Biblioteka strumieni C++ dla libtiff.
74 %setup -q -n tiff-%{version}
78 rm -f m4/{libtool,lt*}.m4
81 export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
89 RANLIB="%{target}-ranlib" \
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir},%{_mandir}/man1}
100 DESTDIR=$RPM_BUILD_ROOT
102 rm -rf html{,/*}/Makefile* $RPM_BUILD_ROOT%{_docdir}/tiff-%{version}
105 rm -rf $RPM_BUILD_ROOT
108 %defattr(644,root,root,755)
109 %doc COPYRIGHT ChangeLog README TODO
110 %{_libdir}/libtiff.la
112 %{_includedir}/tiff*.h
115 %defattr(644,root,root,755)
116 %{_libdir}/libtiffxx.la
117 %{_libdir}/libtiffxx.a
118 %{_includedir}/tiffio.hxx