# remirepo/fedora spec file for libcgif # # Copyright (c) 2021-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global gh_commit b05de324c4413558bea330fb350ad4fd13396529 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20211001 %global gh_owner dloebl %global gh_project cgif %global libname libcgif %global soname 0 Name: %{libname} Summary: A fast and lightweight GIF encoder Version: 0.3.0 Release: 1%{?dist} License: MIT URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz BuildRequires: gcc BuildRequires: meson %description A fast and lightweight GIF encoder that can create GIF animations and images. Summary of the main features: - user-defined global or local color-palette with up to 256 colors (limit of the GIF format) - size-optimizations for GIF animations: - option to set a pixel to transparent if it has identical color in the previous frame (transparency optimization) - do encoding just for the rectangular area that differs from the previous frame (width/height optimization) - fast: a GIF with 256 colors and 1024x1024 pixels can be created in below 50 ms even on a minimalistic system - MIT license (permissive) - different options for GIF animations: static image, N repetitions, infinite repetitions - additional source-code for verifying the encoder after making changes - user-defined delay time from one frame to the next (can be set independently for each frame) - source-code conforms to the C99 standard %package devel Summary: Header files and development libraries for %{libname} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the header files and development libraries for %{libname}. %prep %setup -q -n %{gh_project}-%{gh_commit} %build %meson %meson_build %install %meson_install %check %meson_test %files %{!?_licensedir:%global license %%doc} %license LICENSE %{_libdir}/%{libname}.so.%{soname}* %files devel %doc README.md %{_libdir}/pkgconfig/%{gh_project}.pc %{_libdir}/%{libname}.so %{_includedir}/%{gh_project}.h %changelog * Mon Apr 25 2022 Remi Collet - 0.3.0-1 - update to 0.3.0 * Thu Mar 3 2022 Remi Collet - 0.2.1-1 - update to 0.2.1 * Wed Feb 16 2022 Remi Collet - 0.2.0-1 - update to 0.2.0 * Sun Jan 2 2022 Remi Collet - 0.1.0-1 - update to 0.1.0 * Mon Dec 13 2021 Remi Collet - 0.0.4-1 - update to 0.0.4 * Sun Nov 28 2021 Remi Collet - 0.0.3-1 - update to 0.0.3 * Tue Nov 9 2021 Remi Collet - 0.0.2-1 - update to 0.0.2 * Mon Nov 8 2021 Remi Collet - 0.0.1-1 - initial package - add patch to fix missing version in pc file reported as https://github.com/dloebl/cgif/issues/24 from https://github.com/dloebl/cgif/pull/26