Modulemd.Buildopts

g GObject.Object GObject.Object Modulemd.Buildopts Modulemd.Buildopts GObject.Object->Modulemd.Buildopts

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_arch (arch)

add_rpm_to_whitelist (rpm)

clear_arches ()

clear_rpm_whitelist ()

copy ()

equals (self_2)

get_arches ()

get_rpm_macros ()

get_rpm_whitelist ()

remove_arch (arch)

remove_rpm_from_whitelist (rpm)

set_rpm_macros (rpm_macros)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

rpm-macros

str

r/w

A string containing RPM build macros in the form that they would appear in an RPM macros file on-disk.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Modulemd.Buildopts(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Modulemd.BuildoptsClass

classmethod new()
Returns:

A newly-allocated Modulemd.Buildopts object. This object must be freed with GObject.Object.unref().

Return type:

Modulemd.Buildopts

New 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”.

New in version 2.9.

add_rpm_to_whitelist(rpm)
Parameters:

rpm (str) – An RPM name to add to the whitelist.

New in version 2.0.

clear_arches()

Indicate that this module should be built for all architectures.

New in version 2.9.

clear_rpm_whitelist()

Remove all RPMs from the whitelist.

New in version 2.5.

copy()
Returns:

A newly-allocated Modulemd.Buildopts object that is a copy of self.

Return type:

Modulemd.Buildopts

Create a copy of this Modulemd.Buildopts object.

New in version 2.0.

equals(self_2)
Parameters:

self_2 (Modulemd.Buildopts) – A Modulemd.Buildopts object.

Returns:

True if both objects are equal, False otherwise.

Return type:

bool

Check for equality for two Modulemd.Buildopts objects.

New 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]

New 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:

str

New in version 2.0.

get_rpm_whitelist()
Returns:

An ordered #GStrv list of all RPMs in the whitelist.

Return type:

[str]

New 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.

New in version 2.9.

remove_rpm_from_whitelist(rpm)
Parameters:

rpm (str) – An RPM name to remove from the whitelist.

New in version 2.0.

set_rpm_macros(rpm_macros)
Parameters:

rpm_macros (str) – A string containing RPM build macros in the form that they would appear in an RPM macros file on-disk.

New in version 2.0.

Property Details

Modulemd.Buildopts.props.rpm_macros
Name:

rpm-macros

Type:

str

Default Value:

'__BUILDOPTS_RPM_MACROS_UNSET__'

Flags:

READABLE, WRITABLE

A string containing RPM build macros in the form that they would appear in an RPM macros file on-disk.