debian/0000755000000000000000000000000012121114751007161 5ustar debian/control0000644000000000000000000000143212121111451010556 0ustar Source: w3c-sgml-lib Section: text Priority: optional Maintainer: Nicholas Bamber Build-Depends: debhelper (>= 9.20120909), xml-core (>= 0.13+nmu2~), libreadonly-perl, libxml-libxml-perl, libautodie-perl Standards-Version: 3.9.4 Homepage: http://validator.w3.org/sgml-lib Vcs-Git: git://github.com/periapt/w3c-sgml-lib.git Vcs-Browser: https://github.com/periapt/w3c-sgml-lib Package: w3c-sgml-lib Architecture: all Depends: ${misc:Depends} Breaks: w3c-markup-validator (<< 1.2+dfsg-6) Conflicts: w3c-dtd-xhtml Description: w3.org DTD and catalog files This package consists of all the definition files used by the W3C Markup Validator. It consists of DTDs and modules, entity files and XML and SGML catalogs. The catalogs are registered with the root catalogs. debian/changelog0000644000000000000000000000371012121114751011034 0ustar w3c-sgml-lib (1.3-1) unstable; urgency=low * New upstream release (Closes: #665298) * Updated dependencies and raised compat level to 9 * Raised standards version to 3.9.4 -- Nicholas Bamber Sat, 16 Mar 2013 16:11:53 +0000 w3c-sgml-lib (1.2-3) unstable; urgency=high * Split out w3c-dtd-xhtml again and added Conflicts clause (Closes: #615125) -- Nicholas Bamber Fri, 27 Apr 2012 12:18:44 +0100 w3c-sgml-lib (1.2-2) unstable; urgency=low * Moved to personal maintainership * Adopting proposals from Samuel Bronson for resolving conflicts with w3c-dtd-xhtml (Closes: #662091) - Removing broken links - Removed legacy support - Removed Provides clause for w3c-dtd-xhtml (Closes: #615125) - Moved directory to w3c-sgml-lib from xhtml - Added Breaks clauses for old w3c-markup-validator * Raised standards version to 3.9.3 - Updated debian/copyright * Raised compat level and debhelper version to 8 * Added debian/generate_catalog_stuff.pl to build rules to regnerate debian/xmlcatalogs * Merged in w3c-dtd-xhtml (Closes: #555118) - Home page field added (Closes: #615360) -- Nicholas Bamber Sat, 14 Apr 2012 13:13:38 +0100 w3c-sgml-lib (1.2-1) unstable; urgency=low * New upstream release * Updated copyright * Refreshed links for legacy support -- Nicholas Bamber Thu, 17 Mar 2011 15:40:49 +0000 w3c-sgml-lib (1.1-3) unstable; urgency=low * Changed /etc/sgml and /etc/xml code to avoid conflict with xml-core -- Nicholas Bamber Sun, 30 Jan 2011 09:40:28 +0000 w3c-sgml-lib (1.1-2) unstable; urgency=low * Releasing to unstable -- Nicholas Bamber Tue, 25 Jan 2011 22:43:33 +0000 w3c-sgml-lib (1.1-1) experimental; urgency=low * Initial release - Closes: 592986 -- Nicholas Bamber Sat, 21 Aug 2010 11:15:42 +0100 debian/generate_catalog_stuff.pl0000755000000000000000000000276612032775125014240 0ustar #!/usr/bin/perl use strict; use warnings; use Carp; use English qw ( -no_match_vars ); use Readonly; use XML::LibXML; use autodie qw(open close); Readonly my $SOURCE_DIR => 'htdocs/sgml-lib'; Readonly my $CATALOG_XML => 'catalog.xml'; Readonly my $DEST_DIR => 'usr/share/xml/w3c-sgml-lib/schema/dtd'; # Sanity check the files foreach my $file ('debian', $SOURCE_DIR) { if (! -d $file) { croak "Cannot find directory $file"; } } foreach my $file ($CATALOG_XML) { if (! -r "$SOURCE_DIR/$file") { croak "Cannot read $file"; } } open(my $fh, '>', 'debian/xmlcatalogs'); print {$fh} "local;$SOURCE_DIR/$CATALOG_XML;/$DEST_DIR/$CATALOG_XML\n"; # Set up XML processing machinery my $parser = XML::LibXML->new(); my $doc = $parser->parse_file("$SOURCE_DIR/$CATALOG_XML"); my $xpc = XML::LibXML::XPathContext->new(); $xpc->registerNs('x', $doc->getDocumentElement->getNamespaces->getValue); # Write new catalog.xml and populate memory structures my @nodes_with_uri = $xpc->findnodes('//*[@uri]', $doc); foreach my $node (@nodes_with_uri) { my $uri = $node->getAttribute('uri'); my $name = $node->nodeName; my $id = ($name eq 'public') ? $node->getAttribute('publicId') : ($name eq 'system') ? $node->getAttribute('systemId') : croak "unrecognized elemeny: $name"; print {$fh} "root;$name;$id\n"; print {$fh} "package;$name;$id;/$DEST_DIR/$CATALOG_XML\n"; print {$fh} "\n"; } close $fh; exit(0); # Copyright 2010, Nicholas Bamber, Artistic License debian/compat0000644000000000000000000000000212033015766010367 0ustar 9 debian/README.Debian0000644000000000000000000000057312032775125011240 0ustar Upstream changelog ================== The changelog for this package is available at http://validator.w3.org/whatsnew.html . This package is intended to supersede the w3c-dtd-xhtml package. As such it puts in place a number of symlinks. Please migrate applications from w3c-dtd-xhtml to w3c-sgml-dtd and use the catalog mechanisms to ensure that your paths are not hard-coded. debian/rules0000755000000000000000000000035712032775125010257 0ustar #!/usr/bin/make -f PKG := $(shell dh_listpackages) TMP := $(CURDIR)/debian/$(PKG) %: dh $@ override_dh_auto_build: dh_auto_build $(CURDIR)/debian/generate_catalog_stuff.pl override_dh_install: dh_install dh_installxmlcatalogs debian/copyright0000644000000000000000000000656412032775125011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: http://validator.w3.org/feedback.html Source: http://validator.w3.org/dist/sgml-lib.tar.gz Upstream-Name: W3C SGML Library Files: * Copyright: 1994-2010, W3C(R) (MIT, ERCIM, KEIO) License: W3C-Software Files: debian/* Copyright: 2010-2012, Nicholas Bamber License: Artistic License: W3C-Software By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. . Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications: * The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. * Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. * Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) . Disclaimers . THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. . COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. . The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. . Notes . This version: http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 . This formulation of W3C's notice and license became active on December 31 2002. This version removes the copyright ownership notice such that this license can be used with materials other than those owned by the W3C, reflects that ERCIM is now a host of the W3C, includes references to this specific dated version of the license, and removes the ambiguous grant of "use". Otherwise, this version is the same as the previous version and is written so as to preserve the Free Software Foundation's assessment of GPL compatibility and OSI's certification under the Open Source Definition. License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian GNU/Linux systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic' . By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. debian/README.source0000644000000000000000000000125112032775125011350 0ustar The unversioned upstream file is called sgml-lib.tar.gz. When unpacked this results in directory structure: validator-/htdocs/sgml-lib catalog.xml *.soc *.dcl *.dtd */*.dtd */*.mod The htdocs directory sits at the root of the Debian source directory. Having refreshed the upstream package it is necessary to regenerate the following files. debian/xmlcatalogs To regenerate this file run the script from the source directory. ./debian/generate_catalog_stuff.pl debian/source/0000755000000000000000000000000012033017023010455 5ustar debian/source/format0000644000000000000000000000001412032775125011700 0ustar 3.0 (quilt) debian/w3c-sgml-lib.lintian-overrides0000644000000000000000000000017712032775125014757 0ustar # Upstream does not package the changelog but we state where to # find it in README.Debian w3c-sgml-lib: no-upstream-changelog debian/clean0000644000000000000000000000002312032775125010172 0ustar debian/xmlcatalogs debian/watch0000644000000000000000000000014012032775125010216 0ustar version=3 opts="uversionmangle=s/_/./g" \ http://validator.w3.org/dist/sgml-lib-(.*)\.tar\.gz debian/preinst0000755000000000000000000000143312032775125010605 0ustar #!/bin/sh # preinst script for w3c-sgml-lib # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install|upgrade) # setup directories used by catalogs mkdir -p /etc/xml mkdir -p /etc/sgml ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/w3c-sgml-lib.install0000644000000000000000000000007012032775125012757 0ustar htdocs/sgml-lib/* usr/share/xml/w3c-sgml-lib/schema/dtd