diff --git a/pngquant.changes b/pngquant.changes index dea2b2d..471afa4 100644 --- a/pngquant.changes +++ b/pngquant.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Mar 19 15:56:16 UTC 2018 - schwab@suse.de + +- Pass --disable-sse on non-x86_64 for reproducability +- Don't strip binaries +- Use %doc + ------------------------------------------------------------------- Tue Jan 30 22:45:49 UTC 2018 - bjorn.lie@gmail.com diff --git a/pngquant.spec b/pngquant.spec index 6535647..af338ea 100644 --- a/pngquant.spec +++ b/pngquant.spec @@ -1,7 +1,7 @@ # # spec file for package pngquant # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,15 +20,15 @@ Name: pngquant Version: 2.11.2 Release: 0 Summary: Converts 24/32-bit RGBA PNGs to 8-bit palette with alpha channel preserved -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Tools/Other Url: http://pngquant.org/ Source: https://github.com/pornel/pngquant/archive/%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: libimagequant-devel >= %{version} BuildRequires: liblcms2-devel BuildRequires: libpng-devel BuildRequires: zlib-devel -BuildRequires: libimagequant-devel >= %{version} %description pngquant is a command-line utility and a library for lossy compression of PNG images. @@ -45,6 +45,8 @@ modern web browsers, and have better fallback in IE6 than 24-bit PNGs. --prefix=%prefix \ %ifarch x86_64 --enable-sse \ +%else + --disable-sse \ %endif --extra-cflags='%{optflags}' \ --with-openmp @@ -52,14 +54,12 @@ modern web browsers, and have better fallback in IE6 than 24-bit PNGs. %__make %{?_smp_mflags} %install -%__mkdir -p %buildroot%_bindir %buildroot%_docdir/%name - -install --mode 0755 --strip %name %buildroot%_bindir -install --mode 0644 CHANGELOG COPYRIGHT README.md %buildroot%_docdir/%name +%__mkdir -p %buildroot%_bindir +install --mode 0755 %name %buildroot%_bindir %files %defattr(-, root, root) +%doc CHANGELOG COPYRIGHT README.md %_bindir/* -%_docdir/* %changelog