[packages/dssim2] - updated to 3.2.3

qboosh qboosh at pld-linux.org
Sat Oct 21 20:04:51 CEST 2023


commit a46a9d11c9f7d3c75754ae4a8bcaeeb19947f944
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Oct 21 20:06:59 2023 +0200

    - updated to 3.2.3

 dssim2.spec | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/dssim2.spec b/dssim2.spec
index 355b3ad..4de127d 100644
--- a/dssim2.spec
+++ b/dssim2.spec
@@ -1,21 +1,28 @@
+# TODO: system aom, lcms2
+#
+# Conditional build:
+%bcond_without	avif	# AVIF support (internal aom)
+%bcond_without	webp	# WEBP support
+
 Summary:	Tool to compute (dis)similarity between two or more images
 Summary(pl.UTF-8):	Narzędzie do obliczania (nie)podobieństwa dwóch lub większej liczby obrazów
 Name:		dssim2
-Version:	3.2.0
+Version:	3.2.3
 Release:	1
 License:	AGPL v3+ or commercial
 Group:		Applications/Graphics
 #Source0Download: https://github.com/pornel/dssim/releases
 Source0:	https://github.com/pornel/dssim/archive/%{version}/dssim-%{version}.tar.gz
-# Source0-md5:	64e777cdd859a9a556526a2ec69aef9b
+# Source0-md5:	4226a24d7728b77cfb490b03831d7f07
 # cd dssim-%{version}
 # cargo vendor
 # cd ..
 # tar cJf dssim-vendor-%{version}.tar.xz dssim-%{version}/{vendor,Cargo.lock}
 Source1:	dssim-vendor-%{version}.tar.xz
-# Source1-md5:	96943aeffac9afe4f4ab4198d04f3e0b
+# Source1-md5:	02c25d610a0644876e4588daa6a42b85
 URL:		https://kornel.ski/dssim
 BuildRequires:	cargo
+%{?with_webp:BuildRequires:	libwebp-devel}
 %ifarch %{ix86} %{x8664} x32
 BuildRequires:	nasm
 %endif
@@ -60,7 +67,8 @@ EOF
 %build
 export CARGO_HOME="$(pwd)/.cargo"
 
-%cargo_build --frozen
+%cargo_build --frozen \
+	--features "%{?with_avif:avif} %{?with_webp:webp}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -68,6 +76,7 @@ rm -rf $RPM_BUILD_ROOT
 export CARGO_HOME="$(pwd)/.cargo"
 
 %cargo_install --frozen \
+	--features "%{?with_avif:avif} %{?with_webp:webp}" \
 	--path . \
 	--root $RPM_BUILD_ROOT%{_prefix}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dssim2.git/commitdiff/a46a9d11c9f7d3c75754ae4a8bcaeeb19947f944



More information about the pld-cvs-commit mailing list