enable make check
(cherry picked from commit ad8a31b1cddc4a7208bf3a1bfd1112eba7d71008)
This commit is contained in:
parent
4f81e4053b
commit
f19d7b5ba9
BIN
As.I.Lay.Dying.ttf
Normal file
BIN
As.I.Lay.Dying.ttf
Normal file
Binary file not shown.
@ -4,7 +4,7 @@
|
||||
|
||||
Name: freetype
|
||||
Version: 2.12.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: FreeType is a freely available software library to render fonts
|
||||
License: (FTL or GPLv2+) and BSD and MIT and Public Domain and zlib with acknowledgement
|
||||
URL: http://www.freetype.org
|
||||
@ -12,6 +12,8 @@ Source0: http://download.savannah.gnu.org/releases/freetype/freetype-%{ve
|
||||
Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.xz
|
||||
Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.xz
|
||||
Source3: ftconfig.h
|
||||
#from tests/scripts/download-test-fonts.py:https://github.com/python-pillow/Pillow/files/6622147/As.I.Lay.Dying.zip
|
||||
Source4: As.I.Lay.Dying.ttf
|
||||
|
||||
Patch1: backport-freetype-2.5.2-more-demos.patch
|
||||
Patch6000: backport-freetype-2.3.0-enable-spr.patch
|
||||
@ -22,7 +24,7 @@ Patch6004: backport-freetype-2.10.0-internal-outline.patch
|
||||
Patch6005: backport-freetype-2.10.1-debughook.patch
|
||||
Patch6006: backport-CVE-2023-2004.patch
|
||||
|
||||
BuildRequires: gcc libX11-devel libpng-devel zlib-devel bzip2-devel
|
||||
BuildRequires: gcc libX11-devel libpng-devel zlib-devel bzip2-devel meson
|
||||
|
||||
Provides: %{name}-bytecode
|
||||
%if %{?_with_subpixel_rendering:1}%{!?_with_subpixel_rendering:0}
|
||||
@ -116,6 +118,13 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/co
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%check
|
||||
mkdir -p tests/data/
|
||||
cp %{SOURCE4} tests/data/
|
||||
meson setup out -Dtests=enabled
|
||||
meson compile -C out
|
||||
meson test -C out
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT
|
||||
@ -142,6 +151,9 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/co
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Tue Nov 14 2023 zhangpan <zhangpan103@h-partners.com> - 2.12.1-3
|
||||
- enable make check
|
||||
|
||||
* Mon Apr 17 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.12.1-2
|
||||
- fix CVE-2023-2004
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user