create compatibility symlinks to /usr/share/xml/docbook/schema/dtd [release 20080923-3mamba;Thu Jul 18 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 21:51:35 +01:00
parent f32574782e
commit 4192b260bd

View File

@ -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 <silvan.calarco@mambasoft.it> 20080923-3mamba
- create compatibility symlinks to /usr/share/xml/docbook/schema/dtd
* Tue Aug 27 2013 Automatic Build System <autodist@mambasoft.it> 20080923-2mamba
- automatic rebuild by autodist