specfile: Accept BuildType tag inside Package tags
It is not functional at this time.
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
<!ATTLIST Archive type CDATA #REQUIRED>
|
||||
<!ATTLIST Archive target CDATA #IMPLIED>
|
||||
|
||||
<!ELEMENT BuildType (#PCDATA)>
|
||||
|
||||
<!ELEMENT BuildDependencies (Dependency*)>
|
||||
|
||||
<!ELEMENT Dependency (#PCDATA)>
|
||||
@@ -82,6 +84,7 @@
|
||||
PartOf |
|
||||
Summary |
|
||||
Description |
|
||||
BuildType |
|
||||
RuntimeDependencies |
|
||||
Files |
|
||||
Conflicts |
|
||||
|
||||
@@ -85,6 +85,9 @@
|
||||
<zeroOrMore>
|
||||
<ref name="Description"/>
|
||||
</zeroOrMore>
|
||||
<optional>
|
||||
<ref name="BuildType"/>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="RuntimeDependencies"/>
|
||||
</optional>
|
||||
@@ -1333,6 +1336,13 @@
|
||||
</group>
|
||||
</define>
|
||||
|
||||
<!-- BuildType -->
|
||||
<define name="BuildType">
|
||||
<element name="BuildType">
|
||||
<text/>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
<!-- BuildDependencies -->
|
||||
<define name="BuildDependencies">
|
||||
<element name="BuildDependencies">
|
||||
|
||||
+2
-1
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2005-2010, TUBITAK/UEKAE
|
||||
# Copyright (C) 2005-2011, TUBITAK/UEKAE
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it under
|
||||
# the terms of the GNU General Public License as published by the Free
|
||||
@@ -232,6 +232,7 @@ class Package:
|
||||
t_PartOf = [autoxml.String, autoxml.optional]
|
||||
t_License = [ [autoxml.String], autoxml.optional]
|
||||
t_Icon = [ autoxml.String, autoxml.optional]
|
||||
t_BuildType = [ autoxml.String, autoxml.optional ]
|
||||
t_PackageDependencies = [ [pisi.dependency.Dependency], autoxml.optional, "RuntimeDependencies/Dependency"]
|
||||
t_PackageAnyDependencies = [[AnyDependency], autoxml.optional, "RuntimeDependencies/AnyDependency"]
|
||||
t_ComponentDependencies = [ [autoxml.String], autoxml.optional, "RuntimeDependencies/Component"]
|
||||
|
||||
Reference in New Issue
Block a user