Compare commits
10 Commits
5a82e11f4b
...
3d716967fd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d716967fd | ||
|
|
cde02f4183 | ||
|
|
edc0b40349 | ||
|
|
b8aa4cbfb7 | ||
|
|
daf2f94186 | ||
|
|
d47f500e34 | ||
|
|
ad6465a624 | ||
|
|
78799d21c1 | ||
|
|
93da8a5966 | ||
|
|
7138813857 |
BIN
As.I.Lay.Dying.ttf
Normal file
BIN
As.I.Lay.Dying.ttf
Normal file
Binary file not shown.
Binary file not shown.
BIN
freetype-2.13.2.tar.xz
Normal file
BIN
freetype-2.13.2.tar.xz
Normal file
Binary file not shown.
Binary file not shown.
BIN
freetype-doc-2.13.2.tar.xz
Normal file
BIN
freetype-doc-2.13.2.tar.xz
Normal file
Binary file not shown.
@ -2,16 +2,20 @@
|
||||
|
||||
%{!?with_xfree86:%define with_xfree86 1}
|
||||
|
||||
%bcond_without harfbuzz
|
||||
|
||||
Name: freetype
|
||||
Version: 2.12.1
|
||||
Release: 1
|
||||
Version: 2.13.2
|
||||
Release: 2
|
||||
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
|
||||
Source0: http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.xz
|
||||
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
|
||||
License: (FTL OR GPL-2.0-or-later) AND BSD-3-Clause AND MIT AND MIT-Modern-Variant AND Zlib
|
||||
URL: https://www.freetype.org
|
||||
Source0: https://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.xz
|
||||
Source1: https://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.xz
|
||||
Source2: https://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
|
||||
@ -21,11 +25,18 @@ Patch6003: backport-freetype-2.8-multilib.patch
|
||||
Patch6004: backport-freetype-2.10.0-internal-outline.patch
|
||||
Patch6005: backport-freetype-2.10.1-debughook.patch
|
||||
|
||||
BuildRequires: gcc libX11-devel libpng-devel zlib-devel bzip2-devel
|
||||
BuildRequires: gcc meson
|
||||
BuildRequires: pkgconfig(bzip2)
|
||||
BuildRequires: pkgconfig(libbrotlidec)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
%if %{with harfbuzz}
|
||||
BuildRequires: pkgconfig(harfbuzz) >= 2.0.0
|
||||
%endif
|
||||
|
||||
Provides: %{name}-bytecode
|
||||
Provides: %{name}-bytecode = %{version}-%{release}
|
||||
%if %{?_with_subpixel_rendering:1}%{!?_with_subpixel_rendering:0}
|
||||
Provides: %{name}-subpixel
|
||||
Provides: %{name}-subpixel = %{version}-%{release}
|
||||
%endif
|
||||
|
||||
%description
|
||||
@ -41,35 +52,39 @@ The FreeType engine is a free and portable font rendering engine,developed to pr
|
||||
|
||||
%package devel
|
||||
Summary: FreeType development libraries and header files
|
||||
Requires: %{name} = %{version}-%{release} pkgconf
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The freetype-devel package includes the static libraries and header files
|
||||
for the FreeType font rendering engine.Install freetype-devel if you want to develop programs which will use
|
||||
FreeType.
|
||||
|
||||
%package help
|
||||
Summary: Documents for freetype
|
||||
Buildarch: noarch
|
||||
|
||||
%description help
|
||||
Man pages and other related for freetype documents.
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%setup -q -b 1 -a 2
|
||||
%setup -q -b 1 -a 2
|
||||
|
||||
pushd ft2demos-%{version}
|
||||
%patch1 -p1 -b .more-demos
|
||||
%patch -P1 -p1 -b .more-demos
|
||||
popd
|
||||
%patch6000 -p1
|
||||
%patch6001 -p1
|
||||
%patch6002 -p1
|
||||
%patch6003 -p1
|
||||
%patch6004 -p1
|
||||
%patch6005 -p1
|
||||
%patch -P6000 -p1
|
||||
%patch -P6001 -p1
|
||||
%patch -P6002 -p1
|
||||
%patch -P6003 -p1
|
||||
%patch -P6004 -p1
|
||||
%patch -P6005 -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static --with-zlib=yes --with-bzip2=yes --with-png=yes --enable-freetype-config --with-harfbuzz=no
|
||||
%configure --disable-static \
|
||||
--with-zlib=yes \
|
||||
--with-bzip2=yes \
|
||||
--with-png=yes \
|
||||
%if %{with harfbuzz}
|
||||
--with-harfbuzz=yes \
|
||||
%else
|
||||
--with-harfbuzz=no \
|
||||
%endif
|
||||
--enable-freetype-config
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' builds/unix/libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' builds/unix/libtool
|
||||
%make_build
|
||||
@ -80,7 +95,8 @@ make TOP_DIR=".."
|
||||
%endif
|
||||
|
||||
%install
|
||||
%make_install gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
|
||||
%make_install
|
||||
%delete_la
|
||||
{
|
||||
for ftdemo in ftbench ftchkwd ftmemchk ftpatchk fttimer ftdump ftlint ftmemchk ftvalid ; do
|
||||
builds/unix/libtool --mode=install install -m 755 ft2demos-%{version}/bin/$ftdemo $RPM_BUILD_ROOT/%{_bindir}
|
||||
@ -110,12 +126,14 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/co
|
||||
exit 0
|
||||
}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%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
|
||||
%{_libdir}/libfreetype.so.*
|
||||
|
||||
@ -128,7 +146,6 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/co
|
||||
%{_libdir}/libfreetype.so
|
||||
%{_libdir}/pkgconfig/freetype2.pc
|
||||
%{_bindir}/freetype-config
|
||||
%exclude %{_libdir}/*.{a,la}
|
||||
|
||||
%files help
|
||||
%doc docs/design
|
||||
@ -140,6 +157,22 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/freetype2/freetype/co
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Sun Aug 11 2024 Funda Wang <fundawang@yeah.net> - 2.13.2-2
|
||||
- Cleanup spec
|
||||
- Conditioned build harfbuzz support
|
||||
|
||||
* Thu Dec 28 2023 Paul Thomas <paulthomas100199@gmail.com> - 2.13.2-1
|
||||
- update to version 2.13.2
|
||||
|
||||
* Wed Sep 20 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.13.1-2
|
||||
- enable check
|
||||
|
||||
* Fri Jul 14 2023 zhangpan <zhangpan103@h-partners.com> - 2.13.1-1
|
||||
- update to 2.13.1
|
||||
|
||||
* Mon Apr 17 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.12.1-2
|
||||
- fix CVE-2023-2004
|
||||
|
||||
* Tue Nov 29 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 2.12.1-1
|
||||
- update to 2.12.1
|
||||
|
||||
|
||||
Binary file not shown.
BIN
ft2demos-2.13.2.tar.xz
Normal file
BIN
ft2demos-2.13.2.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user