- Update to version 3.0 (API 2.4):

* api: support alpha channel as the fourth plane
  * colorspace: accept UNSPECIFIED transfer characteristics in
    more situations
  * colorspace: fix conversion from ICtCp to ARIB STD-B67
  * depth: fix out of bounds access in SSE2 ordered dither
  * graph: rewrite for alpha channel support
  * resize: fix incorrect rounding when calculating pixel
    coordinates
  * resize: AVX-512 VNNI code paths
  * arm: NEON/ASIMD code paths
- Drop patches:
  * update-matrix3.cpp.patch
  * colorspace-fix-assertion.patch
  * colorspace-fix-assertion-part2.patch

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/zimg?expand=0&rev=28
This commit is contained in:
2020-08-05 01:05:12 +00:00
committed by Git OBS Bridge
parent 7a890caa43
commit ebd89965d1
9 changed files with 33 additions and 110 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package zimg
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%define sover 2
Name: zimg
Version: 2.9.3
Version: 3.0
Release: 0
Summary: Scaling, colorspace conversion, and dithering library
License: WTFPL
@@ -26,11 +26,9 @@ Group: Development/Libraries/C and C++
URL: https://github.com/sekrit-twc/zimg
Source0: zimg-%{version}.tar.xz
Source99: baselibs.conf
Patch0: update-matrix3.cpp.patch
Patch1: colorspace-fix-assertion.patch
Patch2: colorspace-fix-assertion-part2.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
@@ -58,9 +56,6 @@ developing applications that use libzimg%{sover}.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
autoreconf -fiv
@@ -71,7 +66,7 @@ autoreconf -fiv
--enable-x86simd \
%endif
--disable-static
make %{?_smp_mflags} V=1
%make_build
%install
%make_install
@@ -81,15 +76,15 @@ find %{buildroot} -type f -name "*.la" -delete -print
# test suite is broken on other platforms, upstream informed
%ifarch x86_64
%check
make clean
%make_build clean
%configure \
%ifarch x86_64 %{ix86}
--enable-x86simd \
%endif
--disable-static \
--enable-unit-test
make %{?_smp_mflags} V=1
make %{?_smp_mflags} V=1 test/unit_test
%make_build
%make_build test/unit_test
test/unit_test
%endif