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
|
|
|
#
|
2017-08-18 12:30:00 +00:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
2008-04-11 22:06:25 +00:00
|
|
|
# Please submit bugfixes or comments via http://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
|
2019-06-13 21:40:59 +00:00
|
|
|
Version: 2.9.1
|
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
|
|
|
|
Source0: https://github.com/sekrit-twc/zimg/archive/release-%{version}.tar.gz
|
2018-07-13 20:39:43 +00:00
|
|
|
Source99: baselibs.conf
|
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
|
2017-11-20 14:05:02 +00:00
|
|
|
%setup -q -n zimg-release-%{version}
|
2007-01-15 23:45:54 +00:00
|
|
|
|
|
|
|
%build
|
2017-11-20 14:05:02 +00:00
|
|
|
autoreconf -fiv
|
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
|
2017-08-18 12:30:00 +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
|
|
|
|
|
|
|
%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
|