Vridlo/types/Rpm: Difference between revisions

From ALT Linux Wiki
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Rpm''' is '''''write-once''''' structure that represents RPM file containment model. It is described as:
'''Rpm''' is a '''''primary''''' structure that represents RPM file containment model. It is described as:


* '''slug''' is ''string '''optional read-only'''''
* '''slug''' is ''string '''optional read-only'''''
  Unique slug of the RPM.
  Unique slug of the RPM in '''revrb''' format, which includes ''epoch'', ''version'', ''release'', ''buildtime'' of the RPM separated by "'''-'''" minus sign.
 
* '''app_slug''' is ''string '''mandatory write-once'''''
Slug name of the application, which the RPM belongs to. The application must exist.


* '''name''' is ''string '''mandatory write-once'''''
* '''name''' is ''string '''mandatory write-once'''''
  Unique name of the rpm. Can be renamed with a notification.
  Name of the rpm.


* '''epoch''' is ''natural '''optional write-once'''''
* '''epoch''' is ''natural '''optional write-once'''''
Line 16: Line 19:
  Release of the rpm build. Usually is is represented as a number.
  Release of the rpm build. Usually is is represented as a number.


* '''arch''' is ''string '''mandatory write-once'''''
* '''arch_slug''' is ''string '''mandatory write-once'''''
  Architecture slug name of the rpm build. Must be presented in the system. It represents slug link to [[Vridlo/types/Arch|Arch]] structure.
  Architecture slug name of the rpm build. Must be presented in the system. It represents slug link to [[Vridlo/types/Arch|Arch]] structure.


Line 23: Line 26:


* '''builder_slug''' is ''string '''mandatory write-once'''''
* '''builder_slug''' is ''string '''mandatory write-once'''''
  Slug name of the RPM builder, represents [[Vridlo/types/User|User]] structure.
  Slug name of the RPM builder person, represents [[Vridlo/types/User|User]] structure, which is defined by the user's [[Vridlo/types/Recital|Recital]] record placed with the kind of ''login''.
 
   
* '''group_slug''' is ''string '''mandatory write-once'''''
  Represents a slug string of the group identifier, which the rpm belongs to.
 
* '''sha''' is ''string[56] '''mandatory read-only'''''
* '''sha''' is ''string[56] '''mandatory read-only'''''
  [https://en.wikipedia.org/wiki/SHA-2 SHA2 224] 56-byted checksum over the RPM file containment. Can be used as unique file index.
  [https://en.wikipedia.org/wiki/SHA-2 SHA2 224] 56-byted checksum over the RPM file containment. Can be used as unique file index.
Line 35: Line 35:


* '''src_slug''' is ''string '''optional write-once'''''
* '''src_slug''' is ''string '''optional write-once'''''
  Slug of the source RPM. Must be presented and valid if arch is not ''src'', or be blank if arch is ''src''.
  Slug of the source RPM. Must be presented and valid if arch is not ''src'', or be blank if arch is ''src''. The slug is in '''revrb''' format, which includes ''epoch'', ''version'', ''release'', ''buildtime'' of the RPM separated by "'''-'''" minus sign.


* '''spec''' is ''string '''mandatory write-only write-once'''''
* '''spec''' is ''string '''mandatory write-only write-once'''''
  RPM spec text binary.
  RPM spec text binary.
* '''tag_names''' is ''string array '''mandatory read-only'''''
Array of tag names which are bind to the RPM.


* '''descriptions_count''' is ''positive '''mandatory read-only'''''
* '''descriptions_count''' is ''positive '''mandatory read-only'''''
Line 48: Line 45:
* '''descriptions''' is ''[[Vridlo/types/Lorem|Lorem]] array '''optional write-only'''''
* '''descriptions''' is ''[[Vridlo/types/Lorem|Lorem]] array '''optional write-only'''''
  Array of descriptions of the rpm, '''text''' of which is stored in encoding specified by '''cp''' field, and '''cp'''is autodetected or inferred from encoding RPM field. It represents [[Vridlo/types/Lorem|Lorem]] structure.
  Array of descriptions of the rpm, '''text''' of which is stored in encoding specified by '''cp''' field, and '''cp'''is autodetected or inferred from encoding RPM field. It represents [[Vridlo/types/Lorem|Lorem]] structure.
* '''filename''' is ''string '''mandatory write-once conditional'''''
File name of the rpm. Is used and appeared when is queried for the specified source path.
* '''obsoleted_at''' is ''string '''optional conditional'''''
Obsolete time of RPM, so when it is presented, file no more exists in the branch path. Appeared when is queried for the specified source path.

Latest revision as of 15:04, 25 December 2019

Rpm is a primary structure that represents RPM file containment model. It is described as:

  • slug is string optional read-only
Unique slug of the RPM in revrb format, which includes epoch, version, release, buildtime of the RPM separated by "-" minus sign.
  • app_slug is string mandatory write-once
Slug name of the application, which the RPM belongs to. The application must exist.
  • name is string mandatory write-once
Name of the rpm.
  • epoch is natural optional write-once
Epoch number of the rpm build.
  • version is string mandatory write-once
Version of the rpm build. Usually is is represented as a number.
  • release is string mandatory write-once
Release of the rpm build. Usually is is represented as a number.
  • arch_slug is string mandatory write-once
Architecture slug name of the rpm build. Must be presented in the system. It represents slug link to Arch structure.
  • built_at is string mandatory write-once
Rpm is built at time.
  • builder_slug is string mandatory write-once
Slug name of the RPM builder person, represents User structure, which is defined by the user's Recital record placed with the kind of login.

  • sha is string[56] mandatory read-only
SHA2 224 56-byted checksum over the RPM file containment. Can be used as unique file index.
  • size is string mandatory write-once
Size of the rpm file.
  • src_slug is string optional write-once
Slug of the source RPM. Must be presented and valid if arch is not src, or be blank if arch is src. The slug is in revrb format, which includes epoch, version, release, buildtime of the RPM separated by "-" minus sign.
  • spec is string mandatory write-only write-once
RPM spec text binary.
  • descriptions_count is positive mandatory read-only
Count of descriptions that are provided to the Rpm record.
  • descriptions is Lorem array optional write-only
Array of descriptions of the rpm, text of which is stored in encoding specified by cp field, and cpis autodetected or inferred from encoding RPM field. It represents Lorem structure.
  • filename is string mandatory write-once conditional
File name of the rpm. Is used and appeared when is queried for the specified source path.
  • obsoleted_at is string optional conditional
Obsolete time of RPM, so when it is presented, file no more exists in the branch path. Appeared when is queried for the specified source path.