2007-01-15 23:45:54 +00:00
|
|
|
#
|
2017-11-20 14:05:02 +00:00
|
|
|
# spec file for package zimg
|
2007-01-15 23:45:54 +00:00
|
|
|
#
|
2019-08-02 03:16:20 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:45:54 +00:00
|
|
|
#
|
2009-06-18 22:30:50 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-08-02 03:16:20 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:45:54 +00:00
|
|
|
#
|
|
|
|
|
2008-04-11 22:06:25 +00:00
|
|
|
|
2017-11-20 14:05:02 +00:00
|
|
|
%define sover 2
|
2008-04-11 22:06:25 +00:00
|
|
|
Name: zimg
|
2020-03-02 12:33:38 +00:00
|
|
|
Version: 2.9.3
|
2015-04-28 09:26:22 +00:00
|
|
|
Release: 0
|
2017-11-20 14:05:02 +00:00
|
|
|
Summary: Scaling, colorspace conversion, and dithering library
|
2017-08-18 12:30:00 +00:00
|
|
|
License: WTFPL
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-11-20 14:05:02 +00:00
|
|
|
URL: https://github.com/sekrit-twc/zimg
|
2019-08-02 03:16:20 +00:00
|
|
|
Source0: zimg-%{version}.tar.xz
|
2018-07-13 20:39:43 +00:00
|
|
|
Source99: baselibs.conf
|
2019-12-05 10:33:27 +00:00
|
|
|
Patch0: update-matrix3.cpp.patch
|
2020-03-18 09:04:46 +00:00
|
|
|
Patch1: colorspace-fix-assertion.patch
|
|
|
|
Patch2: colorspace-fix-assertion-part2.patch
|
2015-04-28 09:26:22 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2017-08-18 12:30:00 +00:00
|
|
|
BuildRequires: gcc-c++
|
2011-11-21 11:51:26 +00:00
|
|
|
BuildRequires: libtool
|
2017-08-18 12:30:00 +00:00
|
|
|
BuildRequires: pkgconfig
|
2007-01-15 23:45:54 +00:00
|
|
|
|
|
|
|
%description
|
2017-08-18 12:30:00 +00:00
|
|
|
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}.
|
2007-01-15 23:45:54 +00:00
|
|
|
|
|
|
|
%prep
|
2019-08-02 03:16:20 +00:00
|
|
|
%setup -q
|
2019-12-05 10:33:27 +00:00
|
|
|
%patch0 -p1
|
2020-03-17 08:31:28 +00:00
|
|
|
%patch1 -p1
|
2020-03-18 09:04:46 +00:00
|
|
|
%patch2 -p1
|
2007-01-15 23:45:54 +00:00
|
|
|
|
|
|
|
%build
|
2017-11-20 14:05:02 +00:00
|
|
|
autoreconf -fiv
|
2019-08-02 03:16:20 +00:00
|
|
|
# do not enable tests here — they make zimg slower and the install
|
|
|
|
# rule is broken
|
2015-04-28 09:26:22 +00:00
|
|
|
%configure \
|
2017-11-20 14:05:02 +00:00
|
|
|
%ifarch x86_64 %{ix86}
|
2017-08-18 12:30:00 +00:00
|
|
|
--enable-x86simd \
|
2017-11-20 14:05:02 +00:00
|
|
|
%endif
|
2019-08-02 03:16:20 +00:00
|
|
|
--disable-static
|
2017-11-20 14:05:02 +00:00
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-15 23:45:54 +00:00
|
|
|
|
|
|
|
%install
|
2017-11-20 14:05:02 +00:00
|
|
|
%make_install
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/zimg
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2017-08-18 12:30:00 +00:00
|
|
|
|
2019-08-22 14:50:34 +00:00
|
|
|
# test suite is broken on other platforms, upstream informed
|
|
|
|
%ifarch x86_64
|
2019-08-02 02:43:47 +00:00
|
|
|
%check
|
2019-08-02 03:16:20 +00:00
|
|
|
make clean
|
|
|
|
%configure \
|
|
|
|
%ifarch x86_64 %{ix86}
|
|
|
|
--enable-x86simd \
|
|
|
|
%endif
|
|
|
|
--disable-static \
|
|
|
|
--enable-unit-test
|
2019-08-02 06:07:20 +00:00
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
make %{?_smp_mflags} V=1 test/unit_test
|
|
|
|
test/unit_test
|
2019-08-22 14:50:34 +00:00
|
|
|
%endif
|
2019-08-02 02:43:47 +00:00
|
|
|
|
2017-08-18 12:30:00 +00:00
|
|
|
%post -n libzimg%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libzimg%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libzimg%{sover}
|
2018-01-31 18:52:35 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog README.md
|
2017-11-20 14:05:02 +00:00
|
|
|
%{_libdir}/libzimg.so.%{sover}*
|
2007-01-15 23:45:54 +00:00
|
|
|
|
2017-08-18 12:30:00 +00:00
|
|
|
%files devel
|
2018-01-31 18:52:35 +00:00
|
|
|
%doc doc/example
|
2017-08-18 12:30:00 +00:00
|
|
|
%{_includedir}/zimg.h
|
|
|
|
%{_includedir}/zimg++.hpp
|
|
|
|
%{_libdir}/libzimg.so
|
|
|
|
%{_libdir}/pkgconfig/zimg.pc
|
2007-01-15 23:45:54 +00:00
|
|
|
|
2008-04-11 22:06:25 +00:00
|
|
|
%changelog
|