From a34290f122750339a8b6d69ddd87f66d6f9d6892 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 2 Jun 2006 14:28:38 +0000 Subject: [PATCH] Fix multilib --- libtiff.spec | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/libtiff.spec b/libtiff.spec index f6f5d7d..00653fa 100644 --- a/libtiff.spec +++ b/libtiff.spec @@ -1,7 +1,7 @@ Summary: Library of functions for manipulating TIFF format image files Name: libtiff Version: 3.8.2 -Release: 3 +Release: 4 License: distributable Group: System Environment/Libraries Source: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz @@ -58,6 +58,33 @@ if [ -f $RPM_BUILD_ROOT%{_bindir}/tiffgt ]; then fi rm $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1 +# fix multilib issues +%ifarch x86_64 s390x ia64 ppc64 +%define wordsize 64 +%else +%define wordsize 32 +%endif + +mv $RPM_BUILDROOT%{_includedir}/tiffconf.h \ + $RPM_BUILDROOT%{_includedir}/tiffconf-%{wordsize}.h + +cat >$RPM_BUILD_ROOT%{_includedir}/tiffconf.h < + +#if __WORDSIZE == 32 +# include "tiffconf-32.h" +#elif __WORDSIZE == 64 +# include "tiffconf-64.h" +#else +# error "unexpected value for __WORDSIZE macro" +#endif + +#endif +EOF + %clean rm -rf $RPM_BUILD_ROOT @@ -82,6 +109,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/* %changelog +* Fri Jun 2 2006 Matthias Clasen - 3.8.2-3 +- Fix multilib conflict + * Thu May 25 2006 Matthias Clasen - 3.8.2-3 - Fix overflows in tiffsplit