fix pango-view installed as wrong symlink since past releases [release 1.50.14-2mamba;Thu Dec 28 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 05:19:55 +01:00
parent e2107bcbed
commit a53851ed58

View File

@ -4,7 +4,7 @@
Name: libpango
Version: 1.50.14
Release: 1mamba
Release: 2mamba
Summary: System for layout and rendering of internationalized text
Group: System/Internationalization
Vendor: openmamba
@ -93,12 +93,17 @@ install -d -m0755 %{buildroot}%{_sysconfdir}/pango
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre
# Cleanup dirty link from previous releases
[ -L %{_bindir}/pango-view ] && rm -f %{_bindir}/pango-view
:
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%posttrans
if [ $1 -ge 1 ]; then
ln -snf pango-view%{arch_suffix} %{_bindir}/pango-view
#ln -snf pango-view%{arch_suffix} %{_bindir}/pango-view
[ -L %{_bindir}/pango-querymodules ] && rm -f %{_bindir}/pango-querymodules
fi
# legacy cleanups
@ -142,6 +147,9 @@ exit 0
%{_docdir}/Pango*/*
%changelog
* Thu Dec 28 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.50.14-2mamba
- fix pango-view installed as wrong symlink since past releases
* Fri Mar 03 2023 Automatic Build System <autodist@mambasoft.it> 1.50.14-1mamba
- automatic version update by autodist