3 Commits

Author SHA256 Message Date
a5b6178501 Accepting request 1309629 from graphics
OBS-URL: https://build.opensuse.org/request/show/1309629
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pngquant?expand=0&rev=11
2025-10-08 16:13:33 +00:00
36dd0f8c50 - do not limit it to tier 1 archs as pngquant is used by
appstream-glib and rpmlint and it at least builds for i586.
  So lets give all architectures a try.

OBS-URL: https://build.opensuse.org/package/show/graphics/pngquant?expand=0&rev=25
2025-10-07 13:02:52 +00:00
5ca9bfe801 - update to 3.0.3:
* replaced C libimagequant library with a Rust imagequant crate
  * switched build system from make to Cargo

OBS-URL: https://build.opensuse.org/package/show/graphics/pngquant?expand=0&rev=24
2025-10-06 07:22:47 +00:00
6 changed files with 51 additions and 21 deletions

20
_service Normal file
View File

@@ -0,0 +1,20 @@
<services>
<service mode="manual" name="obs_scm">
<param name="url">https://github.com/kornelski/pngquant</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="revision">3.0.3</param>
</service>
<service mode="manual" name="tar"/>
<service mode="manual" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="manual" name="set_version"/>
<service mode="manual" name="cargo_vendor">
<param name="srcdir">pngquant</param>
<param name="compression">xz</param>
<param name="update">true</param>
</service>
</services>

Binary file not shown.

3
pngquant-3.0.3.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ad8f5ef5887e743e6f6d157a7bb4d02e06f921d54b465f4e858242dbe1c5488f
size 116588

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Oct 6 21:05:49 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
- do not limit it to tier 1 archs as pngquant is used by
appstream-glib and rpmlint and it at least builds for i586.
So lets give all architectures a try.
-------------------------------------------------------------------
Mon Sep 29 00:51:24 UTC 2025 - Kyle Scheuing <kyle@kylescheuing.com>
- update to 3.0.3:
* replaced C libimagequant library with a Rust imagequant crate
* switched build system from make to Cargo
-------------------------------------------------------------------
Sun Jan 29 18:48:01 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package pngquant
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,17 @@
Name: pngquant
Version: 2.18.0
Version: 3.0.3
Release: 0
Summary: Tool for lossy compression of PNG images
License: GPL-3.0-or-later
Group: Development/Tools/Other
URL: https://pngquant.org/
Source: https://github.com/kornelski/pngquant/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
BuildRequires: cargo
BuildRequires: cargo-packaging
BuildRequires: pkgconfig
BuildRequires: pkgconfig(imagequant) >= %{version}
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(zlib)
@@ -40,24 +42,14 @@ paletted PNG format with alpha channel (often 60-80%% smaller than
web browsers, and have better fallback in IE6 than 24-bit PNGs.
%prep
%setup -q
%autosetup -p1 -a1
%build
# not autoconf
./configure \
--prefix=%{_prefix} \
%ifarch x86_64
--enable-sse \
%else
--disable-sse \
%endif
--extra-cflags='%{optflags}' \
--with-libimagequant=%{_libdir} \
--with-openmp
%make_build
%{cargo_build}
%install
%make_install
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm644 %{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
%files
%license COPYRIGHT

3
vendor.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c46acba2f36ee8442d1708b4b4aa8f2e419e5292da17b76717ddd6cbc6823829
size 2760108