From ac4662546b3da9a8c0abd1fb5617f4823890692f Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Wed, 10 Jan 2024 10:50:56 +0800 Subject: [PATCH 1/7] test --- texlive-base.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/texlive-base.spec b/texlive-base.spec index 02108a9..8f0ac28 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -4,7 +4,7 @@ Name: texlive-base Version: 20180414 -Release: 36 +Release: 399 Epoch: 7 Summary: TeX formatting system License: ASL 2.0 and LGPL-2.1-only and Zlib and OFL-1.1 and Public Domain and LGPL-2.0-only and GPLv2+ and MPL-1.1 and Libpng and LGPL-3.0-only and BSL-1.0 and GPLv2 and GPLv3 and CPL-1.0 and IJG and MIT and LPPL-1.3c and ICU and psutils -- Gitee From 35575d309b968c290eabdbbce5668f720dba116b Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Thu, 11 Jan 2024 14:49:12 +0800 Subject: [PATCH 2/7] test2 --- texlive-base.spec | 76 +---------------------------------------------- 1 file changed, 1 insertion(+), 75 deletions(-) diff --git a/texlive-base.spec b/texlive-base.spec index 8f0ac28..e842738 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -4,7 +4,7 @@ Name: texlive-base Version: 20180414 -Release: 399 +Release: 3999 Epoch: 7 Summary: TeX formatting system License: ASL 2.0 and LGPL-2.1-only and Zlib and OFL-1.1 and Public Domain and LGPL-2.0-only and GPLv2+ and MPL-1.1 and Libpng and LGPL-3.0-only and BSL-1.0 and GPLv2 and GPLv3 and CPL-1.0 and IJG and MIT and LPPL-1.3c and ICU and psutils @@ -6052,80 +6052,6 @@ file `find %{buildroot}/%{_libdir} -type f` | grep -w ELF | awk -F: '{print $1}' mkdir -p %{buildroot}/etc/ld.so.conf.d echo "/home/abuild/rpmbuild/BUILD/texlive-20180414-source/source/inst/lib" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%pretrans -p -path = "/usr/share/texmf" -st = posix.stat(path) -if st and st.type == "directory" then - status = os.rename(path, path .. ".rpmmoved") - if not status then - suffix = 0 - while not status do - suffix = suffix + 1 - status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix) - end - os.rename(path, path .. ".rpmmoved") - end -end - -%pre -rm -rf %{_datadir}/texlive/texmf-var -rm -rf %{_var}/lib/texmf/* -: - -%posttrans -if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then -[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_var}/lib/texmf/ -fi -: - -%transfiletriggerin -n texlive-kpathsea -- %{_datadir}/texlive -%{_bindir}/texhash 2> /dev/null || : -export TEXMF=/usr/share/texlive/texmf-dist -export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c -export TEXMFCACHE=/var/lib/texmf -%{_bindir}/mtxrun --generate &> /dev/null || : -%{_bindir}/fmtutil-sys --all &> /dev/null || : - -%transfiletriggerpostun -n texlive-kpathsea -- %{_datadir}/texlive -%{_bindir}/texhash 2> /dev/null || : - -%transfiletriggerin -n texlive-kpathsea -- %{_datadir}/texlive/texmf-dist/fonts/map/dvips/ -list=`grep "\.map" | sort -n | uniq` -while read -r line; do - [ -z "$line" ] && continue - shortfile=`basename "$line"` - if `echo $shortfile | grep -Eq 'allrunes.map|arabtex.map|arss.map|artm.map|bbold.map|cbgreek-full.map|ccpl.map|cmextra.map|cmll.map|cm.map|cm-super-t1.map|cm-super-t2a.map|cm-super-t2b.map|cm-super-t2c.map|cm-super-ts1.map|cm-super-x2.map|cmtext-bsr-interpolated.map|cyrillic.map|dvng.map|esint.map|ethiop.map|eurosym.map|hfbright.map|iby.map|latxfont.map|lxfonts.map|manfnt.map|mflogo.map|mongolian.map|musix.map|pigpen.map|plother.map|pltext.map|rsfs.map|semaf.map|stmaryrd.map|symbols.map|tipa.map|trajan.map|vnrother.map|vnrtext.map|wasy.map|xypic.map|yhmath.map'`; then - %{_bindir}/updmap-sys --nomkmap --enable MixedMap=$shortfile >/dev/null 2>&1 || : - else - %{_bindir}/updmap-sys --nomkmap --enable Map=$shortfile >/dev/null 2>&1 || : - fi -done <<< "$list" -%{_bindir}/updmap-sys --quiet --nomkmap >/dev/null || : - -%transfiletriggerpostun -n texlive-kpathsea -- %{_datadir}/texlive/texmf-dist/fonts/map/dvips/ -list=`grep "\.map" | sort -n | uniq` -while read -r line; do - [ -z "$line" ] && continue - shortfile=`basename "$line"` - if `echo $shortfile | grep -Eq 'allrunes.map|arabtex.map|arss.map|artm.map|bbold.map|cbgreek-full.map|ccpl.map|cmextra.map|cmll.map|cm.map|cm-super-t1.map|cm-super-t2a.map|cm-super-t2b.map|cm-super-t2c.map|cm-super-ts1.map|cm-super-x2.map|cmtext-bsr-interpolated.map|cyrillic.map|dvng.map|esint.map|ethiop.map|eurosym.map|hfbright.map|iby.map|latxfont.map|lxfonts.map|manfnt.map|mflogo.map|mongolian.map|musix.map|pigpen.map|plother.map|pltext.map|rsfs.map|semaf.map|stmaryrd.map|symbols.map|tipa.map|trajan.map|vnrother.map|vnrtext.map|wasy.map|xypic.map|yhmath.map'`; then - %{_bindir}/updmap-sys --nomkmap --disable MixedMap=$shortfile >/dev/null 2>&1 || : - else - %{_bindir}/updmap-sys --nomkmap --disable Map=$shortfile >/dev/null 2>&1 || : - fi -done <<< "$list" -%{_bindir}/updmap-sys --quiet --nomkmap >/dev/null || : - -%transfiletriggerin -n texlive-kpathsea -P 2000000 -- %{_datadir}/texlive/fmtutil.cnf.d/ -%{_sbindir}/generate-fmtutilcnf %{_datadir}/texlive - -%transfiletriggerpostun -n texlive-kpathsea -P 2000000 -- %{_datadir}/texlive/fmtutil.cnf.d/ -%{_sbindir}/generate-fmtutilcnf %{_datadir}/texlive %files %{_datadir}/texlive/licenses/ -- Gitee From 27e42d87b6475ed1ad78fcc4866f712d638b73d8 Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Thu, 11 Jan 2024 16:40:19 +0800 Subject: [PATCH 3/7] test3 --- texlive-base.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/texlive-base.spec b/texlive-base.spec index e842738..25c42c9 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -2383,6 +2383,7 @@ Requires: coreutils grep texlive-base texlive-tetex Provides: tex(fmtutil.cnf) = %{epoch}:20180414-%{release} Provides: tex(mktex.cnf) = %{epoch}:20180414-%{release} Provides: tex(texmf.cnf) = %{epoch}:20180414-%{release} +Requires(post): texlive-texlive-scripts = %{epoch}:20180414-%{release} %description -n texlive-kpathsea Kpathsea is a library and utility programs which provide path @@ -6052,6 +6053,80 @@ file `find %{buildroot}/%{_libdir} -type f` | grep -w ELF | awk -F: '{print $1}' mkdir -p %{buildroot}/etc/ld.so.conf.d echo "/home/abuild/rpmbuild/BUILD/texlive-20180414-source/source/inst/lib" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%pretrans -p +path = "/usr/share/texmf" +st = posix.stat(path) +if st and st.type == "directory" then + status = os.rename(path, path .. ".rpmmoved") + if not status then + suffix = 0 + while not status do + suffix = suffix + 1 + status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix) + end + os.rename(path, path .. ".rpmmoved") + end +end + +%pre +rm -rf %{_datadir}/texlive/texmf-var +rm -rf %{_var}/lib/texmf/* +: + +%posttrans +if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then +[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_var}/lib/texmf/ +fi +: + +%transfiletriggerin -n texlive-kpathsea -- %{_datadir}/texlive +%{_bindir}/texhash 2> /dev/null || : +export TEXMF=/usr/share/texlive/texmf-dist +export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c +export TEXMFCACHE=/var/lib/texmf +%{_bindir}/mtxrun --generate &> /dev/null || : +%{_bindir}/fmtutil-sys --all &> /dev/null || : + +%transfiletriggerpostun -n texlive-kpathsea -- %{_datadir}/texlive +%{_bindir}/texhash 2> /dev/null || : + +%transfiletriggerin -n texlive-kpathsea -- %{_datadir}/texlive/texmf-dist/fonts/map/dvips/ +list=`grep "\.map" | sort -n | uniq` +while read -r line; do + [ -z "$line" ] && continue + shortfile=`basename "$line"` + if `echo $shortfile | grep -Eq 'allrunes.map|arabtex.map|arss.map|artm.map|bbold.map|cbgreek-full.map|ccpl.map|cmextra.map|cmll.map|cm.map|cm-super-t1.map|cm-super-t2a.map|cm-super-t2b.map|cm-super-t2c.map|cm-super-ts1.map|cm-super-x2.map|cmtext-bsr-interpolated.map|cyrillic.map|dvng.map|esint.map|ethiop.map|eurosym.map|hfbright.map|iby.map|latxfont.map|lxfonts.map|manfnt.map|mflogo.map|mongolian.map|musix.map|pigpen.map|plother.map|pltext.map|rsfs.map|semaf.map|stmaryrd.map|symbols.map|tipa.map|trajan.map|vnrother.map|vnrtext.map|wasy.map|xypic.map|yhmath.map'`; then + %{_bindir}/updmap-sys --nomkmap --enable MixedMap=$shortfile >/dev/null 2>&1 || : + else + %{_bindir}/updmap-sys --nomkmap --enable Map=$shortfile >/dev/null 2>&1 || : + fi +done <<< "$list" +%{_bindir}/updmap-sys --quiet --nomkmap >/dev/null || : + +%transfiletriggerpostun -n texlive-kpathsea -- %{_datadir}/texlive/texmf-dist/fonts/map/dvips/ +list=`grep "\.map" | sort -n | uniq` +while read -r line; do + [ -z "$line" ] && continue + shortfile=`basename "$line"` + if `echo $shortfile | grep -Eq 'allrunes.map|arabtex.map|arss.map|artm.map|bbold.map|cbgreek-full.map|ccpl.map|cmextra.map|cmll.map|cm.map|cm-super-t1.map|cm-super-t2a.map|cm-super-t2b.map|cm-super-t2c.map|cm-super-ts1.map|cm-super-x2.map|cmtext-bsr-interpolated.map|cyrillic.map|dvng.map|esint.map|ethiop.map|eurosym.map|hfbright.map|iby.map|latxfont.map|lxfonts.map|manfnt.map|mflogo.map|mongolian.map|musix.map|pigpen.map|plother.map|pltext.map|rsfs.map|semaf.map|stmaryrd.map|symbols.map|tipa.map|trajan.map|vnrother.map|vnrtext.map|wasy.map|xypic.map|yhmath.map'`; then + %{_bindir}/updmap-sys --nomkmap --disable MixedMap=$shortfile >/dev/null 2>&1 || : + else + %{_bindir}/updmap-sys --nomkmap --disable Map=$shortfile >/dev/null 2>&1 || : + fi +done <<< "$list" +%{_bindir}/updmap-sys --quiet --nomkmap >/dev/null || : + +%transfiletriggerin -n texlive-kpathsea -P 2000000 -- %{_datadir}/texlive/fmtutil.cnf.d/ +%{_sbindir}/generate-fmtutilcnf %{_datadir}/texlive + +%transfiletriggerpostun -n texlive-kpathsea -P 2000000 -- %{_datadir}/texlive/fmtutil.cnf.d/ +%{_sbindir}/generate-fmtutilcnf %{_datadir}/texlive %files %{_datadir}/texlive/licenses/ -- Gitee From 0c11bd83aab7c0af80dd4aeec8867493ab229e4d Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Fri, 12 Jan 2024 09:56:45 +0800 Subject: [PATCH 4/7] test5 --- texlive-base.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/texlive-base.spec b/texlive-base.spec index 25c42c9..eaed633 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -6093,8 +6093,8 @@ export TEXMFCACHE=/var/lib/texmf %{_bindir}/mtxrun --generate &> /dev/null || : %{_bindir}/fmtutil-sys --all &> /dev/null || : -%transfiletriggerpostun -n texlive-kpathsea -- %{_datadir}/texlive -%{_bindir}/texhash 2> /dev/null || : +## %transfiletriggerpostun -n texlive-kpathsea -- %{_datadir}/texlive +## %{_bindir}/texhash 2> /dev/null || : %transfiletriggerin -n texlive-kpathsea -- %{_datadir}/texlive/texmf-dist/fonts/map/dvips/ list=`grep "\.map" | sort -n | uniq` -- Gitee From 91e93dd658db935b497a231cfe46ff1c46782eb6 Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Mon, 15 Jan 2024 15:39:03 +0800 Subject: [PATCH 5/7] upate --- texlive-base.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/texlive-base.spec b/texlive-base.spec index eaed633..229b6a4 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -6090,7 +6090,7 @@ fi export TEXMF=/usr/share/texlive/texmf-dist export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c export TEXMFCACHE=/var/lib/texmf -%{_bindir}/mtxrun --generate &> /dev/null || : +## %{_bindir}/mtxrun --generate &> /dev/null || : %{_bindir}/fmtutil-sys --all &> /dev/null || : ## %transfiletriggerpostun -n texlive-kpathsea -- %{_datadir}/texlive -- Gitee From 85c9c8ceb5f1ead2f1626edb2cc6f323c47afd86 Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Tue, 16 Jan 2024 09:55:31 +0800 Subject: [PATCH 6/7] test0116 --- texlive-base.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/texlive-base.spec b/texlive-base.spec index 229b6a4..8eeaf58 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -6091,7 +6091,7 @@ export TEXMF=/usr/share/texlive/texmf-dist export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c export TEXMFCACHE=/var/lib/texmf ## %{_bindir}/mtxrun --generate &> /dev/null || : -%{_bindir}/fmtutil-sys --all &> /dev/null || : +## %{_bindir}/fmtutil-sys --all &> /dev/null || : ## %transfiletriggerpostun -n texlive-kpathsea -- %{_datadir}/texlive ## %{_bindir}/texhash 2> /dev/null || : -- Gitee From 2cce310585712663c8ef75fd09a9180be4819132 Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Tue, 16 Jan 2024 14:20:42 +0800 Subject: [PATCH 7/7] test0116-2 --- texlive-base.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/texlive-base.spec b/texlive-base.spec index 8eeaf58..ad2e7e0 100644 --- a/texlive-base.spec +++ b/texlive-base.spec @@ -6090,8 +6090,8 @@ fi export TEXMF=/usr/share/texlive/texmf-dist export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c export TEXMFCACHE=/var/lib/texmf -## %{_bindir}/mtxrun --generate &> /dev/null || : -## %{_bindir}/fmtutil-sys --all &> /dev/null || : +%{_bindir}/mtxrun --generate +%{_bindir}/fmtutil-sys --all ## %transfiletriggerpostun -n texlive-kpathsea -- %{_datadir}/texlive ## %{_bindir}/texhash 2> /dev/null || : -- Gitee