diff options
author | Remi Collet <remi@remirepo.net> | 2021-03-17 14:07:04 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-03-17 14:07:04 +0100 |
commit | 4a5c2d3bbb6601767c9eac6dfb13f4cf2e7cc4c6 (patch) | |
tree | 1091e56c7f536f60e6e66e1299dd1bc6111e3320 /gd.spec | |
parent | c4eb4636c2f19cc5c15c972528bc6df7168ab79f (diff) |
enable avif support on Fedora 33+
Diffstat (limited to 'gd.spec')
-rw-r--r-- | gd.spec | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -15,7 +15,7 @@ %bcond_without webp %bcond_without raqm -%if 0%{?fedora} >= 34 +%if 0%{?fedora} >= 33 %bcond_without avif %else # Not available or too old @@ -45,7 +45,7 @@ Name: gd Name: gd-last %endif Version: 2.3.2 -Release: 2%{?prever}%{?short}%{?dist} +Release: 3%{?prever}%{?short}%{?dist} License: MIT URL: http://libgd.github.io/ %if 0%{?commit:1} @@ -58,6 +58,8 @@ Source0: https://github.com/libgd/libgd/releases/download/gd-%{version}/li # Missing, temporary workaround, fixed upstream for next version Source1: https://raw.githubusercontent.com/libgd/libgd/gd-%{version}/tests/heif/label.heic +Patch0: libgd-upstream.patch + BuildRequires: freetype-devel BuildRequires: fontconfig-devel BuildRequires: gettext-devel @@ -78,10 +80,10 @@ BuildRequires: libimagequant-devel BuildRequires: libraqm-devel %endif %if %{with avif} -BuildRequires: libavif-devel +BuildRequires: libavif-devel >= 0.8.2 %endif %if %{with heif} -BuildRequires: libheif-devel +BuildRequires: libheif-devel >= 1.7.0 %endif BuildRequires: libX11-devel BuildRequires: libXpm-devel @@ -166,6 +168,7 @@ files for gd, a graphics library for creating PNG and JPEG graphics. %prep %setup -q -n libgd-%{version}%{?prever:-%{prever}} install -m 0644 %{SOURCE1} tests/heif/ +%patch0 -p1 -b .up : $(perl config/getver.pl) @@ -277,6 +280,9 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %changelog +* Wed Mar 17 2021 Remi Collet <remi@remirepo.net> - 2.3.2-3 +- enable avif support on Fedora 33+ + * Mon Mar 8 2021 Remi Collet <remi@remirepo.net> - 2.3.2-2 - enable avif support on Fedora 34 |