- 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 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/zimg?expand=0&rev=19
This commit is contained in:
parent
b7f3045a51
commit
5d1b342e25
15
_service
Normal file
15
_service
Normal 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>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:10403c2964fe11b559a7ec5e081c358348fb787e26b91ec0d1f9dd7c01d1cd7b
|
|
||||||
size 266049
|
|
3
zimg-2.9.2.obscpio
Normal file
3
zimg-2.9.2.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0f63334a98851cab72dede77924a6bb04177be796ab38af182adc20103f7873e
|
||||||
|
size 6436365
|
@ -1,6 +1,9 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 2 02:43:17 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
|
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:
|
- Update to version 2.9.2:
|
||||||
* colorspace: fix crash on invalid conversion from unspec to
|
* colorspace: fix crash on invalid conversion from unspec to
|
||||||
real primaries
|
real primaries
|
||||||
|
5
zimg.obsinfo
Normal file
5
zimg.obsinfo
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name: zimg
|
||||||
|
version: 2.9.2
|
||||||
|
mtime: 1564070386
|
||||||
|
commit: 1ea31d1588d7ac919a51ed7c98cd96b3898665ff
|
||||||
|
|
22
zimg.spec
22
zimg.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package zimg
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ Summary: Scaling, colorspace conversion, and dithering library
|
|||||||
License: WTFPL
|
License: WTFPL
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
URL: https://github.com/sekrit-twc/zimg
|
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
|
Source99: baselibs.conf
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -54,16 +54,17 @@ The libzimg-devel package contains libraries and header files for
|
|||||||
developing applications that use libzimg%{sover}.
|
developing applications that use libzimg%{sover}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n zimg-release-%{version}
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
|
# do not enable tests here — they make zimg slower and the install
|
||||||
|
# rule is broken
|
||||||
%configure \
|
%configure \
|
||||||
%ifarch x86_64 %{ix86}
|
%ifarch x86_64 %{ix86}
|
||||||
--enable-x86simd \
|
--enable-x86simd \
|
||||||
%endif
|
%endif
|
||||||
--disable-static \
|
--disable-static
|
||||||
--enable-unit-test
|
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -72,7 +73,14 @@ rm -rf %{buildroot}%{_datadir}/doc/zimg
|
|||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make clean
|
||||||
|
%configure \
|
||||||
|
%ifarch x86_64 %{ix86}
|
||||||
|
--enable-x86simd \
|
||||||
|
%endif
|
||||||
|
--disable-static \
|
||||||
|
--enable-unit-test
|
||||||
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
%post -n libzimg%{sover} -p /sbin/ldconfig
|
%post -n libzimg%{sover} -p /sbin/ldconfig
|
||||||
%postun -n libzimg%{sover} -p /sbin/ldconfig
|
%postun -n libzimg%{sover} -p /sbin/ldconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user