create compatibility symlinks to /usr/share/xml/docbook/schema/dtd [release 20080923-3mamba;Thu Jul 18 2019]
This commit is contained in:
parent
f32574782e
commit
4192b260bd
@ -1,6 +1,6 @@
|
|||||||
Name: docbook-dtds
|
Name: docbook-dtds
|
||||||
Version: 20080923
|
Version: 20080923
|
||||||
Release: 2mamba
|
Release: 3mamba
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
Summary: SGML and XML document type definitions for DocBook.
|
Summary: SGML and XML document type definitions for DocBook.
|
||||||
License: Distributable
|
License: Distributable
|
||||||
@ -40,6 +40,8 @@ Patch2: docbook-dtd40-sgml-1.0.catalog.patch
|
|||||||
Patch3: docbook-dtd41-sgml-1.0.catalog.patch
|
Patch3: docbook-dtd41-sgml-1.0.catalog.patch
|
||||||
Patch4: docbook-dtd42-sgml-1.0.catalog.patch
|
Patch4: docbook-dtd42-sgml-1.0.catalog.patch
|
||||||
Patch5: docbook-4.2-euro.patch
|
Patch5: docbook-4.2-euro.patch
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: unzip >= 5.50
|
BuildRequires: unzip >= 5.50
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}
|
BuildRoot: %{_tmppath}/%{name}-%{version}
|
||||||
Obsoletes: docbook
|
Obsoletes: docbook
|
||||||
@ -68,7 +70,7 @@ prep_docbook 4.1-sgml %{SOURCE3} %{PATCH3}
|
|||||||
prep_docbook 4.1.2-xml %{SOURCE4}
|
prep_docbook 4.1.2-xml %{SOURCE4}
|
||||||
prep_docbook 4.2-sgml %{SOURCE5} %{PATCH4}
|
prep_docbook 4.2-sgml %{SOURCE5} %{PATCH4}
|
||||||
prep_docbook 4.2-xml %{SOURCE6}
|
prep_docbook 4.2-xml %{SOURCE6}
|
||||||
# Fix € in SGML.
|
# Fix € in SGML.
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
|
|
||||||
prep_docbook 4.3-sgml %{SOURCE7}
|
prep_docbook 4.3-sgml %{SOURCE7}
|
||||||
@ -85,10 +87,13 @@ prep_docbook 4.5-xml %{SOURCE12}
|
|||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
install -d -m0755 %{buildroot}%{_datadir}/xml/docbook/schema/dtd
|
||||||
|
|
||||||
function build_docbook() {
|
function build_docbook() {
|
||||||
cd $1-$2
|
cd $1-$2
|
||||||
DESTDIR=%{buildroot}%{_datadir}/sgml/docbook/$2-dtd-$1%{suffix}
|
DESTDIR=%{buildroot}%{_datadir}/sgml/docbook/$2-dtd-$1%{suffix}
|
||||||
|
DESTDIR_XML=%{buildroot}%{_datadir}/xml/docbook/schema/dtd
|
||||||
|
|
||||||
install -d $DESTDIR
|
install -d $DESTDIR
|
||||||
install docbook.cat $DESTDIR/catalog
|
install docbook.cat $DESTDIR/catalog
|
||||||
install *.dtd $DESTDIR
|
install *.dtd $DESTDIR
|
||||||
@ -101,6 +106,12 @@ function build_docbook() {
|
|||||||
install -d $DESTDIR/ent
|
install -d $DESTDIR/ent
|
||||||
install ent/* $DESTDIR/ent ;;
|
install ent/* $DESTDIR/ent ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Compatibility symlink
|
||||||
|
if [ "$2" = "xml" ]; then
|
||||||
|
ln -sf ../../../../sgml/docbook/xml-dtd-$1 %{buildroot}%{_datadir}/xml/docbook/schema/dtd/$1
|
||||||
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -426,6 +437,10 @@ exit 0
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr (-,root,root)
|
%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.0%{suffix}
|
||||||
%{_datadir}/sgml/docbook/sgml-dtd-3.1%{suffix}
|
%{_datadir}/sgml/docbook/sgml-dtd-3.1%{suffix}
|
||||||
%{_datadir}/sgml/docbook/sgml-dtd-4.0%{suffix}
|
%{_datadir}/sgml/docbook/sgml-dtd-4.0%{suffix}
|
||||||
@ -448,6 +463,9 @@ exit 0
|
|||||||
%doc --parents */*.txt
|
%doc --parents */*.txt
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Aug 27 2013 Automatic Build System <autodist@mambasoft.it> 20080923-2mamba
|
||||||
- automatic rebuild by autodist
|
- automatic rebuild by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user