[packages/openjdk25] R: pandoc for man pages (pre-generated ones no longer provided)
atler
atler at pld-linux.org
Thu Apr 23 13:00:53 CEST 2026
commit 7c86cf506e93d8ea2f19e77c64acb24f4a4d68ad
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Apr 23 13:00:00 2026 +0200
R: pandoc for man pages (pre-generated ones no longer provided)
openjdk25.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/openjdk25.spec b/openjdk25.spec
index ef5e021..3806f46 100644
--- a/openjdk25.spec
+++ b/openjdk25.spec
@@ -1,5 +1,6 @@
%bcond_with bootstrap # build a bootstrap version, using older jdk
%bcond_without cacerts # don't include the default CA certificates
+%bcond_without pandoc # man pages (pandoc required)
%if %{with bootstrap}
%define use_jdk openjdk24
@@ -54,6 +55,7 @@ BuildRequires: lcms2-devel >= 2.11
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel >= 2:1.6.37
BuildRequires: lsb-release
+%{?with_pandoc:BuildRequires: pandoc}
BuildRequires: pcsc-lite-devel
BuildRequires: pkgconfig
BuildRequires: rpm-build >= 4.6
@@ -429,9 +431,11 @@ ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/java
mv $RPM_BUILD_ROOT%{dstdir}/demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
mv $RPM_BUILD_ROOT%{dstdir}/lib/src.zip $RPM_BUILD_ROOT%{_javasrcdir}/%{name}-jdk.zip
+%if %{with pandoc}
# move manual pages to its place
mv $RPM_BUILD_ROOT%{dstdir}/man/man1 $RPM_BUILD_ROOT%{_mandir}/man1
rmdir $RPM_BUILD_ROOT%{dstdir}/man
+%endif
# replace duplicates with symlinks, link to %{_bindir}
for path in $RPM_BUILD_ROOT%{dstdir}/bin/*; do
@@ -482,6 +486,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/jwebserver
%attr(755,root,root) %{_bindir}/serialver
%{_jvmdir}/java
+%if %{with pandoc}
%{_mandir}/man1/jarsigner.1*
%{_mandir}/man1/javac.1*
%{_mandir}/man1/javadoc.1*
@@ -505,6 +510,7 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/jstatd.1*
%{_mandir}/man1/jwebserver.1*
%{_mandir}/man1/serialver.1*
+%endif
%files jdk-base
%defattr(644,root,root,755)
@@ -545,11 +551,13 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/jrunscript
%attr(755,root,root) %{_bindir}/keytool
%attr(755,root,root) %{_bindir}/rmiregistry
+%if %{with pandoc}
%{_mandir}/man1/java.1*
%{_mandir}/man1/jfr.1*
%{_mandir}/man1/jrunscript.1*
%{_mandir}/man1/keytool.1*
%{_mandir}/man1/rmiregistry.1*
+%endif
%files jre-base
%defattr(644,root,root,755)
@@ -641,7 +649,7 @@ rm -rf $RPM_BUILD_ROOT
%files jar
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/jar
-%{_mandir}/man1/jar.1*
+%{?with_pandoc:%{_mandir}/man1/jar.1*}
%files jdk-sources
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openjdk25.git/commitdiff/9ae8c9050a41fddd07e6fe8b27401d7325c3ccf2
More information about the pld-cvs-commit
mailing list