!6 [sync] PR-3: Fix the postun error

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2022-09-21 01:53:43 +00:00 committed by Gitee
commit 92401f0aa4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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