Kaydet (Commit) 9aa31bcc authored tarafından Fatih Aşıcı's avatar Fatih Aşıcı

specfile: Accept BuildType tag inside Package tags

It is not functional at this time.
üst 0262a6df
...@@ -52,6 +52,8 @@ ...@@ -52,6 +52,8 @@
<!ATTLIST Archive type CDATA #REQUIRED> <!ATTLIST Archive type CDATA #REQUIRED>
<!ATTLIST Archive target CDATA #IMPLIED> <!ATTLIST Archive target CDATA #IMPLIED>
<!ELEMENT BuildType (#PCDATA)>
<!ELEMENT BuildDependencies (Dependency*)> <!ELEMENT BuildDependencies (Dependency*)>
<!ELEMENT Dependency (#PCDATA)> <!ELEMENT Dependency (#PCDATA)>
...@@ -82,6 +84,7 @@ ...@@ -82,6 +84,7 @@
PartOf | PartOf |
Summary | Summary |
Description | Description |
BuildType |
RuntimeDependencies | RuntimeDependencies |
Files | Files |
Conflicts | Conflicts |
......
...@@ -85,6 +85,9 @@ ...@@ -85,6 +85,9 @@
<zeroOrMore> <zeroOrMore>
<ref name="Description"/> <ref name="Description"/>
</zeroOrMore> </zeroOrMore>
<optional>
<ref name="BuildType"/>
</optional>
<optional> <optional>
<ref name="RuntimeDependencies"/> <ref name="RuntimeDependencies"/>
</optional> </optional>
...@@ -1333,6 +1336,13 @@ ...@@ -1333,6 +1336,13 @@
</group> </group>
</define> </define>
<!-- BuildType -->
<define name="BuildType">
<element name="BuildType">
<text/>
</element>
</define>
<!-- BuildDependencies --> <!-- BuildDependencies -->
<define name="BuildDependencies"> <define name="BuildDependencies">
<element name="BuildDependencies"> <element name="BuildDependencies">
......
# -*- coding: utf-8 -*- # -*- 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 # 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 # the terms of the GNU General Public License as published by the Free
...@@ -232,6 +232,7 @@ class Package: ...@@ -232,6 +232,7 @@ class Package:
t_PartOf = [autoxml.String, autoxml.optional] t_PartOf = [autoxml.String, autoxml.optional]
t_License = [ [autoxml.String], autoxml.optional] t_License = [ [autoxml.String], autoxml.optional]
t_Icon = [ 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_PackageDependencies = [ [pisi.dependency.Dependency], autoxml.optional, "RuntimeDependencies/Dependency"]
t_PackageAnyDependencies = [[AnyDependency], autoxml.optional, "RuntimeDependencies/AnyDependency"] t_PackageAnyDependencies = [[AnyDependency], autoxml.optional, "RuntimeDependencies/AnyDependency"]
t_ComponentDependencies = [ [autoxml.String], autoxml.optional, "RuntimeDependencies/Component"] t_ComponentDependencies = [ [autoxml.String], autoxml.optional, "RuntimeDependencies/Component"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment