2019-12-05 10:03:55 +01:00
|
|
|
#
|
|
|
|
# spec file for package libavif
|
|
|
|
#
|
2023-05-07 17:55:17 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-12-05 10:03:55 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-02-16 20:09:12 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-12-05 10:03:55 +01:00
|
|
|
#
|
|
|
|
|
2022-04-08 17:52:30 +02:00
|
|
|
|
2023-11-29 07:54:11 +01:00
|
|
|
# Also update baselibs.conf if you bump the version
|
|
|
|
%global lib_soversion 16
|
|
|
|
%global lib_name libavif%{lib_soversion}
|
2021-12-25 11:31:56 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
%bcond_without aom
|
2022-08-01 11:00:36 +02:00
|
|
|
%bcond_without yuv
|
2021-12-25 11:31:56 +01:00
|
|
|
%else
|
2021-12-25 11:27:14 +01:00
|
|
|
%bcond_with aom
|
2022-08-01 11:00:36 +02:00
|
|
|
%bcond_with yuv
|
2021-12-25 11:31:56 +01:00
|
|
|
%endif
|
2019-12-05 10:03:55 +01:00
|
|
|
Name: libavif
|
2023-12-23 11:37:44 +01:00
|
|
|
Version: 1.0.3
|
2019-12-05 10:03:55 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for encoding and decoding .avif files
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-02-16 20:09:12 +01:00
|
|
|
URL: https://github.com/AOMediaCodec/libavif
|
2019-12-11 19:11:39 +01:00
|
|
|
Source: https://github.com/AOMediaCodec/libavif/archive/v%{version}/%{name}-%{version}.tar.gz
|
2021-04-13 09:55:47 +02:00
|
|
|
Source99: baselibs.conf
|
2023-11-29 07:54:11 +01:00
|
|
|
BuildRequires: c++_compiler
|
2019-12-05 10:03:55 +01:00
|
|
|
BuildRequires: cmake
|
2020-04-23 18:57:45 +02:00
|
|
|
BuildRequires: libjpeg8-devel
|
2023-11-29 07:54:11 +01:00
|
|
|
BuildRequires: pkgconfig
|
2019-12-05 10:03:55 +01:00
|
|
|
BuildRequires: pkgconfig(dav1d)
|
2021-01-13 20:21:57 +01:00
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
2022-10-31 08:48:59 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
Accepting request 1107834 from home:polslinux:branches:multimedia:libs
- Update to 1.0.0:
* Incompatible changes:
+ The clli member was added to the avifImage struct.
+ The repetitionCount member was added to the avifEncoder and avifDecoder
structs.
+ The quality and qualityAlpha members were added to the avifEncoder struct.
+ Check that functions returning pointers do not return NULL before accessing
those pointers.
+ Check the return value of avifEncoderSetCodecSpecificOption().
+ The maxThreads member was added to the avifRGBImage struct.
+ Check the return value of avifRGBImageAllocatePixels(), avifRWDataRealloc(),
avifRWDataSet(), avifImageSetProfileICC(), avifImageSetMetadataExif() and
avifImageSetMetadataXMP().
+ The meaning of the keyframeInterval member of avifEncoder struct has changed
slightly. When set to a value of "n",
Before: It forces a keyframe on every nth frame.
After: Any set of "n" consecutive frame will have at least one keyframe
(every nth frame may or may not be a keyframe).
* Added:
+ Add clli metadata read and write support
+ Add repetitionCount member to avifEncoder and avifDecoder structs to specify
the number of repetitions for animated image sequences.
+ Add quality and qualityAlpha to avifEncoder. Note: minQuantizer,
maxQuantizer, minQuantizerAlpha, and maxQuantizerAlpha are deprecated. Code
should be updated to set quality (and qualityAlpha if applicable) and leave
minQuantizer, maxQuantizer, minQuantizerAlpha, and maxQuantizerAlpha
initialized to the default values.
+ The --target-size flag in avifenc was added to adapt the quality so that the
output file size is as close to the given number of bytes as possible.
+ Add the public API function avifImageIsOpaque() in avif.h.
OBS-URL: https://build.opensuse.org/request/show/1107834
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libavif?expand=0&rev=52
2023-08-29 09:01:17 +02:00
|
|
|
BuildRequires: pkgconfig(libpng) >= 1.6.32
|
2023-05-07 17:55:17 +02:00
|
|
|
BuildRequires: pkgconfig(libwebp)
|
2021-12-25 11:31:56 +01:00
|
|
|
BuildRequires: pkgconfig(rav1e) >= 0.5.0
|
2019-12-05 10:03:55 +01:00
|
|
|
%if %{with aom}
|
2020-08-17 15:43:23 +02:00
|
|
|
BuildRequires: pkgconfig(aom) >= 2.0.0
|
2019-12-05 10:03:55 +01:00
|
|
|
%endif
|
2022-08-01 11:00:36 +02:00
|
|
|
%if %{with yuv}
|
|
|
|
BuildRequires: pkgconfig(libyuv)
|
|
|
|
%endif
|
2020-02-16 20:09:12 +01:00
|
|
|
|
2019-12-05 10:03:55 +01:00
|
|
|
%description
|
|
|
|
This library aims to be a friendly, portable C implementation of the AV1 Image
|
|
|
|
File Format, as described here:
|
|
|
|
|
|
|
|
https://aomediacodec.github.io/av1-avif/
|
|
|
|
|
2020-02-16 20:09:12 +01:00
|
|
|
%package -n avif-tools
|
2019-12-05 10:03:55 +01:00
|
|
|
Summary: Tools for libavif
|
2020-02-16 20:09:12 +01:00
|
|
|
Group: Productivity/Graphics/Convertors
|
|
|
|
Provides: libavif-tools = %{version}
|
|
|
|
Obsoletes: libavif-tools < %{version}
|
|
|
|
|
|
|
|
%description -n avif-tools
|
2019-12-05 10:03:55 +01:00
|
|
|
This library aims to be a friendly, portable C implementation of the AV1 Image
|
|
|
|
File Format, as described here:
|
|
|
|
|
|
|
|
https://aomediacodec.github.io/av1-avif/
|
|
|
|
|
|
|
|
This package holds the commandline tools for libavif.
|
|
|
|
|
|
|
|
%package -n %{lib_name}
|
|
|
|
#
|
|
|
|
Summary: Shared library from libavif
|
2020-02-16 20:09:12 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2019-12-05 10:03:55 +01:00
|
|
|
%description -n %{lib_name}
|
|
|
|
This library aims to be a friendly, portable C implementation of the AV1 Image
|
|
|
|
File Format, as described here:
|
|
|
|
|
|
|
|
https://aomediacodec.github.io/av1-avif/
|
|
|
|
|
|
|
|
This package holds the shared library for libavif.
|
|
|
|
|
2021-01-13 20:21:57 +01:00
|
|
|
%package -n gdk-pixbuf-loader-libavif
|
|
|
|
Summary: AVIF image loader for GTK+ applications
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n gdk-pixbuf-loader-libavif
|
|
|
|
A pixbuf-loader plugin to load AVIF images in GTK+ applications.
|
|
|
|
|
2019-12-05 10:03:55 +01:00
|
|
|
%package devel
|
|
|
|
#
|
|
|
|
Summary: Development files for libavif
|
2020-02-16 20:09:12 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2023-11-29 07:54:11 +01:00
|
|
|
Requires: %{lib_name} = %{version}-%{release}
|
2020-02-16 20:09:12 +01:00
|
|
|
|
2019-12-05 10:03:55 +01:00
|
|
|
%description devel
|
|
|
|
This library aims to be a friendly, portable C implementation of the AV1 Image
|
|
|
|
File Format, as described here:
|
|
|
|
|
|
|
|
https://aomediacodec.github.io/av1-avif/
|
|
|
|
|
|
|
|
This package holds the development files for libavif.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
-DAVIF_CODEC_RAV1E:BOOL=ON \
|
|
|
|
-DAVIF_CODEC_DAV1D:BOOL=ON \
|
|
|
|
%if %{with aom}
|
|
|
|
-DAVIF_CODEC_AOM:BOOL=ON \
|
|
|
|
%endif
|
2020-12-09 17:31:55 +01:00
|
|
|
-DAVIF_BUILD_APPS:BOOL=ON \
|
2021-01-13 20:21:57 +01:00
|
|
|
-DAVIF_BUILD_EXAMPLES:BOOL=ON \
|
|
|
|
-DAVIF_BUILD_GDK_PIXBUF=ON
|
|
|
|
%cmake_build
|
2019-12-05 10:03:55 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2022-10-16 10:07:28 +02:00
|
|
|
%ldconfig_scriptlets -n %{lib_name}
|
2019-12-05 10:03:55 +01:00
|
|
|
|
|
|
|
%files -n %{lib_name}
|
|
|
|
%license LICENSE
|
2022-10-16 10:07:28 +02:00
|
|
|
%{_libdir}/libavif.so.%{lib_soversion}*
|
2019-12-05 10:03:55 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libavif.so
|
|
|
|
%{_includedir}/avif/
|
|
|
|
%{_libdir}/cmake/libavif/
|
2020-03-04 16:10:47 +01:00
|
|
|
%{_libdir}/pkgconfig/libavif.pc
|
2019-12-05 10:03:55 +01:00
|
|
|
|
2020-02-16 20:09:12 +01:00
|
|
|
%files -n avif-tools
|
|
|
|
%doc *.md
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/avifdec
|
|
|
|
%{_bindir}/avifenc
|
|
|
|
|
2021-01-13 20:21:57 +01:00
|
|
|
%files -n gdk-pixbuf-loader-libavif
|
2023-11-29 07:54:11 +01:00
|
|
|
%license LICENSE
|
2021-01-13 20:21:57 +01:00
|
|
|
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-avif.so
|
2022-10-16 10:07:28 +02:00
|
|
|
%dir %{_datadir}/thumbnailers
|
|
|
|
%{_datadir}/thumbnailers/avif.thumbnailer
|
2021-01-13 20:21:57 +01:00
|
|
|
|
2019-12-05 10:03:55 +01:00
|
|
|
%changelog
|