ipfire-3.x/sgml-common/sgml-common.nm

117 lines
3.2 KiB
Plaintext

###############################################################################
# IPFire.org - An Open Source Firewall Solution #
# Copyright (C) - IPFire Development Team <info@ipfire.org> #
###############################################################################
name = sgml-common
version = 0.6.3
release = 3
groups = Applications/Text
url =
license = GPL+
summary = Common SGML catalog and DTD files.
desciption
The sgml-common package contains a collection of entities and DTDs
that are useful for processing SGML, but that don't need to be
included in multiple packages. Sgml-common also includes an
up-to-date Open Catalog file.
end
source_dl =
sources = %{thisapp}.tgz
build
arches = noarch
requires
autoconf
automake
libxml2-devel
end
configure_options += \
--mandir=%{mandir} \
--sysconfdir=%{sysconfdir}
prepare_cmds
for i in COPYING INSTALL install-sh missing mkinstalldirs; do \
rm -f ${i}; \
cp -pvf %{datadir}/automake*/${i} .; \
done
end
install_cmds
mkdir -pv %{BUILDROOT}%{sysconfdir}/{sg,x}ml/docbook
mkdir -pv %{BUILDROOT}%{datadir}/sgml/docbook
# Touch SGML catalog
touch %{BUILDROOT}%{sysconfdir}/sgml/catalog
# Create an empty XML catalog.
xmlcatalog --noout --create %{BUILDROOT}%{sysconfdir}/xml/catalog
# Now put the common DocBook entries in it
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//ENTITIES DocBook XML" \
"file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML" \
"file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog
xmlcatalog --noout --add "delegatePublic" \
"ISO 8879:1986" \
"file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog
xmlcatalog --noout --add "delegateSystem" \
"http://www.oasis-open.org/docbook/" \
"file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://www.oasis-open.org/docbook/" \
"file://%{sysconfdir}/sgml/docbook/xmlcatalog" %{BUILDROOT}%{sysconfdir}/xml/catalog
# Also create the common DocBook catalog
xmlcatalog --noout --create \
%{BUILDROOT}%{sysconfdir}/sgml/docbook/xmlcatalog
ln -svf ../../../..%{sysconfdir}/sgml/docbook/xmlcatalog \
%{BUILDROOT}%{datadir}/sgml/docbook/xmlcatalog
rm -rvf %{BUILDROOT}%{datadir}/sgml/xml.dcl
install -p -m0644 %{DIR_SOURCE}/*.dcl %{DIR_SOURCE}/*.soc \
%{BUILDROOT}%{datadir}/sgml
rm -rvf %{BUILDROOT}%{datadir}/xml/*
# Remove unused and wrongly installed HTML documentation.
rm -rvf %{BUILDROOT}%{prefix}/doc
end
end
packages
package %{name}
requires
xml-common
end
end
package xml-common
summary = Common XML catalog and DTD files.
description
The xml-common is a subpackage of sgml-common which contains
a collection XML catalogs that are useful for processing XML,
but that don't need to be included in main package.
end
files
%{sysconfdir}/xml
%{sysconfdir}/sgml/docbook/xmlcatalog
%{datadir}/sgml/docbook/xmlcatalog
end
end
end