diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2f340ae --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/sgml-common-0.6.3.tgz +SOURCES/xml.xsd diff --git a/.sgml-common.metadata b/.sgml-common.metadata new file mode 100644 index 0000000..8de0a6e --- /dev/null +++ b/.sgml-common.metadata @@ -0,0 +1,2 @@ +b7d211c19b83accb92dcb51719de65227fb4c27c SOURCES/sgml-common-0.6.3.tgz +274336801504b7d621f67bffb7835c6209fb075a SOURCES/xml.xsd diff --git a/SOURCES/XMLSchema.dtd b/SOURCES/XMLSchema.dtd new file mode 100644 index 0000000..e8e8f76 --- /dev/null +++ b/SOURCES/XMLSchema.dtd @@ -0,0 +1,402 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%xs-datatypes; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SOURCES/datatypes.dtd b/SOURCES/datatypes.dtd new file mode 100644 index 0000000..8e48553 --- /dev/null +++ b/SOURCES/datatypes.dtd @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SOURCES/html.dcl b/SOURCES/html.dcl new file mode 100644 index 0000000..710e9e2 --- /dev/null +++ b/SOURCES/html.dcl @@ -0,0 +1,88 @@ + + diff --git a/SOURCES/html.soc b/SOURCES/html.soc new file mode 100644 index 0000000..c0b1949 --- /dev/null +++ b/SOURCES/html.soc @@ -0,0 +1,31 @@ + -- catalog: SGML Open style entity catalog for HTML -- + -- $Id: html.soc,v 1.1 2004/09/09 12:19:26 cvsdist Exp $ -- + -- Hacked by jjc -- + + -- Ways to refer to Level 2: most general to most specific -- +PUBLIC "-//IETF//DTD HTML//EN" html.dtd +PUBLIC "-//IETF//DTD HTML 2.0//EN" html.dtd +PUBLIC "-//IETF//DTD HTML Level 2//EN" html.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Level 2//EN" html.dtd + + -- Ways to refer to Level 1: most general to most specific -- +PUBLIC "-//IETF//DTD HTML Level 1//EN" html-1.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Level 1//EN" html-1.dtd + + -- Ways to refer to + Strict Level 2: most general to most specific -- +PUBLIC "-//IETF//DTD HTML Strict//EN" html-s.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Strict//EN" html-s.dtd +PUBLIC "-//IETF//DTD HTML Strict Level 2//EN" html-s.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Strict Level 2//EN" html-s.dtd + + -- Ways to refer to + Strict Level 1: most general to most specific -- +PUBLIC "-//IETF//DTD HTML Strict Level 1//EN" html-1s.dtd +PUBLIC "-//IETF//DTD HTML 2.0 Strict Level 1//EN" html-1s.dtd + + -- ISO latin 1 entity set for HTML -- +PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML" ISOlat1.sgm + +SGMLDECL html.dcl +DOCTYPE html html.dtd diff --git a/SOURCES/sgml-common-quotes.patch b/SOURCES/sgml-common-quotes.patch new file mode 100644 index 0000000..c901b9e --- /dev/null +++ b/SOURCES/sgml-common-quotes.patch @@ -0,0 +1,94 @@ +--- sgml-common-0.6.3/bin/install-catalog.in.quotes Mon Nov 5 11:19:23 2001 ++++ sgml-common-0.6.3/bin/install-catalog.in Mon Nov 5 11:20:12 2001 +@@ -39,8 +39,8 @@ + # Process actions + case $1 in + -a|--add) SGML_ACTION="addition" +- SGML_CENTRALIZED=$2 +- SGML_ORDINARY=$3 ++ SGML_CENTRALIZED="$2" ++ SGML_ORDINARY="$3" + ;; + -r|--remove) if [ -z "$3" -o "$3" = "--version" ] + then +@@ -48,8 +48,8 @@ + exit 0 + fi + SGML_ACTION="removal" +- SGML_CENTRALIZED=$2 +- SGML_ORDINARY=$3 ++ SGML_CENTRALIZED="$2" ++ SGML_ORDINARY="$3" + ;; + -h|--help) echo -e $SGML_HELP_MESSAGE + exit 0 +@@ -96,14 +96,14 @@ + fi + case $SGML_ACTION in + addition) +- if [ -e $SGML_CENTRALIZED -a ! -w $SGML_CENTRALIZED ] ++ if [ -e "$SGML_CENTRALIZED" -a ! -w "$SGML_CENTRALIZED" ] + then + echo "`basename $0`: can not modify \"$SGML_CENTRALIZED\"." >&2 + exit 2 + fi + ;; + removal) +- if [ ! -w $SGML_CENTRALIZED ] ++ if [ ! -w "$SGML_CENTRALIZED" ] + then + echo "`basename $0`: can not modify \"$SGML_CENTRALIZED\"." >&2 + exit 2 +@@ -119,7 +119,7 @@ + fi + case $SGML_ACTION in + addition) +- if [ ! -s $SGML_ORDINARY ] ++ if [ ! -s "$SGML_ORDINARY" ] + then + echo "`basename $0`: \"$SGML_ORDINARY\" does not exist or is empty." >&2 + exit 2 +@@ -131,33 +131,33 @@ + case $SGML_ACTION in + addition) + echo "`basename $0`: addition of $SGML_ORDINARY in $SGML_CENTRALIZED" +- if grep -q $SGML_ORDINARY $SGML_CENTRALIZED 2>/dev/null ++ if grep -q "$SGML_ORDINARY" "$SGML_CENTRALIZED" 2>/dev/null + then + echo "Warning: $SGML_ORDINARY is already installed in the centralized catalog $SGML_CENTRALIZED" >&2 + else +- echo "$SGML_POINTER $SGML_ORDINARY" >> $SGML_CENTRALIZED ++ echo "$SGML_POINTER \"$SGML_ORDINARY\"" >> "$SGML_CENTRALIZED" + fi +- grep -q $SGML_CENTRALIZED /etc/sgml/catalog 2>/dev/null ++ grep -q "$SGML_CENTRALIZED" /etc/sgml/catalog 2>/dev/null + if [ $? -ne 0 ] + then + echo "`basename $0`: addition of $SGML_CENTRALIZED in /etc/sgml/catalog" +- echo "$SGML_POINTER $SGML_CENTRALIZED" >> /etc/sgml/catalog ++ echo "$SGML_POINTER \"$SGML_CENTRALIZED\"" >> /etc/sgml/catalog + fi + ;; + removal) + echo "`basename $0`: removal of $SGML_ORDINARY from $SGML_CENTRALIZED" +- if grep -q $SGML_ORDINARY $SGML_CENTRALIZED 2>/dev/null ++ if grep -q "$SGML_ORDINARY" "$SGML_CENTRALIZED" 2>/dev/null + then +- sed -e "\:$SGML_POINTER $SGML_ORDINARY:d" < $SGML_CENTRALIZED > ${SGML_CENTRALIZED}.new +- mv ${SGML_CENTRALIZED}.new $SGML_CENTRALIZED ++ sed -e "\:$SGML_POINTER \"\\?$SGML_ORDINARY\"\\?:d" < "$SGML_CENTRALIZED" > "${SGML_CENTRALIZED}.new" ++ mv "${SGML_CENTRALIZED}.new" "$SGML_CENTRALIZED" + else + echo "Warning: $SGML_ORDINARY was not found in the centralized catalog $SGML_CENTRALIZED" >&2 + fi +- if [ ! -s $SGML_CENTRALIZED ] ++ if [ ! -s "$SGML_CENTRALIZED" ] + then +- rm $SGML_CENTRALIZED ++ rm "$SGML_CENTRALIZED" + echo "`basename $0`: removal of $SGML_CENTRALIZED from /etc/sgml/catalog" +- sed -e "\:$SGML_POINTER $SGML_CENTRALIZED:d" < /etc/sgml/catalog > /etc/sgml/catalog.new ++ sed -e "\:$SGML_POINTER \"\\?$SGML_CENTRALIZED\"\\?:d" < /etc/sgml/catalog > /etc/sgml/catalog.new + mv /etc/sgml/catalog.new /etc/sgml/catalog + fi + ;; diff --git a/SOURCES/sgml-common-umask.patch b/SOURCES/sgml-common-umask.patch new file mode 100644 index 0000000..90bda3b --- /dev/null +++ b/SOURCES/sgml-common-umask.patch @@ -0,0 +1,12 @@ +--- sgml-common-0.6.3/bin/install-catalog.in.umask Mon May 21 11:48:37 2001 ++++ sgml-common-0.6.3/bin/install-catalog.in Mon May 21 12:00:34 2001 +@@ -13,6 +13,9 @@ + \040 -h, --help: \t\t\t\t Print this help message and exit\n\ + \040 -v, --version: \t\t\t Print the version number and exit\n" + ++# We need the files we create to be world readable ++umask 022 ++ + # Set version message + SGML_VERSION_MESSAGE="sgml-common version @VERSION@ (install-catalog version 1.0)" + diff --git a/SOURCES/sgml-common-xmldir.patch b/SOURCES/sgml-common-xmldir.patch new file mode 100644 index 0000000..d7c2b2b --- /dev/null +++ b/SOURCES/sgml-common-xmldir.patch @@ -0,0 +1,19 @@ +--- sgml-common-0.6.3/xml-iso-entities/Makefile.am.xmldir Fri Oct 5 16:37:43 2001 ++++ sgml-common-0.6.3/xml-iso-entities/Makefile.am Fri Oct 5 16:37:57 2001 +@@ -1,4 +1,4 @@ +-isoentdir = $(prefix)/share/sgml/xml-iso-entities-8879.1986 ++isoentdir = $(prefix)/share/xml/xml-iso-entities-8879.1986 + isoent_DATA = ISOamsa.ent ISOamsb.ent ISOamsc.ent ISOamsn.ent ISOamso.ent ISOamsr.ent \ + ISObox.ent ISOcyr1.ent ISOcyr2.ent ISOdia.ent ISOgrk1.ent ISOgrk2.ent \ + ISOgrk3.ent ISOgrk4.ent ISOlat1.ent ISOlat2.ent ISOnum.ent ISOpub.ent \ +--- sgml-common-0.6.3/xml-iso-entities/Makefile.in.xmldir 2007-05-15 17:21:31.000000000 +0100 ++++ sgml-common-0.6.3/xml-iso-entities/Makefile.in 2007-05-15 17:21:43.000000000 +0100 +@@ -62,7 +62,7 @@ + VERSION = @VERSION@ + docdir = @docdir@ + +-isoentdir = $(prefix)/share/sgml/xml-iso-entities-8879.1986 ++isoentdir = $(prefix)/share/xml/xml-iso-entities-8879.1986 + isoent_DATA = ISOamsa.ent ISOamsb.ent ISOamsc.ent ISOamsn.ent ISOamso.ent ISOamsr.ent ISObox.ent ISOcyr1.ent ISOcyr2.ent ISOdia.ent ISOgrk1.ent ISOgrk2.ent ISOgrk3.ent ISOgrk4.ent ISOlat1.ent ISOlat2.ent ISOnum.ent ISOpub.ent ISOtech.ent catalog + + diff --git a/SOURCES/sgml.conf.5 b/SOURCES/sgml.conf.5 new file mode 100644 index 0000000..7d97166 --- /dev/null +++ b/SOURCES/sgml.conf.5 @@ -0,0 +1,40 @@ +.TH SGML.CONF 5 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +sgml.conf \- basic configuration file for SGML environment variables + +.SH "DESCRIPTION" +This file contains basic variables for SGML environment. +.HP +Format of this file is straightforward: + +- Lines are either empty lines, comment lines (starting with hash mark) or variable assignments. + +- Assigments take form of "variable=value" where whitespace is not allowed. This makes the format Bourne-shell includable. + +.SH "VARIABLES" +.TP +.B SGML_BASE_DIR +This variable contains root of the location of sgml components. Suggested value for this variable is /usr/share/sgml. +.TP +.B SGML_CATALOGS_DIRS +This variable contains location of sgml catalog files. Suggested value is /etc/sgml. +.TP +.B SGML_EXTRA_BASE_DIRS +This variable contains the directory name(s) of the root of the location(s) of optional sgml components that the system administrator doesn't want to install to primary SGML_BASE_DIR directory. If multiple directory names are mentioned, they are separated by colons. +.TP +.B SGML_BIN_DIR +This variable contains the directory where executables should be placed. By default /usr/bin. +.TP +.B SGML_EXTRA_BIN_DIRS +This variable contains the directory name(s) where optional executables can be placed. Suggested and default value is /usr/local/bin. If multiple directory names are mentioned, they are separated by colons. +.TP +.B SGML_TMP_DIR +A hint to components where to put temporary files. The suggested and default value is /tmp. +.TP +.B SGML_POSTINSTALL_CMD +A command that is to be executed when new components have been installed. This mechanism is not used by default, sgml components are usually registered by %post scriptlets. +.SH "SEE ALSO" +.\" Always quote multiple words for .SH +.BR xsltproc (1) diff --git a/SOURCES/sgmlwhich.1 b/SOURCES/sgmlwhich.1 new file mode 100644 index 0000000..b00e7fd --- /dev/null +++ b/SOURCES/sgmlwhich.1 @@ -0,0 +1,21 @@ +.TH SGMLWHICH 1 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +sgmlwhich \- prints location of main sgml configuration file +.SH SYNOPSIS +.B sgmlwhich + +.SH "DESCRIPTION" +Simple script which prints location of main sgml configuration file. +It is provided for consistency with non-LSB platforms. + +.SH OPTIONS +Script doesn't accept any options. + +.SH "SEE ALSO" +.\" Always quote multiple words for .SH +.BR sgml.conf (5) + +.SH AUTHOR +Eric Bischoff diff --git a/SOURCES/xml.dcl b/SOURCES/xml.dcl new file mode 100644 index 0000000..fed2103 --- /dev/null +++ b/SOURCES/xml.dcl @@ -0,0 +1,179 @@ +" + PIC "?>" + SHORTREF NONE + + NAMES + SGMLREF + + QUANTITY NONE + + ENTITIES + "amp" 38 + "lt" 60 + "gt" 62 + "quot" 34 + "apos" 39 + + FEATURES + MINIMIZE + DATATAG NO + OMITTAG NO + RANK NO + SHORTTAG + STARTTAG + EMPTY NO + UNCLOSED NO + NETENABL IMMEDNET + ENDTAG + EMPTY NO + UNCLOSED NO + ATTRIB + DEFAULT YES + OMITNAME NO + VALUE NO + EMPTYNRM YES + IMPLYDEF + ATTLIST NO + DOCTYPE NO + ELEMENT NO + ENTITY NO + NOTATION NO + LINK + SIMPLE NO + IMPLICIT NO + EXPLICIT NO + OTHER + CONCUR NO + SUBDOC NO + FORMAL NO + URN NO + KEEPRSRE YES + VALIDITY TYPE + ENTITIES + REF ANY + INTEGRAL YES + APPINFO NONE + SEEALSO "ISO 8879:1986//NOTATION + Extensible Markup Language (XML) 1.0//EN" +> diff --git a/SOURCES/xml.soc b/SOURCES/xml.soc new file mode 100644 index 0000000..278c6f3 --- /dev/null +++ b/SOURCES/xml.soc @@ -0,0 +1 @@ +SGMLDECL "xml.dcl" diff --git a/SOURCES/xmldsig-core-schema.xsd b/SOURCES/xmldsig-core-schema.xsd new file mode 100644 index 0000000..e35571b --- /dev/null +++ b/SOURCES/xmldsig-core-schema.xsd @@ -0,0 +1,318 @@ + + + + + + ]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SPECS/sgml-common.spec b/SPECS/sgml-common.spec new file mode 100644 index 0000000..ef88b7c --- /dev/null +++ b/SPECS/sgml-common.spec @@ -0,0 +1,413 @@ +%global xmlxsdver 2009/01 + +Name: sgml-common +Version: 0.6.3 +Release: 50%{?dist} +Group: Applications/Text + +Summary: Common SGML catalog and DTD files + +License: GPL+ + +BuildArch: noarch + +#Actually - there is no homepage of this project, on that URL +#page you could get complete ISO 8879 listing as was on the +#old page - only part of it is included in sgml-common package. +URL: http://www.w3.org/2003/entities/ + +Source0: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tgz +# Following 4 from openjade/pubtext - same maintainer as in SGML-common, so up2date: +Source1: xml.dcl +Source2: xml.soc +Source3: html.dcl +Source4: html.soc +Source5: http://www.w3.org/%{xmlxsdver}/xml.xsd +Source6: http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd +Source7: http://www.w3.org/2001/XMLSchema.dtd +Source8: http://www.w3.org/2001/datatypes.dtd +Source9: sgmlwhich.1 +Source10: sgml.conf.5 + +Patch0: sgml-common-umask.patch +Patch1: sgml-common-xmldir.patch +Patch2: sgml-common-quotes.patch + +BuildRequires: libxml2 +BuildRequires: automake +Requires: %{_bindir}/basename + +%description +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. + +%package -n xml-common +Group: Applications/Text +Summary: Common XML catalog and DTD files +License: GPL+ +Requires(pre): %{_bindir}/xmlcatalog + +%description -n xml-common +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. + +%prep +%setup -q +%patch0 -p1 -b .umask +%patch1 -p1 -b .xmldir +%patch2 -p1 -b .quotes + +# replace bogus links with files +automakedir=`ls -1d /usr/share/automake* | head -n +1` +for file in COPYING INSTALL install-sh missing mkinstalldirs; do + rm $file + cp -p $automakedir/$file . +done + +%build +%configure + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR="$RPM_BUILD_ROOT" htmldir='%{_datadir}/doc' INSTALL='install -p' +mkdir $RPM_BUILD_ROOT%{_sysconfdir}/xml +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sgml/docbook +mkdir -p $RPM_BUILD_ROOT%{_datadir}/sgml/docbook +# Touch SGML catalog +touch $RPM_BUILD_ROOT%{_sysconfdir}/sgml/catalog +# Create an empty XML catalog. +XMLCATALOG=$RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog +%{_bindir}/xmlcatalog --noout --create $XMLCATALOG +# ...and add xml.xsd in it +for type in system uri ; do + for path in 2001 %{xmlxsdver} ; do + %{_bindir}/xmlcatalog --noout --add $type \ + "http://www.w3.org/$path/xml.xsd" \ + "file://%{_datadir}/xml/xml.xsd" $XMLCATALOG + done + # Add xmldsig-core-schema.xsd to catalog + %{_bindir}/xmlcatalog --noout --add $type \ + "http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd" \ + "file://%{_datadir}/xml/xmldsig-core-schema.xsd" $XMLCATALOG +done +# Now put the common DocBook entries in it +%{_bindir}/xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//ENTITIES DocBook XML" \ + "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG +%{_bindir}/xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//DTD DocBook XML" \ + "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG +%{_bindir}/xmlcatalog --noout --add "delegatePublic" \ + "ISO 8879:1986" \ + "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG +%{_bindir}/xmlcatalog --noout --add "delegateSystem" \ + "http://www.oasis-open.org/docbook/" \ + "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG +%{_bindir}/xmlcatalog --noout --add "delegateURI" \ + "http://www.oasis-open.org/docbook/" \ + "file://%{_sysconfdir}/sgml/docbook/xmlcatalog" $XMLCATALOG +for public in "-//W3C//DTD XMLSchema 200102//EN" "-//W3C//DTD XMLSCHEMA 200102//EN" ; do + %{_bindir}/xmlcatalog --noout --add "public" \ + "$public" \ + "file://%{_datadir}/xml/XMLSchema.dtd" $XMLCATALOG +done +%{_bindir}/xmlcatalog --noout --add "system" \ + "http://www.w3.org/2001/XMLSchema.dtd" \ + "file://%{_datadir}/xml/XMLSchema.dtd" $XMLCATALOG + +# Also create the common DocBook catalog +%{_bindir}/xmlcatalog --noout --create \ + $RPM_BUILD_ROOT%{_sysconfdir}/sgml/docbook/xmlcatalog +ln -sf %{_sysconfdir}/sgml/docbook/xmlcatalog\ + $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/xmlcatalog + +rm -f $RPM_BUILD_ROOT%{_datadir}/sgml/xml.dcl +install -p -m0644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \ + $RPM_BUILD_ROOT%{_datadir}/sgml +rm -rf $RPM_BUILD_ROOT%{_datadir}/xml/* +install -p -m0644 %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} \ + $RPM_BUILD_ROOT%{_datadir}/xml +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5 +install -p -m0644 %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/man1 +install -p -m0644 %{SOURCE10} $RPM_BUILD_ROOT%{_mandir}/man5 + +# remove installed doc file and prepare installation with %%doc +rm $RPM_BUILD_ROOT%{_datadir}/doc/*.html +rm -rf __dist_doc/html/ +mkdir -p __dist_doc/html/ +cp -p doc/HTML/*.html __dist_doc/html/ + + +%pre -n xml-common +if [ $1 -gt 1 ] && [ -e %{_sysconfdir}/xml/catalog ]; then + for type in system uri ; do + for path in 2001 %{xmlxsdver} ; do + %{_bindir}/xmlcatalog --noout --add $type \ + "http://www.w3.org/$path/xml.xsd" \ + "file://%{_datadir}/xml/xml.xsd" \ + %{_sysconfdir}/xml/catalog + done + %{_bindir}/xmlcatalog --noout --add $type \ + "http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd" \ + "file://%{_datadir}/xml/xmldsig-core-schema.xsd" %{_sysconfdir}/xml/catalog + done + for public in "-//W3C//DTD XMLSchema 200102//EN" "-//W3C//DTD XMLSCHEMA 200102//EN" ; do + %{_bindir}/xmlcatalog --noout --add "public" \ + "$public" \ + "file://%{_datadir}/xml/XMLSchema.dtd" %{_sysconfdir}/xml/catalog + done +fi + +%files +%doc __dist_doc/html/ AUTHORS NEWS ChangeLog COPYING README +%dir %{_sysconfdir}/sgml +%config(noreplace) %{_sysconfdir}/sgml/sgml.conf +%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_sysconfdir}/sgml/catalog +%dir %{_datadir}/sgml +%dir %{_datadir}/sgml/sgml-iso-entities-8879.1986 +%{_datadir}/sgml/sgml-iso-entities-8879.1986/* +%{_datadir}/sgml/xml.dcl +%{_datadir}/sgml/xml.soc +%{_datadir}/sgml/html.dcl +%{_datadir}/sgml/html.soc +%{_bindir}/sgmlwhich +%{_bindir}/install-catalog +%{_mandir}/man8/install-catalog.8* +%{_mandir}/man1/sgmlwhich.1* +%{_mandir}/man5/sgml.conf.5* + +%files -n xml-common +%doc AUTHORS NEWS ChangeLog COPYING README +%dir %{_sysconfdir}/xml +%dir %{_sysconfdir}/sgml +%dir %{_sysconfdir}/sgml/docbook +%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/xml/catalog +%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sgml/docbook/xmlcatalog +%dir %{_datadir}/sgml +%dir %{_datadir}/sgml/docbook +%{_datadir}/sgml/docbook/xmlcatalog +%dir %{_datadir}/xml +%{_datadir}/xml/xml.xsd +%{_datadir}/xml/xmldsig-core-schema.xsd +%{_datadir}/xml/XMLSchema.dtd +%{_datadir}/xml/datatypes.dtd + +%changelog +* Fri Oct 05 2018 Ondrej Vasik - 0.6.3-50 +- add basic manpages for sgml.conf(5) and sgmlwhich(1) (#1613279) + +* Tue Jun 12 2018 Jan Pazdziora - 0.6.3-49 +- Package and catalog xmldsig-core-schema.xsd, XMLSchema.dtd, and datatypes.dtd + +* Fri Feb 09 2018 Fedora Release Engineering - 0.6.3-48 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Oct 31 2017 Igor Gnatenko - 0.6.3-47 +- Use /usr/bin instead of /bin in Requires + +* Thu Jul 27 2017 Fedora Release Engineering - 0.6.3-46 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.6.3-45 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.6.3-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 0.6.3-43 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Dec 15 2014 Ondrej Vasik 0.6.3-42 +- add /etc/sgml ownership to xml-common subpackage (#1173925) + +* Sun Jun 08 2014 Fedora Release Engineering - 0.6.3-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.6.3-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.6.3-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Oct 11 2012 Ondrej Vasik 0.6.3-38 +- get rid of the explicit automake14 requirement + +* Sat Jul 21 2012 Fedora Release Engineering - 0.6.3-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.6.3-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Oct 30 2011 Ville Skyttä - 0.6.3-35 +- Include xml.xsd in xml-common (#750073). + +* Wed Feb 09 2011 Fedora Release Engineering - 0.6.3-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jul 12 2010 Ondrej Vasik 0.6.3-33 +- ship COPYING file with both sgml-common and xml-common +- ship documentation with xml-common + +* Fri Jan 15 2010 Ondrej Vasik 0.6.3-32 +- Merge review #226415: remove unapplied patches, remove + versioned BR + +* Wed Nov 11 2009 Ondrej Vasik 0.6.3-31 +- apply quotes patch once again (accidently deleted in Nov07-#533058) + +* Sun Jul 26 2009 Fedora Release Engineering - 0.6.3-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu May 28 2009 Ondrej Vasik 0.6.3-29 +- do own /etc/sgml/catalog + +* Tue May 19 2009 Ondrej Vasik 0.6.3-28 +- do not provide explicit url for xml-common subpackage, + fix trailing spaces +- add Requires: /bin/basename (#501360) + +* Wed Feb 25 2009 Fedora Release Engineering - 0.6.3-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Aug 07 2008 Ondrej Vasik 0.6.3-26 +- /etc/sgml/docbook dir now owned by package(#458230) +- get rid off fuzz in patches + +* Tue Jul 01 2008 Ondrej Vasik 0.6.3-25 +- mark xmlcatalog config(noreplace) to prevent overwriting + of the content, move it to sysconfdir and make symlink for + it to silence rpmlint + +* Mon Jun 30 2008 Ondrej Vasik 0.6.3-24 +- mark catalog files as (not md5 size mtime) for verify to + prevent info about changed files (#453271) + +* Thu Nov 22 2007 Ondrej Vasik 0.6.3-23 +- Another MergeReview improvements(provided by Patrice Dumas) +- copy Automake-1.4 files instead of rerunning autotools, +- better preserving timestamps, better handling of documentation +- improved XML-common description + +* Thu Nov 15 2007 Ondrej Vasik 0.6.3-22 +- Merge Review(226415) +- changed: License Tag, using RPM macros instead of hardcoded + dirs, summary ended with dot, added URL, removed CHANGES + file as obsolete, preserved timestamps and some other cosmetic + changes +- no longer shipping old automake tarball, fixed issue with man8_DATA, + BuildRequire:Automake,Autoconf again(see MergeReview discussion) + +* Mon May 28 2007 Ondrej Vasik 0.6.3-21 +- Fixed broken URL (changed to XML entity declarations) (bug #237726) +- Rebuilt + +* Tue May 15 2007 Tim Waugh 0.6.3-20 +- Added dist tag. +- Fixed summary. +- Removed build dependency on autoconf/automake. + +* Tue Oct 24 2006 Tim Waugh 0.6.3-19 +- Removed stale URL (bug #210848). + +* Mon Jun 12 2006 Tim Waugh 0.6.3-18 +- Build requires automake and autoconf (bug #194709). + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Wed Sep 22 2004 Than Ngo 0.6.3-17 +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Mon Dec 8 2003 Tim Waugh 0.6.3-15 +- Patch from Ville Skyttä (bug #111625): + - Include /usr/share/xml in xml-common. + - Own /usr/share/sgml and /usr/share/xml. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Wed Oct 23 2002 Tim Waugh 0.6.3-13 +- Ship the installed documentation. +- Don't install files not packaged. + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Wed Apr 24 2002 Tim Waugh 0.6.3-10 +- Ship {xml,html}.{dcl,soc} (bug #63500, bug #62980). +- Work around broken tarball packaging. + +* Thu Feb 21 2002 Tim Waugh 0.6.3-9 +- Rebuild in new environment. + +* Thu Jan 17 2002 Tim Waugh 0.6.3-8 +- Back to /usr/share/sgml. Now install docbook-dtds. +- Use a real install-sh, not the symlink shipped in the tarball. + +* Wed Jan 09 2002 Tim Powers 0.6.3-7 +- automated rebuild + +* Mon Nov 5 2001 Tim Waugh 0.6.3-6 +- Don't create a useless empty catalog. +- Don't try to put install things outside the build root. +- Build requires a libxml2 that actually works. + +* Mon Nov 5 2001 Tim Waugh 0.6.3-4 +- Use (and handle) catalog files with quotes in install-catalog. + +* Thu Nov 1 2001 Tim Waugh 0.6.3-3 +- Create default XML Catalog at build time, not install time. + +* Fri Oct 5 2001 Tim Waugh 0.6.3-2 +- Move XML things into /usr/share/xml, and split them out into separate + xml-common package. + +* Mon Oct 1 2001 Tim Waugh 0.6.3-1 +- 0.6.3. Incorporates oldsyntax and quiet patches. +- Make /etc/sgml/sgml.conf noreplace. +- Own /etc/sgml, various other directories (bug #47485, bug #54180). + +* Wed May 23 2001 Tim Waugh 0.5-7 +- Remove execute bit from data files. + +* Mon May 21 2001 Tim Waugh 0.5-6 +- install-catalog needs to make sure that it creates world-readable files + (bug #41552). + +* Wed Mar 14 2001 Tim Powers 0.5-5 +- fixed license + +* Wed Jan 24 2001 Tim Waugh +- Make install-catalog quieter during normal operation. + +* Tue Jan 23 2001 Tim Waugh +- Require textutils, fileutils, grep (bug #24719). + +* Wed Jan 17 2001 Tim Waugh +- Require sh-utils. + +* Mon Jan 15 2001 Tim Waugh +- Don't play so many macro games. +- Fix typo in install-catalog patch. + +* Mon Jan 08 2001 Tim Waugh +- Change group. +- Install by hand (man/en/...). Use %%{_mandir}. +- Use %%{_tmppath}. +- Make install-catalog fail silently if given the old syntax. +- Add CHANGES file. +- Change Copyright: to License:. +- Remove Packager: line. + +* Mon Jan 08 2001 Tim Waugh +- Based on Eric Bischoff's new-trials packages.