Resolves: RHEL-25202 - Enable building with FreeType support

This commit is contained in:
Jitka Plesnikova 2024-03-14 09:14:05 +01:00
parent 09b5bcc2d7
commit cdd99b8ca1

View File

@ -5,7 +5,7 @@
Name: perl-Tk
Version: 804.035
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Perl Graphical User Interface ToolKit
License: (GPL+ or Artistic) and SWL
@ -19,7 +19,8 @@ Patch2: perl-Tk-seg.patch
# Versions before this have Unicode issues
BuildRequires: make
BuildRequires: coreutils
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: perl-devel >= 3:5.8.3
BuildRequires: perl-generators
@ -64,6 +65,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
@ -130,18 +132,18 @@ chmod -x pod/Popup.pod Tixish/lib/Tk/balArrow.xbm
%{__perl} -pi -e \
's,\@demopath\@,%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/demos,g' demos/widget
# debian patch
#%%patch1 -p1
#%%patch -P1 -p1
# patch to fix #235666 ... seems like caching code is broken
%patch2 -p1 -b .seg
%patch -P2 -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}
%check
%if %{use_x11_tests}
xvfb-run -a make test
xvfb-run -d make test
%endif
%install
@ -180,6 +182,10 @@ find __demos/ -type f -exec chmod -x {} \;
%changelog
* Wed Mar 13 2024 Jitka Plesnikova <jplesnik@redhat.com> - 804.035-8
- Enable building with FreeType support
- Resolves: RHEL-25202
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 804.035-7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688