diff --git a/.cvsignore b/.cvsignore index e69de29..25c9f13 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +MooseX-Getopt-0.03.tar.gz diff --git a/perl-MooseX-Getopt.spec b/perl-MooseX-Getopt.spec new file mode 100644 index 0000000..c69e72d --- /dev/null +++ b/perl-MooseX-Getopt.spec @@ -0,0 +1,64 @@ +Name: perl-MooseX-Getopt +Version: 0.03 +Release: 1%{?dist} +Summary: Moose role for processing command line options +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooseX-Getopt/ +Source0: http://www.cpan.org/authors/id/S/ST/STEVAN/MooseX-Getopt-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +BuildRequires: perl(Module::Build) +BuildRequires: perl(Moose) >= 0.19 + +# tests... +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Exception) >= 0.21 +BuildRequires: perl(Scalar::Util) + +# optional tests +BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage) + + +%description +This is a Moose role which provides an alternate constructor for creating +objects using parameters passed in from the command line. + +%prep +# Note, you'll see this, but we work just fine with 2.35: +# Checking prerequisites... +# - ERROR: Getopt::Long (2.35) is installed, but we need version >= 2.36 +%setup -q -n MooseX-Getopt-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf %{buildroot} + +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +./Build test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc ChangeLog README t/ +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu May 03 2007 Chris Weyl 0.03-1 +- update to 0.03 + +* Fri Apr 20 2007 Chris Weyl 0.02-1 +- Specfile autogenerated by cpanspec 1.69.1. diff --git a/sources b/sources index e69de29..a6518ac 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4c925eaa9d071ff58b97ba26a5d29b18 MooseX-Getopt-0.03.tar.gz