Open
【Spec】make %postun alternatives name consistent with %post #38
【Spec】make %postun alternatives name consistent with %post #38
Open
zybcodeAdd on Oct 8
Total: 1 files changed+5-2
@@ -10,7 +10,7 @@
10%global debug_package %{nil}10%global debug_package %{nil}
11Name: icedtea-web11Name: icedtea-web
12Version: 1.8.412Version: 1.8.4
13-Release: 1013+Release: 11
14Summary: Additional Java components for OpenJDK - Java Web Start implementation14Summary: Additional Java components for OpenJDK - Java Web Start implementation
15License: LGPLv2+ and GPLv2 with exceptions15License: LGPLv2+ and GPLv2 with exceptions
16URL: http://icedtea.classpath.org/wiki/IcedTea-Web16URL: http://icedtea.classpath.org/wiki/IcedTea-Web
@@ -144,7 +144,7 @@ exit 0
144update-desktop-database &> /dev/null || :144update-desktop-database &> /dev/null || :
145if [ $1 -eq 0 ]145if [ $1 -eq 0 ]
146then146then
147- alternatives --remove javaws %{_prefix}/bin/javaws%{binsuffix}147+ alternatives --remove javaws.%{_arch} %{_prefix}/bin/javaws%{binsuffix}
148 gconftool-2 -u %{jnlphandler}/command &> /dev/null || :148 gconftool-2 -u %{jnlphandler}/command &> /dev/null || :
149 gconftool-2 -u %{jnlphandler}/enabled &> /dev/null || :149 gconftool-2 -u %{jnlphandler}/enabled &> /dev/null || :
150 gconftool-2 -u %{jnlpshandler}/command &> /dev/null || :150 gconftool-2 -u %{jnlpshandler}/command &> /dev/null || :
@@ -177,6 +177,9 @@ exit 0
177%{_datadir}/man/man1/*177%{_datadir}/man/man1/*
178 178 
179%changelog179%changelog
180+* Thu Oct 08 2026 dev01212 <dev01212@linx-info.com> - 1.8.4-11
181+- %postun 中使用与 %post 一致的 alternatives 名称 javaws.%{_arch},确保卸载时链接被正确移除
182+ 
180* Wed Aug 05 2026 douyiwang <douyiwang@huawei.com> - 1.8.4-10183* Wed Aug 05 2026 douyiwang <douyiwang@huawei.com> - 1.8.4-10
181- use %mvn_artifact instead of %add_maven_depmap.184- use %mvn_artifact instead of %add_maven_depmap.
182- fix hamcrest jar not found by configure (Patch0009).185- fix hamcrest jar not found by configure (Patch0009).