From 9e5426ac9481a60410103a3eea04d0c9e05a2282 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Wed, 17 Aug 2022 09:28:29 +0200 Subject: [PATCH] Disable building .pdf documentation --- fpc.spec | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/fpc.spec b/fpc.spec index 5ecf952..4ee25d3 100644 --- a/fpc.spec +++ b/fpc.spec @@ -5,9 +5,12 @@ %global bootstrap 0 %endif +# As of 2022-08-17, on EPEL9, tex(imakeidx.sty) is not available. +%define with_pdfdoc 0 + Name: fpc Version: 3.2.2 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Free Pascal Compiler License: GPLv2+ and LGPLv2+ with exceptions @@ -77,11 +80,14 @@ BuildRequires: fpc %endif BuildRequires: glibc-devel BuildRequires: make + +%if 0%{?with_pdfdoc} BuildRequires: tex(imakeidx.sty) BuildRequires: tex(latex) BuildRequires: tex(tex) BuildRequires: tex(upquote.sty) BuildRequires: tetex-fonts +%endif ExclusiveArch: %{arm} aarch64 %{ix86} x86_64 ppc64le @@ -96,9 +102,14 @@ runtime library (RTL), free component library (FCL) and packages. %package doc Summary: Free Pascal Compiler - documentation and examples +%if 0%{?with_pdfdoc} %description doc The fpc-doc package contains the documentation (in pdf format) and examples of Free Pascal. +%else +%description doc +The fpc-doc package contains code examples for Free Pascal. +%endif %package src Summary: Free Pascal Compiler - sources @@ -183,7 +194,11 @@ make %{?_smp_mflags} utils_all FPC=${NEWPP} DATA2INC=${DATA2INC} OPT='%{fpcopt} popd # FIXME: -j1 as there is a race - seen on "missing" `rtl.xct'. +%if 0%{?with_pdfdoc} make -j1 -C fpcdocs pdf FPC=${NEWPP} +%else +make -j1 -C fpcdocs FPC=${NEWPP} +%endif %install pushd fpcsrc @@ -208,7 +223,11 @@ make -C doc ${INSTALLOPTS} make -C man ${INSTALLOPTS} INSTALL_MANDIR=%{buildroot}%{_mandir} popd +%if 0%{?with_pdfdoc} make -C fpcdocs pdfinstall ${INSTALLOPTS} +%else +make -C fpcdocs ${INSTALLOPTS} +%endif # create link ln -sf ../%{_lib}/%{name}/%{version}/%{ppcname} %{buildroot}%{_bindir}/%{ppcname} @@ -261,14 +280,19 @@ rm -rf %{buildroot}/usr/lib/%{name}/lexyacc %files doc %dir %{_defaultdocdir}/%{name}/ -%doc %{_defaultdocdir}/%{name}/*.pdf %doc %{_defaultdocdir}/%{name}/*/* +%if 0%{?with_pdfdoc} +%doc %{_defaultdocdir}/%{name}/*.pdf +%endif %files src %{_datadir}/fpcsrc %changelog +* Wed Aug 17 2022 Artur Frenszek-Iwicki - 3.2.2-8 +- Disable building .pdf documentation (missing dependencies on EPEL9) + * Thu Jul 21 2022 Fedora Release Engineering - 3.2.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild