LCFG-Build-PkgSpec
view release on metacpan or search on metacpan
'Data::Structure::Util' => '0.12',
'DateTime' => '0',
'Email::Address' => '0',
'Email::Valid' => '0',
'Moose' => '0.98',
'Pod::Usage' => '0',
'YAML::Syck' => '0.98',
},
build_requires => {
'Test::More' => 0,
'Test::Differences' => 0,
'Test::Exception' => 0,
},
add_to_cleanup => [ 'LCFG-Build-PkgSpec-*', 'MANIFEST.bak', 'Changes.bak' ],
create_makefile_pl => 'traditional',
);
$build->create_build_script;
(new_from_cfgmk): No longer hardwire the version-control system
type to be CVS when converting config.mk files
2008-11-12 14:26 squinney
* Changes, lcfg.yml: Release: 0.0.26
2008-11-12 14:26 squinney
* t/09_clone.t: Switched to using is_deeply() in 09_clone.t test.
The eq_or_diff() method in Test::Differences does not handle
comparing an integer with a string (e.g. 1 is considered to not
equal '1'. See http://rt.cpan.org/Public/Bug/Display.html?id=3029
2008-11-12 14:24 squinney
* lib/LCFG/Build/PkgSpec.pm.in: The schema is now explicitly an
integer.
2008-10-29 14:24 squinney
LCFG-Build-PkgSpec.spec view on Meta::CPAN
Summary: Object-oriented interface to LCFG build metadata
License: GPLv2
Group: Development/Libraries
Source0: LCFG-Build-PkgSpec-0.3.0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 1:5.6.1
BuildRequires: perl(Data::Structure::Util) >= 0.12
BuildRequires: perl(Module::Build)
BuildRequires: perl(Moose) >= 0.98
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(YAML::Syck) >= 0.98
BuildRequires: perl(DateTime)
BuildRequires: perl(Email::Address), perl(Email::Valid)
Requires: perl(Data::Structure::Util) >= 0.12
Requires: perl(Moose) >= 0.98
Requires: perl(YAML::Syck) >= 0.98
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
LCFG-Build-PkgSpec.spec view on Meta::CPAN
* Mon Mar 09 2009 12:42 squinney
- lib/LCFG/Build/PkgSpec.pm.in: lib/LCFG/Build/PkgSpec.pm.in
(new_from_cfgmk): No longer hardwire the version-control system type to
be CVS when converting config.mk files
* Wed Nov 12 2008 14:26 squinney
- Changes, lcfg.yml: Release: 0.0.26
* Wed Nov 12 2008 14:26 squinney
- t/09_clone.t: Switched to using is_deeply() in 09_clone.t test. The
eq_or_diff() method in Test::Differences does not handle comparing an
integer with a string (e.g. 1 is considered to not equal '1'. See
http://rt.cpan.org/Public/Bug/Display.html?id=3029
* Wed Nov 12 2008 14:24 squinney
- lib/LCFG/Build/PkgSpec.pm.in: The schema is now explicitly an integer.
* Wed Oct 29 2008 14:24 squinney
- Changes, lcfg.yml: Release: 0.0.25
* Wed Oct 29 2008 14:24 squinney
"gpl"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : "2"
},
"name" : "LCFG-Build-PkgSpec",
"prereqs" : {
"build" : {
"requires" : {
"Test::Differences" : "0",
"Test::Exception" : "0",
"Test::More" : "0"
}
},
"configure" : {
"requires" : {
"Module::Build" : "0.40"
}
},
"runtime" : {
---
abstract: 'Object-oriented interface to LCFG build metadata'
author:
- 'Stephen Quinney <squinney@inf.ed.ac.uk>'
build_requires:
Test::Differences: '0'
Test::Exception: '0'
Test::More: '0'
configure_requires:
Module::Build: '0.40'
dynamic_config: 1
generated_by: 'Module::Build version 0.4005, CPAN::Meta::Converter version 2.120921'
license: gpl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
Makefile.PL view on Meta::CPAN
],
'VERSION_FROM' => 'lib/LCFG/Build/PkgSpec.pm',
'PREREQ_PM' => {
'DateTime' => '0',
'Email::Address' => '0',
'Email::Valid' => '0',
'Test::Exception' => 0,
'Pod::Usage' => '0',
'YAML::Syck' => '0.98',
'Test::More' => 0,
'Test::Differences' => 0,
'Data::Structure::Util' => '0.12',
'Moose' => '0.98'
}
)
;
Moose >= 0.98
YAML::Syck >= 0.98
On Debian/Ubuntu machines you can install these packages like this:
apt install libmodule-build-perl libdatetime-perl libdata-structure-util-perl libemail-address-perl libemail-valid-perl libmoose-perl libyaml-syck-perl
To run the tests you will also need:
Test::More
Test::Differences
Test::Exception
On Debian/Ubuntu machines you can install these packages like this:
apt install libtest-exception-perl libtest-differences-perl
==== INSTALLATION ====
Make sure you have the dependencies installed first! (see DEPENDENCIES above)
t/07_pkgspec_savemeta.t view on Meta::CPAN
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 5;
use Test::Differences;
use Test::Exception;
use File::Temp ();
use IO::File;
BEGIN { use_ok( 'LCFG::Build::PkgSpec' ); }
my $spec = LCFG::Build::PkgSpec->new_from_metafile('./t/lcfg.yml');
isa_ok( $spec, 'LCFG::Build::PkgSpec' );
t/09_clone.t view on Meta::CPAN
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 7;
use Test::Differences;
BEGIN { use_ok( 'LCFG::Build::PkgSpec' ); }
my $spec = LCFG::Build::PkgSpec->new_from_metafile('./t/lcfg.yml');
isa_ok( $spec, 'LCFG::Build::PkgSpec' );
my $clone = $spec->clone;
isnt( $spec, $clone, "needs to be a different reference" );
( run in 0.839 second using v1.01-cache-2.11-cpan-131fc08a04b )