diff --git a/0001-modify-runtime-cleanup.patch b/0001-modify-runtime-cleanup.patch new file mode 100644 index 0000000000000000000000000000000000000000..59a648031a092642c8a8f9df82c703cf8875262c --- /dev/null +++ b/0001-modify-runtime-cleanup.patch @@ -0,0 +1,25 @@ +From d1eed943e082902b774680516b61c7e96cb65445 Mon Sep 17 00:00:00 2001 +From: zhangshaoning +Date: Thu, 25 Sep 2025 10:57:40 +0800 +Subject: [PATCH] modify runtime-cleanup + +--- + share/templates.d/99-generic/runtime-cleanup.tmpl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl +index 32ca9f0..1d4e274 100644 +--- a/share/templates.d/99-generic/runtime-cleanup.tmpl ++++ b/share/templates.d/99-generic/runtime-cleanup.tmpl +@@ -184,7 +184,7 @@ removefrom glibc-common /usr/bin/locale /usr/bin/sprof + removefrom glibc-common /usr/bin/tzselect + removefrom glibc-common /usr/sbin/* + removefrom gnutls /usr/share/locale/* +-removefrom google-noto-sans-cjk-ttc-fonts /usr/share/fonts/google-noto-cjk/NotoSansCJK-{Black,Bold,*Light,Medium,Thin}.ttc ++removepkg google-noto-cjk-fonts google-noto-sans-cjk-ttc-fonts google-noto-serif-cjk-ttc-fonts + removefrom grep /etc/* /usr/share/locale/* + removefrom gtk2 /usr/bin/update-gtk-immodules + removefrom gtk3 /usr/${libdir}/gtk-3.0/* +-- +2.18.2 + diff --git a/lorax.spec b/lorax.spec index 138db9af32ba88789cc6917c10bc07476d3548a2..5f7f5de749d6196d787de99282aa22e8b9322c82 100644 --- a/lorax.spec +++ b/lorax.spec @@ -3,7 +3,7 @@ Name: lorax Version: 34.1 -Release: 7 +Release: 8 Summary: A set of tools used to create bootable images License: GPLv2+ URL: https://github.com/weldr/lorax @@ -30,6 +30,7 @@ Patch17: 0001-pylorax-Fix-mksparse-ftruncate-size-handling.patch Patch100: 0001-support-loongarch-for-lorax.patch Patch200: 0001-add-sw64-architecture.patch Patch300: 0001-support-riscv64-for-lorax.patch +Patch400: 0001-modify-runtime-cleanup.patch BuildRequires: python3-devel python3-sphinx_rtd_theme python3-magic BuildRequires: python3-pytest python3-pytest-mock python3-pocketlint python3-gevent @@ -150,6 +151,8 @@ build images, etc. from the command line. %patch300 -p1 %endif +%patch400 -p1 + %build %make_build @@ -234,6 +237,9 @@ getent passwd weldr >/dev/null 2>&1 || useradd -r -g weldr -d / -s /sbin/nologin %{_mandir}/man1/*.1* %changelog +* Thu Sep 25 2025 zhangshaoning - 34.1-8 +- Remove unnecessary fonts + * Fri Dec 13 2024 liweigang - 34.1-7 - Clean spec