diff --git a/pngquant.spec b/pngquant.spec index 7b7cb62..96aa9a7 100644 --- a/pngquant.spec +++ b/pngquant.spec @@ -37,13 +37,17 @@ preserves full alpha transparency. Generated images are compatible with all modern web browsers, and have better fallback in IE6 than 24-bit PNGs. %prep -%setup -q -n %name-%version +%setup -q %build -./configure --prefix=%prefix --enable-sse --with-openmp +./configure \ + --prefix=%prefix \ +%ifarch x86_64 %ix86 + --enable-sse \ +%endif + --extra-cflags='%{optflags}' \ + --with-openmp - CFLAGS="%optflags -msse2 -DUSE_SSE=1" \ -CXXFLAGS="%optflags -msse2 -DUSE_SSE=1" \ %__make %{?_smp_mflags} %install @@ -52,9 +56,6 @@ CXXFLAGS="%optflags -msse2 -DUSE_SSE=1" \ install --mode 0755 --strip %name %buildroot%_bindir install --mode 0644 CHANGELOG COPYRIGHT INSTALL README.md %buildroot%_docdir/%name -%clean -%__rm -rf %buildroot - %files %defattr(-, root, root) %_bindir/*