class RPM::Spec
- RPM::Spec
- Reference
- Object
Defined in:
rpm/spec.crConstructors
Class Method Summary
Instance Method Summary
-
#build(*, build_amount : BuildFlags, pkg_flags : BuildPkgFlags = BuildPkgFlags::NONE, transaction : Transaction? = nil)
Build the package
-
#buildconflicts
Returns array of BuildConflicts specified in the spec file.
-
#buildrequires
Returns array of BuildRequires specified in the spec file.
-
#buildroot
Returns buildroot associated with the specfile.
-
#finalize
Cleanup
-
#header : RPM::Package
Header data would be stored into SRPM, as a
RPM::Package
. -
#packages
Returns array of packages defined in the spec file.
- #ptr : LibRPM::Spec
-
#sources
Returns array of sources defined in the spec file.
Constructor Detail
Class Method Detail
Open a specfile
This method gives reasonable defaults for each parameters.
Instance Method Detail
Build the package
Build the package with specified steps in build_amount
.
Pre-build check and other conditions may be set via pkg_flags
.
If a transaction
is given, use it as a transaction while
building the package. transaction
parameter only affects on
rpm >= 4.15.0. Otherwise it will be ignored. If transaction
is
not given for rpm >= 4.15.0, this method creates new one.
If the package built seccessfully, returns true. Otherwise returns false.
Returns buildroot associated with the specfile.
Warning: In rpm 4.9 or later, this is the result of expanding
%{buildroot}
. So, if you open two or more specfiles
simultaneously, you may get incorrect result.
Header data would be stored into SRPM, as a RPM::Package
.
Warning: In rpm 4.8, this method returns the header data from
buildRestrictions
. Some tags may not be set.