home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / zypp / schema / yum / patch.rnc < prev    next >
Encoding:
Text File  |  2006-11-29  |  3.7 KB  |  140 lines

  1. default namespace = "http://novell.com/package/metadata/suse/patch"
  2. namespace ns1 = "http://novell.com/package/metadata/suse/common"
  3. namespace yum = "http://linux.duke.edu/metadata/common"
  4.  
  5. include "suse-primary.rnc" {
  6.   start = element-patch
  7.  
  8. # patches use localized summary and description fields
  9.   element-summary = element summary { localized-string }+
  10.   element-description = element description { localized-string }+
  11.   element-license-to-confirm = element license-to-confirm { localized-string }  
  12. # packages in patches have an additional rpmfiles element
  13.   element-package = element yum:package { package & element-pkgfiles & (element license-to-confirm { localized-string }?) }
  14. }
  15.  
  16.  
  17. element-patch = element patch { patch }
  18.  
  19. patch =
  20.   attribute patchid { text },
  21.   attribute timestamp { xsd:nonNegativeInteger },
  22.   attribute engine { text },
  23.   element-name,
  24.   element-summary,
  25.   element-description,
  26.   element-license-to-confirm*,
  27.   element-version,
  28.   ( element-provides | element-conflicts | element-obsoletes | element-requires | element-freshens | element-recommends | element-suggests | element-supplements | element-enhances )*,
  29.   element-category,
  30.   element reboot-needed { empty }?,
  31.   element package-manager { empty }?,
  32.   element-update-script?,
  33.   element atoms { (element-package | element-script | element-message)+ }+
  34.  
  35. # shortcut since all atoms have the same dependency section
  36. dependency-block =
  37.   ( element-provides | element-conflicts | element-obsoletes | element-requires | element-freshens | element-recommends | element-suggests | element-supplements | element-enhances )*
  38.  
  39. element-category =
  40.   element category { "youfix" | "security" | "recommended" | "bonus" | "beta" }
  41.  
  42. element-update-script = element update-script { text }
  43.  
  44. element-script =
  45.   element script {
  46.     element-name,
  47.     element-version,    
  48.     element do { xsd:string }?,
  49.     element undo { xsd:string }?,
  50.     element do-location {
  51.       attribute xml:base { xsd:anyURI }?,
  52.       attribute href { xsd:anyURI },
  53.       empty
  54.     }?,
  55.     element do-checksum {
  56.       attribute type { "md5" | "sha" },
  57.       text
  58.     }?,
  59.     element undo-location {
  60.       attribute xml:base { xsd:anyURI }?,
  61.       attribute href { xsd:anyURI },
  62.       empty
  63.     }?,
  64.     element undo-checksum {
  65.       attribute type { "md5" | "sha" },
  66.       text
  67.     }?,
  68.     dependency-block
  69.   }
  70.  
  71. element-message =
  72.   element message {
  73.     element-name,
  74.     element-version,    
  75.     element text { localized-string }+,
  76.     dependency-block
  77.   }
  78.  
  79. element-pkgfiles =
  80.   element pkgfiles {  ( element-deltarpm | element-patchrpm | element-plainrpm ) * }
  81.  
  82. element-plainrpm =
  83.   element plainrpm {
  84.     shared-rpmfile-attributes
  85.   }
  86.  
  87. element-patchrpm =
  88.   element patchrpm {
  89.     shared-rpmfile-attributes,
  90.     element location {
  91.       attribute xml:base { xsd:anyURI }?,
  92.       attribute href { xsd:anyURI },
  93.       empty
  94.     },
  95.     element checksum {
  96.       attribute type { "md5" | "sha" },
  97.       text
  98.     },
  99.     element-time,
  100.     element-size,
  101.     element-base-version +
  102.   }
  103.  
  104.  
  105. element-deltarpm =
  106.   element deltarpm {
  107.     shared-rpmfile-attributes,
  108.     element location {
  109.       attribute xml:base { xsd:anyURI }?,
  110.       attribute href { xsd:anyURI },
  111.       empty
  112.     },
  113.     element checksum {
  114.       attribute type { "md5" | "sha" },
  115.       text
  116.     },
  117.     element-time,
  118.     element-size,
  119.     element-delta-base-version
  120.   }
  121.  
  122. shared-rpmfile-attributes =
  123.   attribute arch { arch },
  124.   attribute filename { text },
  125.   attribute downloadsize { text } ,
  126.   attribute md5sum { text } ?,
  127.   attribute buildtime { text } ?
  128.  
  129. element-base-version = 
  130.   element base-version { version }
  131.  
  132. element-delta-base-version =
  133.   element base-version {
  134.     version,
  135.     attribute md5sum { text },
  136.     attribute buildtime { text },
  137.     attribute sequence_info { text }
  138.   }
  139.  
  140.