Modulemd.Buildopts¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
A string containing RPM build macros in the form that they would appear in an RPM macros file on-disk. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Modulemd.Buildopts(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
A newly-allocated
Modulemd.Buildoptsobject. This object must be freed withGObject.Object.unref().- Return type:
Added in version 2.0.
- add_arch(arch)¶
- Parameters:
arch (
str) – An architecture for which to build this module.
Restrict the list of architectures for which to build this module. It may be called any number of times to indicate support on additional architectures. Use
Modulemd.Buildopts.clear_arches() to return to “all architectures”.Added in version 2.9.
- add_rpm_to_whitelist(rpm)¶
- Parameters:
rpm (
str) – An RPM name to add to the whitelist.
Added in version 2.0.
- clear_arches()¶
Indicate that this module should be built for all architectures.
Added in version 2.9.
- clear_rpm_whitelist()¶
Remove all RPMs from the whitelist.
Added in version 2.5.
- copy()¶
- Returns:
A newly-allocated
Modulemd.Buildoptsobject that is a copy of self.- Return type:
Create a copy of this
Modulemd.Buildoptsobject.Added in version 2.0.
- equals(self_2)¶
- Parameters:
self_2 (
Modulemd.Buildopts) – AModulemd.Buildoptsobject.- Returns:
- Return type:
Check for equality for two
Modulemd.Buildoptsobjects.Added in version 2.2.
- get_arches()¶
- Returns:
A #GStrv list of architectures for which this module should be built. If empty, this module should be built for all architectures.
- Return type:
[
str]
Added in version 2.9.
- get_rpm_macros()¶
- Returns:
A string containing RPM build macros in the form that they would appear in an RPM macros file on-disk.
- Return type:
Added in version 2.0.
- get_rpm_whitelist()¶
- Returns:
An ordered #GStrv list of all RPMs in the whitelist.
- Return type:
[
str]
Added in version 2.0.
- remove_arch(arch)¶
- Parameters:
arch (
str) – An architecture to remove from the list of architectures for which to build this module.
Added in version 2.9.