zimg/zimg.spec
Mia Herkt ebd89965d1 - 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
2020-08-05 01:05:12 +00:00

107 lines
2.8 KiB
RPMSpec

#
# spec file for package zimg
#
# 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
# 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/
#
%define sover 2
Name: zimg
Version: 3.0
Release: 0
Summary: Scaling, colorspace conversion, and dithering library
License: WTFPL
Group: Development/Libraries/C and C++
URL: https://github.com/sekrit-twc/zimg
Source0: zimg-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
%description
The "z" image library implements the commonly required image processing
basics of scaling, colorspace conversion, and depth conversion.
%package -n libzimg%{sover}
Summary: Scaling, colorspace conversion, and dithering library
Group: System/Libraries
%description -n libzimg%{sover}
The "z" image library implements the commonly required image processing
basics of scaling, colorspace conversion, and depth conversion.
%package devel
Summary: Development files for libzimg%{sover}
Group: Development/Libraries/C and C++
Requires: libzimg%{sover} = %{version}
%description devel
The libzimg-devel package contains libraries and header files for
developing applications that use libzimg%{sover}.
%prep
%setup -q
%build
autoreconf -fiv
# do not enable tests here — they make zimg slower and the install
# rule is broken
%configure \
%ifarch x86_64 %{ix86}
--enable-x86simd \
%endif
--disable-static
%make_build
%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc/zimg
find %{buildroot} -type f -name "*.la" -delete -print
# test suite is broken on other platforms, upstream informed
%ifarch x86_64
%check
%make_build clean
%configure \
%ifarch x86_64 %{ix86}
--enable-x86simd \
%endif
--disable-static \
--enable-unit-test
%make_build
%make_build test/unit_test
test/unit_test
%endif
%post -n libzimg%{sover} -p /sbin/ldconfig
%postun -n libzimg%{sover} -p /sbin/ldconfig
%files -n libzimg%{sover}
%license COPYING
%doc ChangeLog README.md
%{_libdir}/libzimg.so.%{sover}*
%files devel
%doc doc/example
%{_includedir}/zimg.h
%{_includedir}/zimg++.hpp
%{_libdir}/libzimg.so
%{_libdir}/pkgconfig/zimg.pc
%changelog