Fix the postun error

(cherry picked from commit c5e0f99b51d1837007d81264e3d9d42527227165)
This commit is contained in:
starlet-dx 2022-09-20 15:12:54 +08:00 committed by openeuler-sync-bot
parent 6e20524d8a
commit f4c2fc636d

View File

@ -1,7 +1,7 @@
Name: docbook5-style-xsl
Summary: Norman Walsh's XSL stylesheets for DocBook 5.X
Version: 1.79.2
Release: 8
Release: 9
License: MIT and MPLv1.1
URL: https://github.com/gooselinux/docbook5-style-xsl
Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-%{version}.tar.bz2
@ -55,7 +55,9 @@ rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" %{_sysconfdir}/xml/catalog
%postun
[ "$1" = 0 ] && %{_bindir}/xmlcatalog --noout --del "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" %{_sysconfdir}/xml/catalog
if [ "$1" = 0 ]; then
%{_bindir}/xmlcatalog --noout --del "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" %{_sysconfdir}/xml/catalog
fi
%files
%doc COPYING
@ -68,5 +70,8 @@ rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
%doc BUGS README TODO NEWS RELEASE-NOTES.* extensions/*.txt
%changelog
* Tue Sep 20 2022 yaoxin <yaoxin30@h-parters.com> - 1.79.2-9
- Fix the postun error
* Tue Dec 3 2019 caomeng<caomeng5@huawei.com> -1.79.2-8
- Package init