Accepting request 725347 from multimedia:libs

- Switch to git checkout (GitHub tarbals lack required submodules)
- Build unit tests separately as they impact the build result and
  produce a broken install rule
- Update to version 2.9.2:
  * colorspace: fix crash on invalid conversion from unspec to
    real primaries
  * x86: additional optimizations for AMD Piledriver
  * x86: optimizations for AMD Zen2 processors

OBS-URL: https://build.opensuse.org/request/show/725347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zimg?expand=0&rev=32
This commit is contained in:
Dominique Leuenberger 2019-08-27 08:15:06 +00:00 committed by Git OBS Bridge
commit 3acc50efd2
6 changed files with 57 additions and 8 deletions

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/sekrit-twc/zimg.git</param>
<param name="scm">git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">release([0-9\.]*)</param>
<param name="revision">release-2.9.2</param>
</service>
<service name="tar" mode="buildtime" />
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8efa0c381aa6a9bcd5ea4ae22ad06dccf6c1dc705c394547de016951d1946154
size 265943

3
zimg-2.9.2.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f63334a98851cab72dede77924a6bb04177be796ab38af182adc20103f7873e
size 6436365

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Aug 2 02:43:17 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
- Switch to git checkout (GitHub tarbals lack required submodules)
- Build unit tests separately as they impact the build result and
produce a broken install rule
- Update to version 2.9.2:
* colorspace: fix crash on invalid conversion from unspec to
real primaries
* x86: additional optimizations for AMD Piledriver
* x86: optimizations for AMD Zen2 processors
-------------------------------------------------------------------
Thu Jun 13 21:40:11 UTC 2019 - Martin Herkt <9+suse@cirno.systems>

5
zimg.obsinfo Normal file
View File

@ -0,0 +1,5 @@
name: zimg
version: 2.9.2
mtime: 1564070386
commit: 1ea31d1588d7ac919a51ed7c98cd96b3898665ff

View File

@ -1,7 +1,7 @@
#
# spec file for package zimg
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,19 +12,19 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 2
Name: zimg
Version: 2.9.1
Version: 2.9.2
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: https://github.com/sekrit-twc/zimg/archive/release-%{version}.tar.gz
Source0: zimg-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: autoconf
BuildRequires: automake
@ -54,10 +54,12 @@ The libzimg-devel package contains libraries and header files for
developing applications that use libzimg%{sover}.
%prep
%setup -q -n zimg-release-%{version}
%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 \
@ -70,6 +72,21 @@ make %{?_smp_mflags} V=1
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 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
test/unit_test
%endif
%post -n libzimg%{sover} -p /sbin/ldconfig
%postun -n libzimg%{sover} -p /sbin/ldconfig