2      $Id: package.dtd,v 1.38 2005-11-12 02:23:07 cellog Exp $
 
   4      This is the PEAR package description, version 1.0.
 
   5      It should be used with the informal public identifier:
 
   7          "-//PHP Group//DTD PEAR Package 1.0//EN//XML"
 
   9      Copyright (c) 1997-2005 The PHP Group             
 
  11      This source file is subject to version 3.00 of the PHP license,
 
  12      that is bundled with this package in the file LICENSE, and is
 
  13      available at through the world-wide-web at
 
  14      http://www.php.net/license/3_0.txt. 
 
  15      If you did not receive a copy of the PHP license and are unable to
 
  16      obtain it through the world-wide-web, please send a note to
 
  17      license@php.net so we can mail you a copy immediately.
 
  20          Stig S. Bakken <ssb@fast.no>
 
  21          Gregory Beaver <cellog@php.net>
 
  24 <!ENTITY % NUMBER "CDATA">
 
  25 <!ELEMENT package (name,summary,description,license?,maintainers,release,changelog?)>
 
  26 <!ATTLIST package type    (source|binary|empty) "empty"
 
  27                   version CDATA                 #REQUIRED
 
  28                   packagerversion CDATA         #IMPLIED>
 
  30 <!ELEMENT name (#PCDATA)>
 
  32 <!ELEMENT summary (#PCDATA)>
 
  34 <!ELEMENT license (#PCDATA)>
 
  36 <!ELEMENT description (#PCDATA)>
 
  38 <!ELEMENT maintainers (maintainer)+>
 
  40 <!ELEMENT maintainer (user|role|name|email)+>
 
  42 <!ELEMENT user (#PCDATA)>
 
  44 <!ELEMENT role (#PCDATA)>
 
  46 <!ELEMENT email (#PCDATA)>
 
  48 <!ELEMENT changelog (release)+>
 
  50 <!ELEMENT release (version,date,license,state,notes,warnings?,provides*,deps?,configureoptions?,filelist?)>
 
  52 <!ELEMENT version (#PCDATA)>
 
  54 <!ELEMENT date (#PCDATA)>
 
  56 <!ELEMENT state (#PCDATA)>
 
  58 <!ELEMENT notes (#PCDATA)>
 
  60 <!ELEMENT warnings (#PCDATA)>
 
  62 <!ELEMENT deps (dep*)>
 
  64 <!ELEMENT dep (#PCDATA)>
 
  65 <!ATTLIST dep type    (pkg|ext|php) #REQUIRED
 
  66                                rel     (has|eq|lt|le|gt|ge)                          #IMPLIED
 
  67                                version CDATA                                     #IMPLIED
 
  68                                optional (yes|no)     'no'>
 
  70 <!ELEMENT configureoptions (configureoption)+>
 
  72 <!ELEMENT configureoption EMPTY>
 
  73 <!ATTLIST configureoption name CDATA #REQUIRED
 
  74                                            default CDATA #IMPLIED
 
  75                                            prompt CDATA #REQUIRED>
 
  77 <!ELEMENT provides EMPTY>
 
  78 <!ATTLIST provides type (ext|prog|class|function|feature|api) #REQUIRED
 
  80                                 extends CDATA #IMPLIED>
 
  81 <!ELEMENT filelist (dir|file)+>
 
  83 <!ELEMENT dir (dir|file)+>
 
  84 <!ATTLIST dir name           CDATA #REQUIRED
 
  85               role           (php|ext|src|test|doc|data|script) 'php'
 
  86               baseinstalldir CDATA #IMPLIED>
 
  88 <!ELEMENT file (replace*)>
 
  89 <!ATTLIST file role           (php|ext|src|test|doc|data|script) 'php'
 
  90                debug          (na|on|off)        'na'
 
  92                baseinstalldir CDATA              #IMPLIED
 
  93                platform       CDATA              #IMPLIED
 
  96                install-as     CDATA              #IMPLIED>
 
  98 <!ELEMENT replace EMPTY>
 
  99 <!ATTLIST replace type (php-const|pear-config|package-info) #REQUIRED