Karl Eichwalder 2015-07-15 13:25:29 +00:00 committed by Git OBS Bridge
parent 2eadf76046
commit 51ab051c0d

View File

@ -1,7 +1,7 @@
#
# spec file for package sgml-skel
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE Linux GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -25,12 +25,12 @@ Group: Productivity/Publishing/SGML
Version: 0.6
Release: 0
Requires: libxml2
Requires(post): libxml2-tools
PreReq: /bin/awk
PreReq: /bin/mv
PreReq: /bin/chmod
# URL:
Source0: http://www.suse.de/~ke/%{name}/%{name}-%{version}.tar.bz2
# :pserver:anoncvs@sources.redhat.com:/cvs/docbook-tools
Source1: docbook-tools/sgml-common/bin/install-catalog.in
Source2: edit-xml-catalog.sh
Patch: sgml-skel-regcat.diff
@ -94,7 +94,8 @@ rm -fr $RPM_BUILD_ROOT
# only create suse-catalog.xml at installation time; not in the update case
if [ "$1" = 1 ]; then
[ -r %{_sysconfdir}/xml/suse-catalog.xml ] \
|| xmlcatalog --noout --create %{_sysconfdir}/xml/suse-catalog.xml
|| xmlcatalog --create | sed 's:/>:>\
</catalog>:' >%{_sysconfdir}/xml/suse-catalog.xml
fi
%files