SHA256
1
0
forked from pool/libavif
libavif/libavif.spec
Takashi Iwai 1d26b91fe6 - update to 1.1.1:
* In avif.h, change "AVIF_API AVIF_NODISCARD" back to
    "AVIF_NODISCARD AVIF_API" to fix clang-cl and MSVC compilation
    errors in the shared library build on Windows.
  * Fix -DAVIF_GTEST=SYSTEM
  * Fix infe_type and codec_config_type wrongly read as byte-
    aligned fields in the
  * experimental feature AVIF_ENABLE_EXPERIMENTAL_METAV1.
  * When building aom as a local dependency, runtime CPU
    detection (`CONFIG_RUNTIME_CPU_DETECT`) is now always `ON`;
  * Fix CMake config shared library leaks
  * Update gain map metadata to current ISO 21496-1 draft.
  * cmake: Only search for ASM_NASM language on x86_64 platforms.
  * Fix "No known features for CXX compiler" CMake error.
  * Fix aom link flags so that transitive library link flags are
    included when aom is a static library
  * Fix out-of-order 'dimg' grid associations
  * Report files with an item used in multiple 'dimg' boxes with
  * AVIF_RESULT_NOT_IMPLEMENTED instead of
    AVIF_RESULT_INVALID_IMAGE_GRID.
  * Add experimental API for reading and writing gain maps in
    AVIF files.
  * If enabled at compile time, add `gainMap` field to
    `avifImage`,
  * add `qualityGainMap` field to `avifEncoder`, add
    `gainMapPresent`, `enableDecodingGainMap`,
    `enableParsingGainMapMetadata` and `ignoreColorAndAlpha` to
    `avifDecoder`.
  * Utility functions for working with gain maps are also added.
  * Gain maps allow readers that support them to display HDR

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libavif?expand=0&rev=60
2024-09-02 13:44:27 +00:00

160 lines
4.3 KiB
RPMSpec

#
# spec file for package libavif
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Also update baselibs.conf if you bump the version
%global lib_soversion 16
%global lib_name libavif%{lib_soversion}
%if 0%{?suse_version} >= 1550
%bcond_without aom
%bcond_without yuv
%else
%bcond_with aom
%bcond_with yuv
%endif
Name: libavif
Version: 1.1.1
Release: 0
Summary: Library for encoding and decoding .avif files
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: https://github.com/AOMediaCodec/libavif
Source: https://github.com/AOMediaCodec/libavif/archive/v%{version}/%{name}-%{version}.tar.gz
Source99: baselibs.conf
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: libjpeg8-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(dav1d)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(libpng) >= 1.6.32
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(rav1e) >= 0.5.0
%if %{with aom}
BuildRequires: pkgconfig(aom) >= 2.0.0
%endif
%if %{with yuv}
BuildRequires: pkgconfig(libyuv)
%endif
%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/
%package -n avif-tools
Summary: Tools for libavif
Group: Productivity/Graphics/Convertors
Provides: libavif-tools = %{version}
Obsoletes: libavif-tools < %{version}
%description -n avif-tools
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
Group: Development/Libraries/C and C++
%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.
%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.
%package devel
#
Summary: Development files for libavif
Group: Development/Libraries/C and C++
Requires: %{lib_name} = %{version}-%{release}
%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_AOM=SYSTEM \
-DAVIF_CODEC_DAV1D=SYSTEM \
-DAVIF_CODEC_RAV1E=SYSTEM \
-DAVIF_GTEST=SYSTEM \
-DAVIF_JPEG=SYSTEM \
-DAVIF_LIBXML2=SYSTEM \
-DAVIF_LIBYUV=SYSTEM \
-DAVIF_ZLIBPNG=SYSTEM \
%if %{with aom}
-DAVIF_CODEC_AOM:BOOL=ON \
%endif
-DAVIF_BUILD_APPS:BOOL=ON \
-DAVIF_BUILD_EXAMPLES:BOOL=ON \
-DAVIF_BUILD_GDK_PIXBUF=ON
%cmake_build
%install
%cmake_install
%ldconfig_scriptlets -n %{lib_name}
%files -n %{lib_name}
%license LICENSE
%{_libdir}/libavif.so.%{lib_soversion}*
%files devel
%license LICENSE
%{_libdir}/libavif.so
%{_includedir}/avif/
%{_libdir}/cmake/libavif/
%{_libdir}/pkgconfig/libavif.pc
%files -n avif-tools
%doc *.md
%license LICENSE
%{_bindir}/avifdec
%{_bindir}/avifenc
%files -n gdk-pixbuf-loader-libavif
%license LICENSE
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-avif.so
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/avif.thumbnailer
%changelog