From 8b684b4c1b5ec699450c5e372088e81b829d84a15c81357fc6d4f2a73b9cf040 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= <ismail@i10z.com>
Date: Fri, 5 Aug 2011 21:38:28 +0000
Subject: [PATCH] Accepting request 78152 from home:elvigia:branches:graphics

- Do not use -fno-strict-aliasing, no longer needed
  and will probably slow down the code.
- Fix self-obsoletion warning

OBS-URL: https://build.opensuse.org/request/show/78152
OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=31
---
 tiff.changes | 7 +++++++
 tiff.spec    | 5 ++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/tiff.changes b/tiff.changes
index 54db7a9..5a88b9d 100644
--- a/tiff.changes
+++ b/tiff.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Fri Aug  5 21:09:33 UTC 2011 - crrodriguez@opensuse.org
+
+- Do not use -fno-strict-aliasing, no longer needed 
+  and will probably slow down the code.
+- Fix self-obsoletion warning
+
 -------------------------------------------------------------------
 Thu Apr 14 14:02:12 CEST 2011 - pgajdos@suse.cz
 
diff --git a/tiff.spec b/tiff.spec
index ed9835d..0ba7a38 100644
--- a/tiff.spec
+++ b/tiff.spec
@@ -57,7 +57,7 @@ License:        PERMISSIVE-OSI-COMPLIANT ; MIT License (or similar)
 Summary:        The Tiff Library (with JPEG and compression support)
 Group:          System/Libraries
 Provides:       libtiff = %{version}
-Obsoletes:      libtiff <= %{version}
+Obsoletes:      libtiff < %{version}
 AutoReqProv:    on
 # bug437293
 %ifarch ppc64
@@ -105,8 +105,7 @@ find -type d | xargs chmod 755
 %build
 rm m4/ltversion.m4 m4/ltsugar.m4 m4/ltoptions.m4 m4/libtool.m4
 autoreconf --force --install -v
-CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fstack-protector" \
-  ./configure --prefix=/usr --mandir=%{_mandir} --libdir=%{_libdir} --disable-static
+%configure --disable-static --with-pic
 make %{?_smp_mflags}
 
 %install