2007-01-15 23:45:54 +00:00
|
|
|
#
|
2017-08-18 12:30:00 +00:00
|
|
|
# spec file for package libzimg
|
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
|
|
|
#
|
|
|
|
|
2017-08-18 12:30:00 +00:00
|
|
|
%define sover 2
|
2008-04-11 22:06:25 +00:00
|
|
|
|
|
|
|
Name: zimg
|
2017-08-18 12:30:00 +00:00
|
|
|
Summary: Scaling, colorspace conversion, and dithering library
|
2017-11-10 18:29:41 +00:00
|
|
|
Version: 2.6.2
|
2015-04-28 09:26:22 +00:00
|
|
|
Release: 0
|
2017-08-18 12:30:00 +00:00
|
|
|
Url: https://github.com/sekrit-twc/zimg
|
|
|
|
Source0: https://github.com/sekrit-twc/zimg/archive/release-%{version}.tar.gz
|
|
|
|
License: WTFPL
|
|
|
|
Group: Development/Libraries/C and C++
|
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-08-18 12:30:00 +00:00
|
|
|
%setup -n zimg-release-%{version}
|
2007-01-15 23:45:54 +00:00
|
|
|
|
|
|
|
%build
|
2017-08-18 12:30:00 +00:00
|
|
|
./autogen.sh
|
2015-04-28 09:26:22 +00:00
|
|
|
%configure \
|
2017-08-18 12:30:00 +00:00
|
|
|
--docdir=%{_docdir}/libzimg \
|
|
|
|
--enable-x86simd \
|
|
|
|
--disable-static
|
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:45:54 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-18 12:30:00 +00:00
|
|
|
%makeinstall
|
|
|
|
find %{buildroot} -iname '*.la' -delete
|
|
|
|
|
|
|
|
%post -n libzimg%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libzimg%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libzimg%{sover}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libzimg.so.2
|
|
|
|
%{_libdir}/libzimg.so.2.0.0
|
|
|
|
%dir %{_docdir}/libzimg
|
|
|
|
%doc %{_docdir}/libzimg/COPYING
|
|
|
|
%doc %{_docdir}/libzimg/README.md
|
|
|
|
%doc %{_docdir}/libzimg/ChangeLog
|
2007-01-15 23:45:54 +00:00
|
|
|
|
2017-08-18 12:30:00 +00:00
|
|
|
%files devel
|
2007-01-15 23:45:54 +00:00
|
|
|
%defattr(-,root,root)
|
2017-08-18 12:30:00 +00:00
|
|
|
%{_includedir}/zimg.h
|
|
|
|
%{_includedir}/zimg++.hpp
|
|
|
|
%{_libdir}/libzimg.so
|
|
|
|
%{_libdir}/pkgconfig/zimg.pc
|
|
|
|
%{_docdir}/libzimg/example/
|
2007-01-15 23:45:54 +00:00
|
|
|
|
2008-04-11 22:06:25 +00:00
|
|
|
%changelog
|