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:
parent
ab61ec5f18
commit
b0905f4f5f
@ -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
|
Tue Jan 30 22:45:49 UTC 2018 - bjorn.lie@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package pngquant
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,15 +20,15 @@ Name: pngquant
|
|||||||
Version: 2.11.2
|
Version: 2.11.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Converts 24/32-bit RGBA PNGs to 8-bit palette with alpha channel preserved
|
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
|
Group: Development/Tools/Other
|
||||||
Url: http://pngquant.org/
|
Url: http://pngquant.org/
|
||||||
Source: https://github.com/pornel/pngquant/archive/%{version}.tar.gz
|
Source: https://github.com/pornel/pngquant/archive/%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: libimagequant-devel >= %{version}
|
||||||
BuildRequires: liblcms2-devel
|
BuildRequires: liblcms2-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: libimagequant-devel >= %{version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pngquant is a command-line utility and a library for lossy compression of PNG images.
|
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 \
|
--prefix=%prefix \
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
--enable-sse \
|
--enable-sse \
|
||||||
|
%else
|
||||||
|
--disable-sse \
|
||||||
%endif
|
%endif
|
||||||
--extra-cflags='%{optflags}' \
|
--extra-cflags='%{optflags}' \
|
||||||
--with-openmp
|
--with-openmp
|
||||||
@ -52,14 +54,12 @@ modern web browsers, and have better fallback in IE6 than 24-bit PNGs.
|
|||||||
%__make %{?_smp_mflags}
|
%__make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%__mkdir -p %buildroot%_bindir %buildroot%_docdir/%name
|
%__mkdir -p %buildroot%_bindir
|
||||||
|
install --mode 0755 %name %buildroot%_bindir
|
||||||
install --mode 0755 --strip %name %buildroot%_bindir
|
|
||||||
install --mode 0644 CHANGELOG COPYRIGHT README.md %buildroot%_docdir/%name
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
|
%doc CHANGELOG COPYRIGHT README.md
|
||||||
%_bindir/*
|
%_bindir/*
|
||||||
%_docdir/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user