File:  [LON-CAPA] / loncom / build / lpml.dtd
Revision 1.11: download - view: text, annotated - select for diffs
Tue Dec 11 14:28:09 2001 UTC (22 years, 6 months ago) by harris41
Branches: MAIN
CVS tags: HEAD
adding in dtd spec for abbreviation tag -Scott Harrison

    1: <!--
    2:        Linux Packaging Markup Language version 1.0.
    3:        Intended to be under General Public License,
    4:        Second Version June 1991.
    5: 
    6:        Date: May 3, 2001
    7:        Author: Scott Harrison
    8: 
    9:        Linux Packaging Markup Language aims to capture
   10:        a source code development tree and effectively map
   11:        that to a compilation and installation process for
   12:        generating software packages and updating a run-time
   13:        system.  This language helps handle dependency information,
   14:        file globbing, file permissions, file ownerships,
   15:        different targets for different linux distributions,
   16:        preservation of configuration information, directory
   17:        permissions, directory ownerships, compilation commands,
   18:        and, ultimately, system software status reports.
   19: -->
   20: <!ENTITY % lpml.Version
   21:         "-//TUX//DTD lpml 1.0 Final//EN"
   22: 
   23:         -- Typical usage:
   24: 
   25:             <!DOCTYPE lpml PUBLIC "-//TUX//DTD LPML 1.0 Final//EN">
   26:             <lpml>
   27: 
   28:             </lpml>
   29:         --
   30:         >
   31: 
   32: <!ELEMENT categoryname (#PCDATA)>
   33: <!ELEMENT targetroot (#PCDATA)>
   34: <!ELEMENT sourceroot (#PCDATA)>
   35: 
   36: <!ELEMENT target (#PCDATA)>
   37: <!ATTLIST target
   38:     dist CDATA #REQUIRED
   39:     >
   40: <!ELEMENT source (#PCDATA)>
   41: <!ELEMENT targetdir (#PCDATA)>
   42: <!ATTLIST targetdir
   43:     dist CDATA #REQUIRED
   44:     >
   45: <!ELEMENT sourcedir (#PCDATA)>
   46: <!ELEMENT glob (#PCDATA)>
   47: <!ELEMENT build (#PCDATA)>
   48: <!ELEMENT buildlink (#PCDATA)>
   49: 
   50: <!-- 
   51: The trigger attribute of the build element is meant
   52: to only have one of two possible values:
   53:   "always run", or
   54:   "run if dependencies change"
   55: 
   56: Note that you must type this text exactly in for the
   57: attribute value to be understood and processed correctly
   58: by the lpml "make build" parser.
   59: -->
   60: <!ELEMENT lpml (files|categories|directories|rpm)+>
   61: <!ATTLIST build>
   62:    trigger CDATA #REQUIRED
   63: >
   64: <!ELEMENT categories category+>
   65: <!ELEMENT directories directory+>
   66: <!ELEMENT files (file|fileglob|link)+>
   67: <!ELEMENT dependencies (#PCDATA)>
   68: <!ELEMENT note (#PCDATA)>
   69: 
   70: <!ELEMENT category (chmod,chown,abbreviation)>
   71: <!ATTLIST category
   72:     type CDATA #REQUIRED
   73:     name CDATA #REQUIRED
   74:     >
   75: <!ELEMENT chown (#PCDATA)>
   76: <!ATTLIST chown
   77:     dist CDATA #REQUIRED
   78:     >
   79: <!ELEMENT chmod (#PCDATA)>
   80: <!ATTLIST chmod
   81:     dist CDATA #REQUIRED
   82:     >
   83: <!ELEMENT abbreviation (#PCDATA)>
   84: 
   85: <!ELEMENT directory (targetdir,categoryname,description?)>
   86: <!ATTLIST directory
   87:     dist CDATA #REQUIRED
   88:     >
   89: 
   90: <!ELEMENT file (source,target,categoryname,description?,
   91:                 note?,build?,status?,dependencies?)>
   92: <!ELEMENT link (source,target,categoryname,description?,
   93:                 note?,build?,status?,dependencies?)>
   94: 
   95: <!ELEMENT fileglob (glob,sourcedir,targetdir,categoryname,
   96:                     description?,note?,build?,buildlink?,status?,dependencies?,filenames?)>
   97: <!ELEMENT filenames (#PCDATA)>
   98: 
   99: <!ELEMENT rpm (rpmSummary,rpmName,rpmVersion,rpmRelease,rpmVendor,
  100:                rpmBuildRoot,rpmCopyright,rpmGroup,rpmSource,rpmAutoReqProv,
  101:                rpmdescription,rpmpre)>
  102: <!ELEMENT rpmSummary (#PCDATA)>
  103: <!ELEMENT rpmName (#PCDATA)>
  104: <!ELEMENT rpmVersion (#PCDATA)>
  105: <!ELEMENT rpmRelease (#PCDATA)>
  106: <!ELEMENT rpmVendor (#PCDATA)>
  107: <!ELEMENT rpmBuildRoot (#PCDATA)>
  108: <!ELEMENT rpmCopyright (#PCDATA)>
  109: <!ELEMENT rpmGroup (#PCDATA)>
  110: <!ELEMENT rpmSource (#PCDATA)>
  111: <!ELEMENT rpmAutoReqProv (#PCDATA)>
  112: <!ELEMENT rpmdescription (#PCDATA)>
  113: <!ELEMENT rpmpre (#PCDATA)>
  114: 
  115: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>