[packages/libavif] - updated to 1.2.0 (new soname)

qboosh qboosh at pld-linux.org
Wed Mar 5 18:47:42 CET 2025


commit 5ad16420bcebbdae70bfac27e345addced9a2b91
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 5 18:26:36 2025 +0100

    - updated to 1.2.0 (new soname)

 libavif.spec | 41 +++++++++++++++++++++++++++++------------
 1 file changed, 29 insertions(+), 12 deletions(-)
---
diff --git a/libavif.spec b/libavif.spec
index 94bfa8c..a7326c9 100644
--- a/libavif.spec
+++ b/libavif.spec
@@ -1,7 +1,8 @@
+# TODO: AVM (when actual codec library released)
 #
 # Conditional build:
 %bcond_without	aom		# AOM for encoding/decoding
-%bcond_without	man		# don't build man pages
+%bcond_without	man		# man pages
 %bcond_with	dav1d		# dav1d for decoding
 %bcond_with	libgav1		# libgav1 for decoding
 %bcond_with	rav1e		# rav1e for encoding
@@ -10,13 +11,17 @@
 Summary:	Library for encoding and decoding .avif files
 Summary(pl.UTF-8):	Biblioteka do kodowania i dekodowania plików .avif
 Name:		libavif
-Version:	0.11.1
-Release:	2
+Version:	1.2.0
+Release:	1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/AOMediaCodec/libavif/releases
 Source0:	https://github.com/AOMediaCodec/libavif/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	dde524dfc0e0e37a468277b128662990
+# Source0-md5:	ec292cb8d51c0aa02f9fd5ef2419c853
+# cmake/Modules/LocalLibargparse.cmake /AVIF_LIBARGPARSE_GIT_TAG
+%define	libargparse_gitref	ee74d1b53bd680748af14e737378de57e2a0a954
+Source1:	https://github.com/kmurray/libargparse/archive/%{libargparse_gitref}/libargparse-%{libargparse_gitref}.tar.gz
+# Source1-md5:	e8f6d28aa9039973c40d31186ed22de7
 URL:		https://github.com/AOMediaCodec/libavif
 %{?with_aom:BuildRequires:	aom-devel}
 BuildRequires:	cmake >= 3.13
@@ -26,6 +31,9 @@ BuildRequires:	gcc >= 5:3.2
 BuildRequires:	libjpeg-devel
 BuildRequires:	libpng-devel
 BuildRequires:	libsharpyuv-devel
+# C++14
+BuildRequires:	libstdc++-devel >= 6:5
+BuildRequires:	libxml2-devel >= 2.0
 # 1813+ preferred
 BuildRequires:	libyuv-devel >= 0.1755
 %{?with_man:BuildRequires:	pandoc}
@@ -71,18 +79,26 @@ Tools to encode and decode AVIF files.
 Narzędzia do kodowania i dekodowania plików AVIF.
 
 %prep
-%setup -q
+%setup -q -a1
+%{__mv} libargparse-%{libargparse_gitref} ext/libargparse
 
 %build
+install -d ext/libargparse/build
+%cmake -B ext/libargparse/build -S ext/libargparse \
+	-DBUILD_SHARED_LIBS=OFF
+%{__make} -C ext/libargparse/build
+
 %cmake -B build \
 	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
 	-DAVIF_BUILD_APPS=ON \
 	%{cmake_on_off man AVIF_BUILD_MAN_PAGES} \
-	%{?with_aom:-DAVIF_CODEC_AOM=ON} \
-	%{?with_dav1d:-DAVIF_CODEC_DAV1D=ON} \
-	%{?with_libgav1:-DAVIF_CODEC_LIBGAV1=ON} \
-	%{?with_rav1e:-DAVIF_CODEC_RAV1E=ON} \
-	%{?with_svtav1:-DAVIF_CODEC_SVT=ON}
+	%{?with_aom:-DAVIF_CODEC_AOM=SYSTEM} \
+	%{?with_dav1d:-DAVIF_CODEC_DAV1D=SYSTEM} \
+	%{?with_libgav1:-DAVIF_CODEC_LIBGAV1=SYSTEM} \
+	%{?with_rav1e:-DAVIF_CODEC_RAV1E=SYSTEM} \
+	%{?with_svtav1:-DAVIF_CODEC_SVT=SYSTEM} \
+	-DAVIF_LIBSHARPYUV=SYSTEM \
+	-DAVIF_LIBXML2=SYSTEM
 
 %{__make} -C build
 
@@ -100,9 +116,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGELOG.md LICENSE README.md
+%doc CHANGELOG.md LICENSE README.md SECURITY.md
 %attr(755,root,root) %{_libdir}/libavif.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libavif.so.15
+%attr(755,root,root) %ghost %{_libdir}/libavif.so.16
 
 %files devel
 %defattr(644,root,root,755)
@@ -115,6 +131,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/avifdec
 %attr(755,root,root) %{_bindir}/avifenc
+%attr(755,root,root) %{_bindir}/avifgainmaputil
 %if %{with man}
 %{_mandir}/man1/avifdec.1*
 %{_mandir}/man1/avifenc.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libavif.git/commitdiff/5ad16420bcebbdae70bfac27e345addced9a2b91



More information about the pld-cvs-commit mailing list