Add specfile patch from Mauro Carvalho Chehab to fix building with FreeType support (RHBZ#1803711, RHBZ#1853802)

This commit is contained in:
Xavier Bachelot 2021-06-28 16:24:47 +02:00
parent 4f0574088c
commit 20e39abd0c

View File

@ -5,7 +5,7 @@
Name: perl-Tk
Version: 804.036
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Perl Graphical User Interface ToolKit
License: (GPL+ or Artistic) and SWL
@ -19,7 +19,7 @@ Patch2: perl-Tk-seg.patch
# Versions before this have Unicode issues
BuildRequires: make
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: perl-devel >= 3:5.8.3
BuildRequires: perl-generators
@ -64,6 +64,7 @@ BuildRequires: perl(XSLoader)
# X11 tests:
BuildRequires: xorg-x11-server-Xvfb
BuildRequires: xorg-x11-xinit
BuildRequires: google-noto-sans-fonts
BuildRequires: font(:lang=en)
# Specific font is needed for tests, bug #1141117, CPAN RT#98831
BuildRequires: liberation-sans-fonts
@ -135,7 +136,7 @@ chmod -x pod/Popup.pod Tixish/lib/Tk/balArrow.xbm
%patch2 -p1 -b .seg
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor X11LIB=%{_libdir} XFT=0
%{__perl} Makefile.PL INSTALLDIRS=vendor X11LIB=%{_libdir} XFT=1
find . -name Makefile | xargs %{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/'
make %{?_smp_mflags}
@ -180,6 +181,10 @@ find __demos/ -type f -exec chmod -x {} \;
%changelog
* Mon Jun 28 2021 Xavier Bachelot <xavier@bachelot.org> - 804.036-3
- Add specfile patch from Mauro Carvalho Chehab to fix building with FreeType
support (RHBZ#1803711, RHBZ#1853802)
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 804.036-2
- Perl 5.34 rebuild