2017-11-17 02:43:21 +01:00
|
|
|
#
|
|
|
|
# spec file for package libimagequant
|
|
|
|
#
|
2019-02-18 18:27:17 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-11-17 02:43:21 +01: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-03-20 16:30:32 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2017-11-17 02:43:21 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define sover 0
|
|
|
|
%define libname %{name}%{sover}
|
|
|
|
Name: libimagequant
|
2019-03-20 16:30:32 +01:00
|
|
|
Version: 2.12.2
|
2017-11-17 02:43:21 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Palette quantization library
|
2019-02-18 18:27:17 +01:00
|
|
|
License: GPL-3.0-or-later
|
2017-11-17 02:43:21 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2019-03-20 16:30:32 +01:00
|
|
|
Url: https://pngquant.org/lib/
|
2017-11-17 02:43:21 +01:00
|
|
|
Source: https://github.com/ImageOptim/libimagequant/archive/%{version}/%{name}-%{version}.tar.gz
|
2019-03-20 16:30:32 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(lcms2)
|
2017-11-17 02:43:21 +01:00
|
|
|
|
|
|
|
%description
|
2019-02-18 18:27:17 +01:00
|
|
|
C library for conversion of RGBA images to 8-bit indexed-color
|
|
|
|
(palette) images.
|
2017-11-17 02:43:21 +01:00
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Palette quantization library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
2019-02-18 18:27:17 +01:00
|
|
|
C library for conversion of RGBA images to 8-bit indexed-color
|
|
|
|
(palette) images.
|
2017-11-17 02:43:21 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libimagequant
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
2019-02-18 18:27:17 +01:00
|
|
|
C library for conversion of RGBA images to 8-bit indexed-color
|
|
|
|
(palette) images.
|
2017-11-17 02:43:21 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
# This is not an autoconf configure, but the script simply ignores parameters it does not know
|
2019-03-20 16:30:32 +01:00
|
|
|
%configure --with-openmp
|
|
|
|
make %{?_smp_mflags}
|
2017-11-17 02:43:21 +01:00
|
|
|
|
|
|
|
%install
|
2019-03-20 16:30:32 +01:00
|
|
|
%make_install
|
|
|
|
|
|
|
|
# work around --disable-static not working
|
|
|
|
find %{buildroot} \( -name '*.a' -o -name '*.la' \) -print -delete
|
2017-11-17 02:43:21 +01:00
|
|
|
|
|
|
|
%post -n libimagequant0 -p /sbin/ldconfig
|
|
|
|
%postun -n libimagequant0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libimagequant0
|
|
|
|
%doc README.md CHANGELOG
|
|
|
|
%license COPYRIGHT
|
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_includedir}/%{name}.h
|
2019-03-20 16:30:32 +01:00
|
|
|
%{_libdir}/pkgconfig/imagequant.pc
|
2017-11-17 02:43:21 +01:00
|
|
|
|
|
|
|
%changelog
|