RPM-Specfile
view release on metacpan or search on metacpan
lib/RPM/Specfile.pm view on Meta::CPAN
=item pre([$scriptlet])
Returns the contents of the %pre scriptlet. If $scriptlet is given, %pre is set
to the value of $scriptlet.
$spec->pre("echo Running %%pre...\nexit 0");
=item prefix([$index, $prefix])
Returns a list of prefix/relocation entries. If $index and $prefix are provided it will
set the entry referenced by $index to $prefix.
@prefixes = $spec->prefix();
=item preun([$scriptlet])
Returns the contents of the %preun scriptlet. If $scriptlet is given, %preun is set
to the value of $scriptlet.
$spec->preun("echo Running %%preun...\nexit 0");
lib/RPM/Specfile.pm view on Meta::CPAN
=item push_patch([$entry])
Pushes a patch onto the list of patches.
$spec->push_patch('autorollback.patch');
Note, adding a patch implicitly adds entries to the %prep script.
=item push_prefix([$prefix])
Push a prefix onto to the list of valid relocations.
$spec->clear_prefix('/usr/local/mypkg');
=item push_provide([$entry])
Pushes a provision onto the list of provisions.
$spec->push_provide('kernel-tools = 2.6');
=item push_require([$entry])
( run in 0.699 second using v1.01-cache-2.11-cpan-71847e10f99 )