texlive/config.yaml
2026-01-14 16:04:06 +03:00

63 lines
2.3 KiB
YAML

actions:
- replace:
- target: "spec"
find: |
# Remove xdvi due to X11 removal from rhel10/c10s
%global xdvi 0
replace: |
# Remove xdvi due to X11 removal from rhel10/c10s
%global xdvi 0
# texlive tex4ht java classes are not built for i686 as it requires javac for building
%ifarch %{ix86}
%global build_tex4ht_java 0
%else
%global build_tex4ht_java 1
%endif
count: 1
- target: "spec"
find: |
BuildRequires: /usr/bin/javac
replace: |
%if 0%{?build_tex4ht_java}
BuildRequires: /usr/bin/javac
%endif
count: 1
- target: "spec"
find: |
# build java classes for tex4ht from source and remove the prebuilt one
mkdir tex4ht-java
cd ../texk/tex4htk/java
javac *.java */*.java */*/*.java -d ../../../work/tex4ht-java
cd ../../../work/tex4ht-java
jar cvf ../tex4ht-java/tex4ht.jar .
replace: |
%if 0%{?build_tex4ht_java}
# build java classes for tex4ht from source and remove the prebuilt one
mkdir tex4ht-java
cd ../texk/tex4htk/java
javac *.java */*.java */*/*.java -d ../../../work/tex4ht-java
cd ../../../work/tex4ht-java
jar cvf ../tex4ht-java/tex4ht.jar .
%endif
count: 1
- target: "spec"
find: |
# install java classes for tex4ht from source and remove the prebuilt one
cp -f source/work/tex4ht-java/tex4ht.jar %{buildroot}%{_texdir}/texmf-dist/tex4ht/bin/tex4ht.jar
replace: |
%if 0%{?build_tex4ht_java}
# install java classes for tex4ht from source and remove the prebuilt one
cp -f source/work/tex4ht-java/tex4ht.jar %{buildroot}%{_texdir}/texmf-dist/tex4ht/bin/tex4ht.jar
%endif
count: 1
- modify_release:
- suffix: ".alma.1"
- changelog_entry:
- name: "Eduard Abdullin"
email: "eabdullin@almalinux.org"
line:
- "Exclude tex4ht-java classes for i686 as it requires javac for building"