- 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:
committed by
Git OBS Bridge
parent
b7f3045a51
commit
5d1b342e25
22
zimg.spec
22
zimg.spec
@@ -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,7 +12,7 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ 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,16 +54,17 @@ 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 \
|
||||
%endif
|
||||
--disable-static \
|
||||
--enable-unit-test
|
||||
--disable-static
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
%install
|
||||
@@ -72,7 +73,14 @@ rm -rf %{buildroot}%{_datadir}/doc/zimg
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%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
|
||||
%postun -n libzimg%{sover} -p /sbin/ldconfig
|
||||
|
Reference in New Issue
Block a user