forked from Pardus-Linux/pisi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pisi-spec.dtd
157 lines (118 loc) · 3.56 KB
/
pisi-spec.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!-- Document Type Declaration file for PISI pspec.xml files -->
<!-- http://www.pardus.org.tr/projeler/pisi/ -->
<!ELEMENT PISI (Source,Package+,History)>
<!-- Source Section -->
<!ELEMENT Source (
#PCDATA |
Name |
Homepage |
Icon |
Packager |
ExcludeArch |
License |
IsA |
PartOf |
Summary |
Description |
Archive |
AdditionalFiles |
Patches |
BuildDependencies
)*>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT Homepage (#PCDATA)>
<!ELEMENT Icon (#PCDATA)>
<!ELEMENT Packager (Name, Email)>
<!ELEMENT Email (#PCDATA)>
<!ELEMENT ExcludeArch (#PCDATA)>
<!ELEMENT License (#PCDATA)>
<!ELEMENT IsA (#PCDATA)>
<!ELEMENT PartOf (#PCDATA)>
<!ELEMENT Summary (#PCDATA)>
<!ATTLIST Summary xml:lang CDATA #IMPLIED>
<!ELEMENT Description (#PCDATA)>
<!ATTLIST Description xml:lang CDATA #IMPLIED>
<!ELEMENT Archive (#PCDATA)>
<!ATTLIST Archive sha1sum CDATA #REQUIRED>
<!-- NOTE: we can limit possible types here to the ones that pisi know -->
<!ATTLIST Archive type CDATA #REQUIRED>
<!ATTLIST Archive target CDATA #IMPLIED>
<!ELEMENT BuildFlags (Flag*)>
<!ELEMENT Flag (#PCDATA)>
<!ELEMENT BuildType (#PCDATA)>
<!ELEMENT BuildDependencies (Dependency*)>
<!ELEMENT Dependency (#PCDATA)>
<!ATTLIST Dependency versionFrom CDATA #IMPLIED>
<!ATTLIST Dependency versionTo CDATA #IMPLIED>
<!ATTLIST Dependency version CDATA #IMPLIED>
<!ATTLIST Dependency releaseFrom CDATA #IMPLIED>
<!ATTLIST Dependency releaseTo CDATA #IMPLIED>
<!ATTLIST Dependency release CDATA #IMPLIED>
<!ELEMENT Patches (Patch*)>
<!ELEMENT Patch (#PCDATA)>
<!ATTLIST Patch compressionType CDATA #IMPLIED>
<!ATTLIST Patch level CDATA #IMPLIED>
<!ATTLIST Patch target CDATA #IMPLIED>
<!ATTLIST Patch reverse CDATA #IMPLIED>
<!-- Package Section -->
<!ELEMENT Package (
#PCDATA |
Name |
License |
Icon |
IsA |
PartOf |
Summary |
Description |
BuildFlags |
BuildType |
BuildDependencies |
RuntimeDependencies |
Files |
Conflicts |
Replaces |
AdditionalFiles |
Provides
)*>
<!ELEMENT Provides (COMAR)+>
<!ELEMENT COMAR (#PCDATA)>
<!ATTLIST COMAR script CDATA #IMPLIED>
<!ATTLIST COMAR name CDATA #IMPLIED>
<!ELEMENT Conflicts (Package)+>
<!-- we have a problem here, this Package tag only contains a package name
while dtd treats this as another Package section, who said dtd doesnt
suck anyway -->
<!ATTLIST Package versionFrom CDATA #IMPLIED>
<!ATTLIST Package versionTo CDATA #IMPLIED>
<!ATTLIST Package version CDATA #IMPLIED>
<!ATTLIST Package releaseFrom CDATA #IMPLIED>
<!ATTLIST Package releaseTo CDATA #IMPLIED>
<!ATTLIST Package release CDATA #IMPLIED>
<!ELEMENT Replaces (Package)+>
<!ELEMENT AdditionalFiles (AdditionalFile+)>
<!ELEMENT AdditionalFile (#PCDATA)>
<!ATTLIST AdditionalFile target CDATA #REQUIRED>
<!ATTLIST AdditionalFile permission CDATA #IMPLIED>
<!ATTLIST AdditionalFile owner CDATA #IMPLIED>
<!ELEMENT RuntimeDependencies (Dependency*)>
<!ELEMENT Files (Path)+>
<!ELEMENT Path (#PCDATA)>
<!-- NOTE: is this list correct? -->
<!ATTLIST Path fileType
(executable|library|data|config|doc|man|info|localedata|header)
#REQUIRED>
<!ATTLIST Path permanent (false|true) #IMPLIED>
<!-- History Section -->
<!ELEMENT History (Update+)>
<!ELEMENT Update (#PCDATA | Date | Version | Comment | Type | Requires | Name | Email)*>
<!ATTLIST Update release CDATA #REQUIRED>
<!ATTLIST Update type (critical|security) #IMPLIED>
<!ELEMENT Date (#PCDATA)>
<!ELEMENT Version (#PCDATA)>
<!ELEMENT Comment (#PCDATA)>
<!ELEMENT Type (#PCDATA)>
<!ATTLIST Type package CDATA #IMPLIED>
<!ELEMENT Requires (Action+)>
<!ELEMENT Action (#PCDATA)>
<!ATTLIST Action package CDATA #IMPLIED>
<!ATTLIST Action target CDATA #IMPLIED>