Disable building .pdf documentation

epel9
Artur Frenszek-Iwicki 3 years ago
parent 13ce7ef7ec
commit 9e5426ac94

@ -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 <fedora@svgames.pl> - 3.2.2-8
- Disable building .pdf documentation (missing dependencies on EPEL9)
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

Loading…
Cancel
Save