Blame SOURCES/BZ-1348995-ship-comps-rng-schema.patch

d2a170
diff -up yum-3.4.3/docs/comps.rng.orig yum-3.4.3/docs/comps.rng
d2a170
--- yum-3.4.3/docs/comps.rng.orig	2011-06-28 22:27:22.000000000 +0200
d2a170
+++ yum-3.4.3/docs/comps.rng	2016-06-30 14:30:03.980476903 +0200
d2a170
@@ -21,14 +21,22 @@
d2a170
         <ref name="group"/>
d2a170
       </oneOrMore>
d2a170
       <zeroOrMore>
d2a170
+        <ref name="environment"/>
d2a170
+      </zeroOrMore>
d2a170
+      <zeroOrMore>
d2a170
         <ref name="category"/>
d2a170
       </zeroOrMore>
d2a170
-      <optional>
d2a170
-        <interleave>
d2a170
+      <interleave>
d2a170
+        <optional>
d2a170
           <ref name="whiteout"/>
d2a170
+        </optional>
d2a170
+        <optional>
d2a170
           <ref name="blacklist"/>
d2a170
-        </interleave>
d2a170
-      </optional>
d2a170
+        </optional>
d2a170
+        <optional>
d2a170
+          <ref name="langpacks"/>
d2a170
+        </optional>
d2a170
+      </interleave>
d2a170
     </element>
d2a170
   </define>
d2a170
   <define name="group">
d2a170
@@ -37,14 +45,18 @@
d2a170
       <a:documentation>This defines a package group.</a:documentation>
d2a170
       <interleave>
d2a170
        <ref name="id"/>
d2a170
-       <element name="default" a:defaultValue="true">
d2a170
-         <a:documentation>Should the group be enabled by default?</a:documentation>
d2a170
-         <ref name="boolean"/>
d2a170
-       </element>
d2a170
-       <element name="uservisible" a:defaultValue="true">
d2a170
-         <a:documentation>Should the group be visible to users?</a:documentation>
d2a170
-         <ref name="boolean"/>
d2a170
-       </element>
d2a170
+       <optional>
d2a170
+         <element name="default" a:defaultValue="true">
d2a170
+           <a:documentation>Should the group be enabled by default?</a:documentation>
d2a170
+           <ref name="boolean"/>
d2a170
+         </element>
d2a170
+       </optional>
d2a170
+       <optional>
d2a170
+         <element name="uservisible" a:defaultValue="true">
d2a170
+           <a:documentation>Should the group be visible to users?</a:documentation>
d2a170
+           <ref name="boolean"/>
d2a170
+         </element>
d2a170
+       </optional>
d2a170
        <optional>
d2a170
          <element name="display_order">
d2a170
            <ref name="positiveInteger"/>
d2a170
@@ -72,6 +84,9 @@
d2a170
       <oneOrMore>
d2a170
         <ref name="groupreq"/>
d2a170
       </oneOrMore>
d2a170
+      <zeroOrMore>
d2a170
+        <ref name="metapkg"/>
d2a170
+      </zeroOrMore>
d2a170
     </element>
d2a170
   </define>
d2a170
   <define name="groupreq">
d2a170
@@ -79,23 +94,39 @@
d2a170
       <ref name="groupname"/>
d2a170
     </element>
d2a170
   </define>
d2a170
+  <define name="metapkg">
d2a170
+    <element name="metapkg">
d2a170
+      <ref name="packagename"/>
d2a170
+      <optional>
d2a170
+        <attribute name="type">
d2a170
+          <choice>
d2a170
+            <value>mandatory</value>
d2a170
+            <value>default</value>
d2a170
+            <value>optional</value>
d2a170
+          </choice>
d2a170
+        </attribute>
d2a170
+      </optional>
d2a170
+    </element>
d2a170
+  </define>
d2a170
   <define name="packagelist">
d2a170
     <element name="packagelist">
d2a170
-      <oneOrMore>
d2a170
+      <zeroOrMore>
d2a170
         <ref name="packagereq"/>
d2a170
-      </oneOrMore>
d2a170
+      </zeroOrMore>
d2a170
     </element>
d2a170
   </define>
d2a170
   <define name="packagereq">
d2a170
     <element name="packagereq">
d2a170
       <choice>
d2a170
-        <attribute name="type" a:defaultValue="optional">
d2a170
-          <choice>
d2a170
-            <value>mandatory</value>
d2a170
-            <value>default</value>
d2a170
-            <value>optional</value>
d2a170
-          </choice>
d2a170
-        </attribute>
d2a170
+        <optional>
d2a170
+          <attribute name="type" a:defaultValue="optional">
d2a170
+            <choice>
d2a170
+              <value>mandatory</value>
d2a170
+              <value>default</value>
d2a170
+              <value>optional</value>
d2a170
+            </choice>
d2a170
+          </attribute>
d2a170
+        </optional>
d2a170
         <group>
d2a170
           <attribute name="type" a:defaultValue="conditional">
d2a170
             <choice>
d2a170
@@ -112,9 +143,30 @@
d2a170
           <ref name="boolean"/>
d2a170
         </attribute>
d2a170
       </optional>
d2a170
+      <optional>
d2a170
+        <attribute name="arch">
d2a170
+          <ref name="string"/>
d2a170
+        </attribute>
d2a170
+      </optional>
d2a170
       <ref name="packagename"/>
d2a170
     </element>
d2a170
   </define>
d2a170
+  <define name="environment">
d2a170
+    <element name="environment">
d2a170
+      <interleave>
d2a170
+        <ref name="id"/>
d2a170
+        <optional>
d2a170
+          <element name="display_order">
d2a170
+            <ref name="positiveInteger"/>
d2a170
+          </element>
d2a170
+        </optional>
d2a170
+        <ref name="grouplist"/>
d2a170
+        <optional>
d2a170
+          <ref name="optionlist"/>
d2a170
+        </optional>
d2a170
+      </interleave>
d2a170
+    </element>
d2a170
+  </define>
d2a170
   <define name="category">
d2a170
     <element name="category">
d2a170
       <interleave>
d2a170
@@ -135,9 +187,21 @@
d2a170
       </oneOrMore>
d2a170
     </element>
d2a170
   </define>
d2a170
+  <define name="optionlist">
d2a170
+    <element name="optionlist">
d2a170
+      <oneOrMore>
d2a170
+        <ref name="groupid"/>
d2a170
+      </oneOrMore>
d2a170
+    </element>
d2a170
+  </define>
d2a170
   <define name="groupid">
d2a170
     <element name="groupid">
d2a170
       <ref name="string"/>
d2a170
+      <optional>
d2a170
+        <attribute name="default" a:defaultValue="false">
d2a170
+          <ref name="boolean"/>
d2a170
+        </attribute>
d2a170
+      </optional>
d2a170
     </element>
d2a170
   </define>
d2a170
   <define name="id">
d2a170
@@ -182,6 +246,29 @@
d2a170
       </group>
d2a170
     </choice>
d2a170
   </define>
d2a170
+  <define name="langpacks">
d2a170
+    <a:documentation>
d2a170
+    The "langpacks" item is a list of package-to-langpack mappings used
d2a170
+    by the yum-langpacks plugin.
d2a170
+
d2a170
+    An example is:
d2a170
+     <match name="foo" install="foo-lang-%s">
d2a170
+    When the 'foo' package is installed, the 'foo-lang-(language code)' package
d2a170
+    will be installed for any configured languages.
d2a170
+    </a:documentation>
d2a170
+    <element name="langpacks">
d2a170
+      <zeroOrMore>
d2a170
+        <element name="match">
d2a170
+          <attribute name="name">
d2a170
+            <ref name="string"/>
d2a170
+          </attribute>
d2a170
+          <attribute name="install">
d2a170
+            <ref name="string"/>
d2a170
+          </attribute>
d2a170
+        </element>
d2a170
+      </zeroOrMore>
d2a170
+    </element>
d2a170
+  </define>
d2a170
   <define name="blacklist">
d2a170
     <a:documentation>
d2a170
     The "blacklist" is a list of packages that will be *removed* if found
d2a170
@@ -257,7 +344,7 @@
d2a170
     <data type="string"/>
d2a170
   </define>
d2a170
   <define name="ID">
d2a170
-    <data type="ID"/>
d2a170
+    <data type="string"/>
d2a170
   </define>
d2a170
 
d2a170
   <define name="locale">
d2a170
diff -up yum-3.4.3/yum.spec.orig yum-3.4.3/yum.spec
d2a170
--- yum-3.4.3/yum.spec.orig	2016-06-30 14:30:03.980476903 +0200
d2a170
+++ yum-3.4.3/yum.spec	2016-06-30 14:30:35.545325463 +0200
d2a170
@@ -347,7 +347,7 @@ exit 0
d2a170
 
d2a170
 %files -f %{name}.lang
d2a170
 %defattr(-, root, root, -)
d2a170
-%doc README AUTHORS COPYING TODO INSTALL ChangeLog PLUGINS
d2a170
+%doc README AUTHORS COPYING TODO INSTALL ChangeLog PLUGINS docs/comps.rng
d2a170
 %if %{move_yum_conf_back}
d2a170
 %config(noreplace) %{_sysconfdir}/yum.conf
d2a170
 %dir %{_sysconfdir}/yum.repos.d