Accepting request 444918 from home:elvigia:branches:graphics

- Support webp format, BuildRequires libwebp-devel 

- Honour %optflags correctly.

OBS-URL: https://build.opensuse.org/request/show/444918
OBS-URL: https://build.opensuse.org/package/show/graphics/gd?expand=0&rev=34
This commit is contained in:
Petr Gajdos 2016-12-08 15:05:34 +00:00 committed by Git OBS Bridge
parent 801d752d5d
commit f0717d3a90
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Dec 8 14:33:22 UTC 2016 - crrodriguez@opensuse.org
- Support webp format, BuildRequires libwebp-devel
-------------------------------------------------------------------
Thu Dec 8 14:20:54 UTC 2016 - crrodriguez@opensuse.org
- Honour %optflags correctly.
-------------------------------------------------------------------
Fri Sep 30 14:59:25 UTC 2016 - badshah400@gmail.com

View File

@ -49,6 +49,7 @@ BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: libwebp-devel
BuildRequires: pkg-config
BuildRequires: xorg-x11-libX11-devel
BuildRequires: xorg-x11-libXau-devel
@ -105,10 +106,11 @@ autoreconf -fiv
# ADDITIONAL CFLAGS ARE NEEDED TO FIX TEST FAILURES IN CASE OF i586, BUT HARMLESS TO APPLY GENERALLY FOR ALL ix86
%ifarch %{ix86}
CFLAGS="$CFLAGS -msse -mfpmath=sse"
export CFLAGS
export CFLAGS="%optflags -msse -mfpmath=sse"
%else
CFLAGS="$CFLAGS -ffp-contract=off"
%ifnarch x86_64
export CFLAGS="%optflags -ffp-contract=off"
%endif
%endif
# without-x -- useless switch which just mangles cflags