diff options
author | Graydon, Tracy <tracy.graydon@intel.com> | 2012-08-31 12:59:27 -0700 |
---|---|---|
committer | Graydon, Tracy <tracy.graydon@intel.com> | 2012-08-31 12:59:27 -0700 |
commit | 78dab8888ab1192c8574eed0b60574821337e527 (patch) | |
tree | c9832b0dff0d5e3f212c27aa60d49bbd46d8e26b /packaging | |
download | sgml-common-1.0.tar.gz sgml-common-1.0.tar.bz2 sgml-common-1.0.zip |
TIVI-153: add as dependency for iputilsHEADsubmit/trunk/20120831.195937accepted/trunk/20120904.1913291.0_branch1.0
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/html.dcl | 88 | ||||
-rw-r--r-- | packaging/html.soc | 31 | ||||
-rw-r--r-- | packaging/sgml-common-0.6.3-docdir.patch | 25 | ||||
-rw-r--r-- | packaging/sgml-common-automake.patch | 17 | ||||
-rw-r--r-- | packaging/sgml-common-quotes.patch | 94 | ||||
-rw-r--r-- | packaging/sgml-common-umask.patch | 12 | ||||
-rw-r--r-- | packaging/sgml-common-xmldir.patch | 19 | ||||
-rw-r--r-- | packaging/sgml-common.changes | 135 | ||||
-rw-r--r-- | packaging/sgml-common.spec | 137 | ||||
-rw-r--r-- | packaging/xml.dcl | 179 | ||||
-rw-r--r-- | packaging/xml.soc | 1 |
11 files changed, 738 insertions, 0 deletions
diff --git a/packaging/html.dcl b/packaging/html.dcl new file mode 100644 index 0000000..c1545df --- /dev/null +++ b/packaging/html.dcl @@ -0,0 +1,88 @@ +<!SGML "ISO 8879:1986" +-- + SGML Declaration for HyperText Markup Language (HTML). + +-- + +CHARSET + BASESET "ISO 646:1983//CHARSET + International Reference Version + (IRV)//ESC 2/5 4/0" + DESCSET 0 9 UNUSED + 9 2 9 + 11 2 UNUSED + 13 1 13 + 14 18 UNUSED + 32 95 32 + 127 1 UNUSED + BASESET "ISO Registration Number 100//CHARSET + ECMA-94 Right Part of + Latin Alphabet Nr. 1//ESC 2/13 4/1" + + DESCSET 128 32 UNUSED + 160 96 32 + +CAPACITY SGMLREF + TOTALCAP 150000 + GRPCAP 150000 + ENTCAP 150000 + +SCOPE DOCUMENT +SYNTAX + SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 + 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 127 + BASESET "ISO 646:1983//CHARSET + International Reference Version + (IRV)//ESC 2/5 4/0" + DESCSET 0 128 0 + FUNCTION + RE 13 + RS 10 + SPACE 32 + TAB SEPCHAR 9 + + + NAMING LCNMSTRT "" + UCNMSTRT "" + LCNMCHAR ".-" + UCNMCHAR ".-" + NAMECASE GENERAL YES + ENTITY NO + DELIM GENERAL SGMLREF + SHORTREF SGMLREF + NAMES SGMLREF + QUANTITY SGMLREF + ATTSPLEN 2100 + LITLEN 1024 + NAMELEN 72 -- somewhat arbitrary; taken from + internet line length conventions -- + PILEN 1024 + TAGLVL 100 + TAGLEN 2100 + GRPGTCNT 150 + GRPCNT 64 + +FEATURES + MINIMIZE + DATATAG NO + OMITTAG YES + RANK NO + SHORTTAG YES + LINK + SIMPLE NO + IMPLICIT NO + EXPLICIT NO + OTHER + CONCUR NO + SUBDOC NO + FORMAL YES + APPINFO "SDA" -- conforming SGML Document Access application + -- +> +<!-- + $Id: html.dcl,v 1.1.1.1 1999/05/02 12:50:44 Avi Exp $ + + Author: Daniel W. Connolly <connolly@w3.org> + + See also: http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html + --> diff --git a/packaging/html.soc b/packaging/html.soc new file mode 100644 index 0000000..0e9c836 --- /dev/null +++ b/packaging/html.soc @@ -0,0 +1,31 @@ + -- catalog: SGML Open style entity catalog for HTML -- + -- $Id: html.soc,v 1.1.1.2 1999/05/02 15:41:46 Avi 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/packaging/sgml-common-0.6.3-docdir.patch b/packaging/sgml-common-0.6.3-docdir.patch new file mode 100644 index 0000000..6d02807 --- /dev/null +++ b/packaging/sgml-common-0.6.3-docdir.patch @@ -0,0 +1,25 @@ +--- sgml-common-0.6.3/configure.in.docdir 2002-10-23 12:07:31.000000000 +0100 ++++ sgml-common-0.6.3/configure.in 2002-10-23 12:08:10.000000000 +0100 +@@ -4,6 +4,8 @@ + AM_INIT_AUTOMAKE(sgml-common, 0.6.3) + + docdir='$(prefix)/doc' ++AC_ARG_WITH(docdir, [ -with-docdir=DOCDIR documentation directory], ++ docdir=$withval) + AC_SUBST(docdir) + + dnl Checks for programs. +--- sgml-common-0.6.3/configure.docdir 2007-05-15 17:41:20.000000000 +0100 ++++ sgml-common-0.6.3/configure 2007-05-15 17:45:54.000000000 +0100 +@@ -777,6 +777,11 @@ + + docdir='$(prefix)/doc' + ++# Check whether --with-docdir or --without-docdir was given. ++if test "${with_docdir+set}" = set; then ++ withval="$with_docdir" ++ docdir=$withval ++fi; + + + diff --git a/packaging/sgml-common-automake.patch b/packaging/sgml-common-automake.patch new file mode 100644 index 0000000..23cda49 --- /dev/null +++ b/packaging/sgml-common-automake.patch @@ -0,0 +1,17 @@ +--- sgml-common-0.6.3/doc/man/Makefile.am.automake 2001-01-30 14:42:22.000000000 +0000 ++++ sgml-common-0.6.3/doc/man/Makefile.am 2007-05-15 18:14:45.000000000 +0100 +@@ -1,2 +1,1 @@ +-man8dir = $(mandir)/man8 +-man8_DATA = *.8 ++man8_MANS = install-catalog.8 +--- sgml-common-0.6.3/doc/man/Makefile.in.automake 2007-05-15 18:14:36.000000000 +0100 ++++ sgml-common-0.6.3/doc/man/Makefile.in 2007-05-15 18:14:52.000000000 +0100 +@@ -63,7 +63,6 @@ + docdir = @docdir@ + +-man8dir = $(mandir)/man8 +-man8_DATA = *.8 ++man8_MANS = install-catalog.8 + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_CLEAN_FILES = + DATA = $(man8_DATA) diff --git a/packaging/sgml-common-quotes.patch b/packaging/sgml-common-quotes.patch new file mode 100644 index 0000000..c901b9e --- /dev/null +++ b/packaging/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/packaging/sgml-common-umask.patch b/packaging/sgml-common-umask.patch new file mode 100644 index 0000000..ce13a15 --- /dev/null +++ b/packaging/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 0.2 (install-catalog version 1.0)" + diff --git a/packaging/sgml-common-xmldir.patch b/packaging/sgml-common-xmldir.patch new file mode 100644 index 0000000..d7c2b2b --- /dev/null +++ b/packaging/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/packaging/sgml-common.changes b/packaging/sgml-common.changes new file mode 100644 index 0000000..7b4bf36 --- /dev/null +++ b/packaging/sgml-common.changes @@ -0,0 +1,135 @@ +* Fri Aug 31 19:58:39 UTC 2012 - tracy.graydon@intel.com +- TIVI-153: add as dependency for iputils. Imported from MeeGo trunk + +* Mon Jun 28 2010 Priya Vijayan <priya.vijayan@intel.com> - 0.6.3 +- Fix BMC#2164-sgml-common.spec isn't relocatable + +* Mon Jun 30 2008 Ondrej Vasik <ovasik@redhat.com> 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 <ovasik@redhat.com> 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 <ovasik@redhat.com> 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 <ovasik@redhat.com> 0.6.3-21 +- Fixed broken URL (changed to XML entity declarations) (bug #237726) +- Rebuilt + +* Tue May 15 2007 Tim Waugh <twaugh@redhat.com> 0.6.3-20 +- Added dist tag. +- Fixed summary. +- Removed build dependency on autoconf/automake. + +* Tue Oct 24 2006 Tim Waugh <twaugh@redhat.com> 0.6.3-19 +- Removed stale URL (bug #210848). + +* Mon Jun 12 2006 Tim Waugh <twaugh@redhat.com> 0.6.3-18 +- Build requires automake and autoconf (bug #194709). + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Wed Sep 22 2004 Than Ngo <than@redhat.com> 0.6.3-17 +- rebuilt + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Mon Dec 8 2003 Tim Waugh <twaugh@redhat.com> 0.6.3-15 +- Patch from Ville Skyttä <ville.skytta at iki.fi> (bug #111625): + - Include /usr/share/xml in xml-common. + - Own /usr/share/sgml and /usr/share/xml. + +* Wed Jan 22 2003 Tim Powers <timp@redhat.com> +- rebuilt + +* Wed Oct 23 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-13 +- Ship the installed documentation. +- Don't install files not packaged. + +* Fri Jun 21 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Thu May 23 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Wed Apr 24 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-10 +- Ship {xml,html}.{dcl,soc} (bug #63500, bug #62980). +- Work around broken tarball packaging. + +* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 0.6.3-9 +- Rebuild in new environment. + +* Thu Jan 17 2002 Tim Waugh <twaugh@redhat.com> 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 <timp@redhat.com> 0.6.3-7 +- automated rebuild + +* Mon Nov 5 2001 Tim Waugh <twaugh@redhat.com> 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 <twaugh@redhat.com> 0.6.3-4 +- Use (and handle) catalog files with quotes in install-catalog. + +* Thu Nov 1 2001 Tim Waugh <twaugh@redhat.com> 0.6.3-3 +- Create default XML Catalog at build time, not install time. + +* Fri Oct 5 2001 Tim Waugh <twaugh@redhat.com> 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 <twaugh@redhat.com> 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 <twaugh@redhat.com> 0.5-7 +- Remove execute bit from data files. + +* Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.5-6 +- install-catalog needs to make sure that it creates world-readable files + (bug #41552). + +* Wed Mar 14 2001 Tim Powers <timp@redhat.com> 0.5-5 +- fixed license + +* Wed Jan 24 2001 Tim Waugh <twaugh@redhat.com> +- Make install-catalog quieter during normal operation. + +* Tue Jan 23 2001 Tim Waugh <twaugh@redhat.com> +- Require textutils, fileutils, grep (bug #24719). + +* Wed Jan 17 2001 Tim Waugh <twaugh@redhat.com> +- Require sh-utils. + +* Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com> +- Don't play so many macro games. +- Fix typo in install-catalog patch. + +* Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com> +- 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 <twaugh@redhat.com> +- Based on Eric Bischoff's new-trials packages. diff --git a/packaging/sgml-common.spec b/packaging/sgml-common.spec new file mode 100644 index 0000000..a703d2c --- /dev/null +++ b/packaging/sgml-common.spec @@ -0,0 +1,137 @@ +#specfile originally created for Fedora, modified for Moblin Linux +Name: sgml-common +Version: 0.6.3 +Release: 24 +Group: Applications/Text + +Summary: Common SGML catalog and DTD files + +License: GPL+ + +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +#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 + +Patch0: sgml-common-umask.patch +Patch1: sgml-common-xmldir.patch +Patch2: sgml-common-quotes.patch +Patch3: sgml-common-automake.patch +Patch4: sgml-common-0.6.3-docdir.patch + +BuildRequires: libxml2 >= 2.4.8-2 +BuildRequires: automake14 + +%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+ +URL: http://www.w3.org/2003/entities/ + +%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 +#patch 3 and patch4 not applied but still shipped with SRPM +#(see #226415 MergeReview) +#%patch3 -p1 -b .automake +#%patch4 -p1 -b .docdir + +# replace bogus links with files +for file in COPYING INSTALL install-sh missing mkinstalldirs; do + rm $file + cp -p %{_datadir}/automake-1.4/$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%{_datadir}/sgml/docbook +# Create an empty XML catalog. +XMLCATALOG=$RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog +%{_bindir}/xmlcatalog --noout --create $XMLCATALOG +# Now put the common DocBook entries in it +%{_bindir}/xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//ENTITIES DocBook XML" \ + "file://%{_datadir}/sgml/docbook/xmlcatalog" $XMLCATALOG +%{_bindir}/xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//DTD DocBook XML" \ + "file://%{_datadir}/sgml/docbook/xmlcatalog" $XMLCATALOG +%{_bindir}/xmlcatalog --noout --add "delegatePublic" \ + "ISO 8879:1986" \ + "file://%{_datadir}/sgml/docbook/xmlcatalog" $XMLCATALOG +%{_bindir}/xmlcatalog --noout --add "delegateSystem" \ + "http://www.oasis-open.org/docbook/" \ + "file://%{_datadir}/sgml/docbook/xmlcatalog" $XMLCATALOG +%{_bindir}/xmlcatalog --noout --add "delegateURI" \ + "http://www.oasis-open.org/docbook/" \ + "file://%{_datadir}/sgml/docbook/xmlcatalog" $XMLCATALOG +# Also create the common DocBook catalog +%{_bindir}/xmlcatalog --noout --create \ + $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/* + +# 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/ + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr (-,root,root, -) +%doc __dist_doc/html/ AUTHORS NEWS ChangeLog README +%dir %{_sysconfdir}/sgml +%config(noreplace) %{_sysconfdir}/sgml/sgml.conf +%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 +%doc %{_mandir}/man8/install-catalog.8* + +%files -n xml-common +%defattr (-,root,root,-) +%dir %{_sysconfdir}/xml +%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/xml/catalog +%dir %{_datadir}/sgml +%dir %{_datadir}/sgml/docbook +%verify(not md5 size mtime) %{_datadir}/sgml/docbook/xmlcatalog +%dir %{_datadir}/xml + diff --git a/packaging/xml.dcl b/packaging/xml.dcl new file mode 100644 index 0000000..fed2103 --- /dev/null +++ b/packaging/xml.dcl @@ -0,0 +1,179 @@ +<!SGML -- SGML Declaration for valid XML documents -- + "ISO 8879:1986 (WWW)" + + CHARSET + BASESET + "ISO Registration Number 176//CHARSET + ISO/IEC 10646-1:1993 UCS-4 with implementation + level 3//ESC 2/5 2/15 4/6" + DESCSET + 0 9 UNUSED + 9 2 9 + 11 2 UNUSED + 13 1 13 + 14 18 UNUSED + 32 95 32 + 127 1 UNUSED + 128 32 UNUSED + -- use this instead of the official declaration because SP only + supports 16-bit characters -- + 160 65374 160 + 65534 2 UNUSED + -- 55296 2048 UNUSED + 57344 8190 57344 + 65534 2 UNUSED + 65536 1048576 65536 -- + CAPACITY NONE + + SCOPE DOCUMENT + + SYNTAX + SHUNCHAR NONE + BASESET "ISO Registration Number 176//CHARSET + ISO/IEC 10646-1:1993 UCS-4 with implementation + level 3//ESC 2/5 2/15 4/6" + DESCSET + 0 1114112 0 + FUNCTION + RE 13 + RS 10 + SPACE 32 + TAB SEPCHAR 9 + + NAMING + LCNMSTRT "" + UCNMSTRT "" + NAMESTRT + 58 95 192-214 216-246 248-305 308-318 321-328 + 330-382 384-451 461-496 500-501 506-535 592-680 + 699-705 902 904-906 908 910-929 931-974 976-982 + 986 988 990 992 994-1011 1025-1036 1038-1103 + 1105-1116 1118-1153 1168-1220 1223-1224 + 1227-1228 1232-1259 1262-1269 1272-1273 + 1329-1366 1369 1377-1414 1488-1514 1520-1522 + 1569-1594 1601-1610 1649-1719 1722-1726 + 1728-1742 1744-1747 1749 1765-1766 2309-2361 + 2365 2392-2401 2437-2444 2447-2448 2451-2472 + 2474-2480 2482 2486-2489 2524-2525 2527-2529 + 2544-2545 2565-2570 2575-2576 2579-2600 + 2602-2608 2610-2611 2613-2614 2616-2617 + 2649-2652 2654 2674-2676 2693-2699 2701 + 2703-2705 2707-2728 2730-2736 2738-2739 + 2741-2745 2749 2784 2821-2828 2831-2832 + 2835-2856 2858-2864 2866-2867 2870-2873 2877 + 2908-2909 2911-2913 2949-2954 2958-2960 + 2962-2965 2969-2970 2972 2974-2975 2979-2980 + 2984-2986 2990-2997 2999-3001 3077-3084 + 3086-3088 3090-3112 3114-3123 3125-3129 + 3168-3169 3205-3212 3214-3216 3218-3240 + 3242-3251 3253-3257 3294 3296-3297 3333-3340 + 3342-3344 3346-3368 3370-3385 3424-3425 + 3585-3630 3632 3634-3635 3648-3653 3713-3714 + 3716 3719-3720 3722 3725 3732-3735 3737-3743 + 3745-3747 3749 3751 3754-3755 3757-3758 3760 + 3762-3763 3773 3776-3780 3904-3911 3913-3945 + 4256-4293 4304-4342 4352 4354-4355 4357-4359 + 4361 4363-4364 4366-4370 4412 4414 4416 4428 + 4430 4432 4436-4437 4441 4447-4449 4451 4453 + 4455 4457 4461-4462 4466-4467 4469 4510 4520 + 4523 4526-4527 4535-4536 4538 4540-4546 4587 + 4592 4601 7680-7835 7840-7929 7936-7957 + 7960-7965 7968-8005 8008-8013 8016-8023 8025 + 8027 8029 8031-8061 8064-8116 8118-8124 8126 + 8130-8132 8134-8140 8144-8147 8150-8155 + 8160-8172 8178-8180 8182-8188 8486 8490-8491 + 8494 8576-8578 12295 12321-12329 12353-12436 + 12449-12538 12549-12588 19968-40869 44032-55203 + + LCNMCHAR "" + UCNMCHAR "" + NAMECHAR + 45-46 183 720-721 768-837 864-865 903 1155-1158 + 1425-1441 1443-1465 1467-1469 1471 1473-1474 + 1476 1600 1611-1618 1632-1641 1648 1750-1764 + 1767-1768 1770-1773 1776-1785 2305-2307 2364 + 2366-2381 2385-2388 2402-2403 2406-2415 + 2433-2435 2492 2494-2500 2503-2504 2507-2509 + 2519 2530-2531 2534-2543 2562 2620 2622-2626 + 2631-2632 2635-2637 2662-2673 2689-2691 2748 + 2750-2757 2759-2761 2763-2765 2790-2799 + 2817-2819 2876 2878-2883 2887-2888 2891-2893 + 2902-2903 2918-2927 2946-2947 3006-3010 + 3014-3016 3018-3021 3031 3047-3055 3073-3075 + 3134-3140 3142-3144 3146-3149 3157-3158 + 3174-3183 3202-3203 3262-3268 3270-3272 + 3274-3277 3285-3286 3302-3311 3330-3331 + 3390-3395 3398-3400 3402-3405 3415 3430-3439 + 3633 3636-3642 3654-3662 3664-3673 3761 + 3764-3769 3771-3772 3782 3784-3789 3792-3801 + 3864-3865 3872-3881 3893 3895 3897 3902-3903 + 3953-3972 3974-3979 3984-3989 3991 3993-4013 + 4017-4023 4025 8400-8412 8417 12293 12330-12335 + 12337-12341 12441-12442 12445-12446 12540-12542 + + NAMECASE + GENERAL NO + ENTITY NO + + DELIM + GENERAL SGMLREF + HCRO "&#x" -- 38 is the number for ampersand -- + NESTC "/" + NET ">" + 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/packaging/xml.soc b/packaging/xml.soc new file mode 100644 index 0000000..278c6f3 --- /dev/null +++ b/packaging/xml.soc @@ -0,0 +1 @@ +SGMLDECL "xml.dcl" |