develooper Front page | perl.perl5.porters | Postings from October 2003

Re: Access to Module::Build internal data

Thread Previous
From:
Slaven Rezic
Date:
October 8, 2003 09:19
Subject:
Re: Access to Module::Build internal data
Message ID:
1065629880.10510@devpc01.iconmobile.de
Johan Vromans <jvromans@squirrel.nl> wrote:
> One of the things I often do in a Makefile.PL is generate an RPM .spec
> file for the current module (kit) from a template. For this, I need to
> change things like name and version in the template.
> 
> Is there an 'official' way to get this information from Module::Build?
> I can use $build->{properties}->{dist_version} but I'd prefer to not
> look under the hood as per OO conventions.
> 
> Suggestions?
> 

use YAML; YAML::LoadFile("META.yml");

Regards,
    Slaven

-- 
Slaven Rezic - slaven <at> rezic <dot> de

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About