Accepting request 588683 from home:Andreas_Schwab:Factory

- Pass --disable-sse on non-x86_64 for reproducability
- Don't strip binaries
- Use %doc

OBS-URL: https://build.opensuse.org/request/show/588683
OBS-URL: https://build.opensuse.org/package/show/graphics/pngquant?expand=0&rev=7
This commit is contained in:
OBS User mrdocs 2018-03-22 19:03:05 +00:00 committed by Git OBS Bridge
parent ab61ec5f18
commit b0905f4f5f
2 changed files with 15 additions and 8 deletions

View File

@ -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

View File

@ -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