/usr/share/obs/docs/api/obs.rng is in obs-api 2.7.1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 | <?xml version="1.0" encoding="UTF-8"?>
<!--
Default objects for OBS
-->
<grammar ns="http://buildservice.org/api" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<!-- this list needs to be kept in sync with list in bs_worker -->
<define ns="" name="build-arch">
<choice>
<value>noarch</value>
<value>aarch64</value>
<value>aarch64_ilp32</value>
<value>armv4l</value>
<value>armv5l</value>
<value>armv6l</value>
<value>armv7l</value>
<value>armv5el</value> <!-- not existing officially -->
<value>armv6el</value>
<value>armv7el</value>
<value>armv7hl</value>
<value>armv8el</value>
<value>hppa</value>
<value>m68k</value>
<value>i386</value>
<value>i486</value>
<value>i586</value>
<value>i686</value>
<value>athlon</value>
<value>ia64</value>
<value>k1om</value>
<value>mips</value>
<value>mipsel</value>
<value>mips32</value>
<value>mips64</value>
<value>mips64el</value>
<value>ppc</value>
<value>ppc64</value>
<value>ppc64p7</value>
<value>ppc64le</value>
<value>s390</value>
<value>s390x</value>
<value>sh4</value>
<value>sparc</value>
<value>sparc64</value>
<value>sparc64v</value>
<value>sparcv8</value>
<value>sparcv9</value>
<value>sparcv9v</value>
<value>x86_64</value>
<value>local</value>
</choice>
</define>
<define ns="" name="rebuild-modes">
<choice>
<value>transitive</value> <!-- DEFAULT: build on source change and all depending packages including indirect dependencies -->
<value>direct</value> <!-- build on source change and direct depending packages -->
<value>local</value> <!-- build on source change only -->
</choice>
</define>
<define ns="" name="block-modes">
<choice>
<value>all</value> <!-- DEFAULT: block until all packages we depend on are built -->
<value>local</value> <!-- like all, but ignore packages from other repositories -->
<value>never</value> <!-- immediately start building the packages -->
</choice>
</define>
<define ns="" name="service-modes">
<choice>
<!-- DEFAULT: the attribute is not used, service running on server and locally on build time -->
<value>trylocal</value> <!-- try on local clients and merge result, but run also on server side -->
<value>localonly</value> <!-- never run on server side, but on the clients (not enforced) -->
<value>serveronly</value> <!-- run on server side, but not on the clients by default -->
<value>buildtime</value> <!-- run during build time, pulls in services as build dependencies -->
<value>disabled</value> <!-- never run, except user explicit starts it locally -->
</choice>
</define>
<define ns="" name="linkedbuild-modes">
<choice>
<value>off</value> <!-- DEFAULT: do not build packages from project links -->
<value>localdep</value> <!-- only build project linked packages if they depend on a local package -->
<value>all</value> <!-- treat packages from project links like local packages -->
</choice>
</define>
<define ns="" name="release-triggers">
<choice>
<!-- DEFAULT: not set, no release action possible -->
<value>manual</value> <!-- only on manual commands the release gets started -->
<!-- no yet supported <value>allsucceeded</value> --> <!-- Release when the repository has finished building and all jobs were successfull -->
<value>maintenance</value> <!-- Release just once on maintenance release event. This attribute get removed at the same time -->
</choice>
</define>
<define ns="" name="supportstatus-choices">
<choice>
<value>l3</value>
<value>l2</value>
<value>l1</value>
<value>acc</value>
<value>unsupported</value>
</choice>
</define>
<define ns="" name="local-role">
<choice>
<value>maintainer</value>
<value>bugowner</value>
<value>reviewer</value>
<value>downloader</value>
<value>reader</value>
</choice>
</define>
<define ns="" name="global-role">
<choice>
<value>Admin</value>
<value>User</value>
</choice>
</define>
<define ns="" name="person-element">
<element name="person">
<attribute name="userid">
<data type="string" />
</attribute>
<attribute name="role">
<ref name="local-role" />
</attribute>
<empty/>
</element>
</define>
<define ns="" name="group-element">
<element name="group">
<attribute name="groupid">
<data type="string" />
</attribute>
<attribute name="role">
<ref name="local-role" />
</attribute>
<empty/>
</element>
</define>
<define ns="" name="flag-switch">
<optional>
<attribute name="repository">
<data type="string" />
</attribute>
</optional>
<optional>
<attribute name="arch">
<ref name="build-arch" />
</attribute>
</optional>
</define>
<define ns="" name="flag-element">
<zeroOrMore>
<optional>
<element name="enable">
<ref name="flag-switch"/>
</element>
</optional>
<optional>
<element name="disable">
<ref name="flag-switch"/>
</element>
</optional>
</zeroOrMore>
<empty/>
</define>
<define ns="" name="simple-flag-element">
<optional>
<element name="enable">
<empty/>
</element>
</optional>
<optional>
<element name="disable">
<empty/>
</element>
</optional>
<empty/>
</define>
<define ns="" name="repository-element">
<element name="repository">
<attribute name="name">
<data type="string" />
</attribute>
<optional>
<attribute name="rebuild">
<ref name="rebuild-modes" />
</attribute>
</optional>
<optional>
<attribute name="block">
<ref name="block-modes" />
</attribute>
</optional>
<optional>
<attribute name="linkedbuild">
<ref name="linkedbuild-modes" />
</attribute>
</optional>
<interleave>
<zeroOrMore>
<element name="download">
<attribute name="arch">
<data type="string" />
</attribute>
<attribute name="url">
<data type="string" />
</attribute>
<attribute name="repotype">
<data type="string" />
</attribute>
<interleave>
<optional>
<element name="archfilter">
<text/>
</element>
</optional>
<optional>
<element name="master">
<attribute name="url">
<data type="string" />
</attribute>
<attribute name="sslfingerprint">
<data type="string" />
</attribute>
</element>
</optional>
<optional>
<element name="pubkey">
<text/>
</element>
</optional>
</interleave>
</element>
</zeroOrMore>
<optional> <!-- limited to one currently. Could be extended later -->
<element name="releasetarget">
<attribute name="project">
<data type="string" />
</attribute>
<attribute name="repository">
<data type="string" />
</attribute>
<optional>
<attribute name="trigger">
<ref name="release-triggers" />
</attribute>
</optional>
</element>
</optional>
<zeroOrMore>
<element name="path">
<attribute name="repository">
<data type="string" />
</attribute>
<attribute name="project">
<data type="string" />
</attribute>
</element>
</zeroOrMore>
<optional>
<element name="hostsystem">
<attribute name="repository">
<data type="string" />
</attribute>
<attribute name="project">
<data type="string" />
</attribute>
</element>
</optional>
<zeroOrMore>
<element name="arch">
<ref name="build-arch" />
</element>
</zeroOrMore>
</interleave>
<empty/>
</element>
</define>
<define ns="" name="issue-tracker-element">
<element name="issue-tracker">
<interleave>
<element name="name">
<text/>
</element>
<element name="label">
<text/>
</element>
<element name="kind">
<text/>
</element>
<element name="description">
<text/>
</element>
<optional>
<element name="enable-fetch">
<text/>
</element>
</optional>
<optional>
<element name="issues-updated">
<text/>
</element>
</optional>
<optional>
<element name="user">
<text/>
</element>
</optional>
<optional>
<element name="password">
<text/>
</element>
</optional>
<element name="url">
<text/>
</element>
<element name="show-url">
<text/>
</element>
<element name="regex">
<text/>
</element>
</interleave>
</element>
</define>
<!-- worker and dispatcher constraint values -->
<define ns="" name="build-sandbox">
<choice>
<value>chroot</value>
<value>lxc</value>
<value>kvm</value>
<value>xen</value>
<value>secure</value> <!-- xen or kvm -->
</choice>
</define>
<define ns="" name="cpu-flags">
<choice>
<value>fpu</value>
<value>mmx</value>
<value>sse</value>
<value>sse2</value>
<value>sse3</value>
<value>ssse3</value>
</choice>
</define>
<define ns="" name="size-unit">
<element name="size">
<attribute name="unit">
<choice>
<value>K</value>
<value>M</value>
<value>G</value>
<value>T</value>
</choice>
</attribute>
<data type="float"/>
</element>
</define>
<!-- OBS rating values, used in patchinfos and requests -->
<define ns="" name="obs-ratings">
<choice>
<value>low</value> <!-- work on it when nothing else needs to be done -->
<value>moderate</value> <!-- default: normal priority -->
<value>important</value> <!-- prefer this over the others, but finish your current task first -->
<value>critical</value> <!-- everything and work only on this -->
</choice>
</define>
</grammar>
|