forked from pool/libimagequant
Accepting request 542467 from home:dimstar:Factory
Split out from pngquant; plase forward to oS:F, since appstream-glib will start using pngquant OBS-URL: https://build.opensuse.org/request/show/542467 OBS-URL: https://build.opensuse.org/package/show/graphics/libimagequant?expand=0&rev=1
This commit is contained in:
commit
d135d660cf
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
libimagequant-2.11.3.tar.gz
Normal file
3
libimagequant-2.11.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8ec2cbfcf910a64479a03846798615914e8aa430075c9d84a6e3a714d04217e6
|
||||
size 74079
|
5
libimagequant.changes
Normal file
5
libimagequant.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 16 15:42:54 UTC 2017 - dimstar@opensuse.org
|
||||
|
||||
- Initial package, version 2.11.3 (library got split out from
|
||||
pngquant).
|
77
libimagequant.spec
Normal file
77
libimagequant.spec
Normal file
@ -0,0 +1,77 @@
|
||||
#
|
||||
# spec file for package libimagequant
|
||||
#
|
||||
# Copyright (c) 2017 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
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define sover 0
|
||||
%define libname %{name}%{sover}
|
||||
Name: libimagequant
|
||||
Version: 2.11.3
|
||||
Release: 0
|
||||
Summary: Palette quantization library
|
||||
License: GPL-3.0+
|
||||
Group: Development/Languages/C and C++
|
||||
URL: https://github.com/ImageOptim/libimagequant
|
||||
Source: https://github.com/ImageOptim/libimagequant/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
%description
|
||||
Small, portable C library for high-quality conversion of RGBA images to 8-bit
|
||||
indexed-color (palette) images.
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: Palette quantization library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libname}
|
||||
Small, portable C library for high-quality conversion of RGBA images to 8-bit
|
||||
indexed-color (palette) images.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libimagequant
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: %{libname} = %{version}
|
||||
|
||||
%description devel
|
||||
Small, portable C library for high-quality conversion of RGBA images to 8-bit
|
||||
indexed-color (palette) images.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
# This is not an autoconf configure, but the script simply ignores parameters it does not know
|
||||
%configure
|
||||
make %{?_smp_mflags} shared
|
||||
|
||||
%install
|
||||
# Manual installation, the Makefile has no install target
|
||||
install -Dpm 0755 %{name}.so.0 %{buildroot}%{_libdir}/%{name}.so.0
|
||||
ln -s %{name}.so.0 %{buildroot}%{_libdir}/%{name}.so
|
||||
install -Dpm 0644 %{name}.h %{buildroot}%{_includedir}/%{name}.h
|
||||
|
||||
%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
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user