Update should not remove sgml catalog file

OBS-URL: https://build.opensuse.org/package/show/Publishing/xmlcharent?expand=0&rev=10
This commit is contained in:
Dr. Werner Fink 2022-05-24 11:16:58 +00:00 committed by Git OBS Bridge
parent 55a513bc1d
commit bcead7ace6
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 24 11:15:56 UTC 2022 - Dr. Werner Fink <werner@suse.de>
- Handle update case as well (boo#1199754)
-------------------------------------------------------------------
Mon Jul 18 12:29:42 UTC 2016 - fvogt@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package xmlcharent
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -22,13 +22,13 @@ Release: 0
Summary: XML Character Entities
License: BSD-3-Clause
Group: Productivity/Publishing/XML
Url: http://www.oasis-open.org/docbook/xmlcharent/
URL: http://www.oasis-open.org/docbook/xmlcharent/
Source0: xmlcharent-0.3.tar.bz2
Source1: xmlcharent.xml
Source2: xmlcharent.sgml
Requires: sgml-skel >= 0.7
Requires(post): sgml-skel >= 0.7
Requires(postun): sgml-skel >= 0.7
Requires(postun):sgml-skel >= 0.7
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -55,7 +55,10 @@ sgml-register-catalog -a %{_datadir}/%{name}/%{name}.sgml
%postun
update-xml-catalog
sgml-register-catalog -r %{_datadir}/%{name}/%{name}.sgml
if ! test -e %{_datadir}/%{name}/%{name}.sgml
then
sgml-register-catalog -r %{_datadir}/%{name}/%{name}.sgml
fi
%files
%defattr(-, root, root)