forked from pool/suse-xsl-stylesheets
Bugfix: Added Catalog entries for the URI to
/etc/xml/suse-catalog.xml OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/suse-xsl-stylesheets?expand=0&rev=10
This commit is contained in:
parent
44ca8c1847
commit
f0be97c46a
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:2fb14f81a3d41a133ba124192f9b61f0df74571bdeed379b4329e1c11212645a
|
oid sha256:c1f082d6ff09d86e66408fea31a4f5124c779c06f90b9cf05183c01e01da2791
|
||||||
size 142390
|
size 142282
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 10 10:15:30 UTC 2012 - fsundermeyer@opensuse.org
|
||||||
|
|
||||||
|
Bugfix: Added Catalog entries for the URI to
|
||||||
|
/etc/xml/suse-catalog.xml
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 10 09:18:58 UTC 2012 - fsundermeyer@opensuse.org
|
Fri Feb 10 09:18:58 UTC 2012 - fsundermeyer@opensuse.org
|
||||||
|
|
||||||
|
@ -9,14 +9,29 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
#
|
||||||
|
# ATTENTION: Do NOT edit this file outside of
|
||||||
|
# https://svn.code.sf.net/p/daps/svn/trunk/daps/\
|
||||||
|
# suse-xslt/packaging/suse-xsl-stylesheets.spec
|
||||||
|
#
|
||||||
|
# Your changes will be lost on the next update
|
||||||
|
# If you do not have access to the SVN repository, notify
|
||||||
|
# <fsundermeyer@opensuse.org> and <toms@opensuse.org>
|
||||||
|
# or send a patch
|
||||||
|
#
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
|
||||||
Name: suse-xsl-stylesheets
|
Name: suse-xsl-stylesheets
|
||||||
Version: 1.9
|
Version: 1.9
|
||||||
|
|
||||||
%define dtdversion 1.0
|
%define dtdversion 1.0
|
||||||
%define dtdname novdoc
|
%define dtdname novdoc
|
||||||
%define regcat %{_bindir}/sgml-register-catalog
|
%define regcat %{_bindir}/sgml-register-catalog
|
||||||
%define dbstyles %{_datadir}/xml/docbook/stylesheet/nwalsh/current
|
%define dbstyles %{_datadir}/xml/docbook/stylesheet/nwalsh/current
|
||||||
%define novdoc_catalog for-catalog-%{dtdname}-%{dtdversion}.xml
|
%define novdoc_catalog for-catalog-%{dtdname}-%{dtdversion}.xml
|
||||||
|
%define susexsl_catalog for-catalog-%{name}.xml
|
||||||
|
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: SUSE-branded Docbook stylesheets for XSLT 1.0
|
Summary: SUSE-branded Docbook stylesheets for XSLT 1.0
|
||||||
@ -76,7 +91,7 @@ if [ -x %{regcat} ]; then
|
|||||||
%{regcat} -a %{_datadir}/sgml/$CATALOG >/dev/null 2>&1 || true
|
%{regcat} -a %{_datadir}/sgml/$CATALOG >/dev/null 2>&1 || true
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
# XML Catalog
|
# XML Catalogs
|
||||||
#
|
#
|
||||||
# remove existing entries first - needed for
|
# remove existing entries first - needed for
|
||||||
# zypper in, since it does not call postun
|
# zypper in, since it does not call postun
|
||||||
@ -86,6 +101,12 @@ edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
|||||||
# ... and add it again
|
# ... and add it again
|
||||||
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
--add /etc/xml/%{novdoc_catalog}
|
--add /etc/xml/%{novdoc_catalog}
|
||||||
|
# delete ...
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--del %{name}
|
||||||
|
# ... and add it again
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--add /etc/xml/%{susexsl_catalog}
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
@ -94,14 +115,18 @@ exit 0
|
|||||||
#
|
#
|
||||||
# Remove catalog entries
|
# Remove catalog entries
|
||||||
#
|
#
|
||||||
# SGML
|
|
||||||
if [ ! -f %{_sysconfdir}/xml/%{novdoc_catalog} -a -x /usr/bin/edit-xml-catalog ] ; then
|
if [ ! -f %{_sysconfdir}/xml/%{novdoc_catalog} -a -x /usr/bin/edit-xml-catalog ] ; then
|
||||||
for c in catalog/CATALOG.%{dtdname}-%{dtdversion}; do
|
# SGML
|
||||||
%{regcat} -r %{_datadir}/sgml/$c >/dev/null 2>&1
|
for c in catalog/CATALOG.%{dtdname}-%{dtdversion}; do
|
||||||
done
|
%{regcat} -r %{_datadir}/sgml/$c >/dev/null 2>&1
|
||||||
# XML
|
done
|
||||||
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
# XML
|
||||||
--del %{dtdname}-%{dtdversion}
|
# novdoc entry
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--del %{dtdname}-%{dtdversion}
|
||||||
|
# susexsl entry
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--del %{name}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user