From 4192b260bd664a95e6e730bacf7613c20f74bd88 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:51:35 +0100 Subject: [PATCH] create compatibility symlinks to /usr/share/xml/docbook/schema/dtd [release 20080923-3mamba;Thu Jul 18 2019] --- docbook-dtds.spec | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/docbook-dtds.spec b/docbook-dtds.spec index 8999e04..89903cf 100644 --- a/docbook-dtds.spec +++ b/docbook-dtds.spec @@ -1,6 +1,6 @@ Name: docbook-dtds Version: 20080923 -Release: 2mamba +Release: 3mamba Group: Applications/Publishing Summary: SGML and XML document type definitions for DocBook. License: Distributable @@ -40,6 +40,8 @@ Patch2: docbook-dtd40-sgml-1.0.catalog.patch Patch3: docbook-dtd41-sgml-1.0.catalog.patch Patch4: docbook-dtd42-sgml-1.0.catalog.patch Patch5: docbook-4.2-euro.patch +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END BuildRequires: unzip >= 5.50 BuildRoot: %{_tmppath}/%{name}-%{version} Obsoletes: docbook @@ -68,7 +70,7 @@ prep_docbook 4.1-sgml %{SOURCE3} %{PATCH3} prep_docbook 4.1.2-xml %{SOURCE4} prep_docbook 4.2-sgml %{SOURCE5} %{PATCH4} prep_docbook 4.2-xml %{SOURCE6} -# Fix € in SGML. +# Fix € in SGML. %patch5 -p1 prep_docbook 4.3-sgml %{SOURCE7} @@ -85,10 +87,13 @@ prep_docbook 4.5-xml %{SOURCE12} %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_datadir}/xml/docbook/schema/dtd + function build_docbook() { cd $1-$2 DESTDIR=%{buildroot}%{_datadir}/sgml/docbook/$2-dtd-$1%{suffix} - + DESTDIR_XML=%{buildroot}%{_datadir}/xml/docbook/schema/dtd + install -d $DESTDIR install docbook.cat $DESTDIR/catalog install *.dtd $DESTDIR @@ -101,6 +106,12 @@ function build_docbook() { install -d $DESTDIR/ent install ent/* $DESTDIR/ent ;; esac + + # Compatibility symlink + if [ "$2" = "xml" ]; then + ln -sf ../../../../sgml/docbook/xml-dtd-$1 %{buildroot}%{_datadir}/xml/docbook/schema/dtd/$1 + fi + cd .. } @@ -426,6 +437,10 @@ exit 0 %files %defattr (-,root,root) +%dir %{_datadir}/xml/docbook +%dir %{_datadir}/xml/docbook/schema +%dir %{_datadir}/xml/docbook/schema/dtd +%{_datadir}/xml/docbook/schema/dtd/* %{_datadir}/sgml/docbook/sgml-dtd-3.0%{suffix} %{_datadir}/sgml/docbook/sgml-dtd-3.1%{suffix} %{_datadir}/sgml/docbook/sgml-dtd-4.0%{suffix} @@ -448,6 +463,9 @@ exit 0 %doc --parents */*.txt %changelog +* Thu Jul 18 2019 Silvan Calarco 20080923-3mamba +- create compatibility symlinks to /usr/share/xml/docbook/schema/dtd + * Tue Aug 27 2013 Automatic Build System 20080923-2mamba - automatic rebuild by autodist