--- /dev/null
+--- FreeImage/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c.orig 2015-02-20 03:34:36.000000000 +0100
++++ FreeImage/Source/LibWebP/src/dsp/dsp.upsampling_mips_dsp_r2.c 2016-05-23 15:13:46.386879788 +0200
+@@ -34,15 +34,15 @@
+ G = G - t2 + kGCst; \\r
+ B = B + kBCst; \\r
+ __asm__ volatile ( \\r
+- "shll_s.w %["#R"], %["#R"], 9 \n\t" \\r
+- "shll_s.w %["#G"], %["#G"], 9 \n\t" \\r
+- "shll_s.w %["#B"], %["#B"], 9 \n\t" \\r
+- "precrqu_s.qb.ph %["#R"], %["#R"], $zero \n\t" \\r
+- "precrqu_s.qb.ph %["#G"], %["#G"], $zero \n\t" \\r
+- "precrqu_s.qb.ph %["#B"], %["#B"], $zero \n\t" \\r
+- "srl %["#R"], %["#R"], 24 \n\t" \\r
+- "srl %["#G"], %["#G"], 24 \n\t" \\r
+- "srl %["#B"], %["#B"], 24 \n\t" \\r
++ "shll_s.w %[" #R "], %[" #R "], 9 \n\t" \\r
++ "shll_s.w %[" #G "], %[" #G "], 9 \n\t" \\r
++ "shll_s.w %[" #B "], %[" #B "], 9 \n\t" \\r
++ "precrqu_s.qb.ph %[" #R "], %[" #R "], $zero \n\t" \\r
++ "precrqu_s.qb.ph %[" #G "], %[" #G "], $zero \n\t" \\r
++ "precrqu_s.qb.ph %[" #B "], %[" #B "], $zero \n\t" \\r
++ "srl %[" #R "], %[" #R "], 24 \n\t" \\r
++ "srl %[" #G "], %[" #G "], 24 \n\t" \\r
++ "srl %[" #B "], %[" #B "], 24 \n\t" \\r
+ : [R]"+r"(R), [G]"+r"(G), [B]"+r"(B) \\r
+ : \\r
+ ); \\r
+--- FreeImage/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c.orig 2015-02-20 03:34:38.000000000 +0100
++++ FreeImage/Source/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c 2016-05-23 15:15:34.452490572 +0200
+@@ -54,9 +54,9 @@
+ "srl %[temp5], %[temp5], 24 \n\t" \\r
+ "srl %[temp6], %[temp6], 24 \n\t" \\r
+ "srl %[temp7], %[temp7], 24 \n\t" \\r
+- "sb %[temp5], "#R"(%[dst]) \n\t" \\r
+- "sb %[temp6], "#G"(%[dst]) \n\t" \\r
+- "sb %[temp7], "#B"(%[dst]) \n\t" \\r
++ "sb %[temp5], " #R "(%[dst]) \n\t" \\r
++ "sb %[temp6], " #G "(%[dst]) \n\t" \\r
++ "sb %[temp7], " #B "(%[dst]) \n\t" \\r
+ \r
+ #define ASM_CLOBBER_LIST() \\r
+ : [temp0]"=&r"(temp0), [temp1]"=&r"(temp1), [temp2]"=&r"(temp2), \\r
Summary(pl.UTF-8): Biblioteka do manipulacji różnymi formatami plików graficznych
Name: FreeImage
Version: 3.17.0
-Release: 1
+Release: 2
License: GPL and FIPL v1.0 (see the license-fi.txt)
Group: Libraries
Source0: http://downloads.sourceforge.net/freeimage/%{name}%{fver}.zip
# Source0-md5: 459e15f0ec75d6efa3c7bd63277ead86
Source1: http://downloads.sourceforge.net/freeimage/%{name}%{fver}.pdf
# Source1-md5: 9d7e12d5062b51082407a6d69aa7d020
+Patch0: %{name}-libwebp-cpp.patch
URL: http://freeimage.sourceforge.net/index.html
BuildRequires: libstdc++-devel
BuildRequires: unzip
%prep
%setup -q -n %{name}
+%patch0 -p1
%build
CFLAGS="%{rpmcflags} -fPIC -fvisibility=hidden" \