commit 77b01f31c1dd51a2efbef536f717665e53064455 Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Mon Mar 28 16:29:35 2011 +0200 initial import (rhbz#678195) .gitignore | 1 + perl-MooseX-OneArgNew.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 56 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..e90688b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MooseX-OneArgNew-0.001.tar.gz diff --git a/perl-MooseX-OneArgNew.spec b/perl-MooseX-OneArgNew.spec new file mode 100644 index 0000000..60dc414 --- /dev/null +++ b/perl-MooseX-OneArgNew.spec @@ -0,0 +1,54 @@ +Name: perl-MooseX-OneArgNew +Version: 0.001 +Release: 1%{?dist} +Summary: Teach ->new to accept single, non-hashref arguments +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooseX-OneArgNew/ +Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/MooseX-OneArgNew-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Moose) +BuildRequires: perl(Moose::Util::TypeConstraints) +BuildRequires: perl(MooseX::Role::Parameterized) +BuildRequires: perl(namespace::autoclean) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::Pod) +BuildRequires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +MooseX::OneArgNew lets your constructor take a single argument, which will +be translated into the value for a one-entry hashref. It is a parameterized +role with two parameters: + +%prep +%setup -q -n MooseX-OneArgNew-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%defattr(-,root,root,-) +%doc LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Feb 17 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.001-1 +- Specfile autogenerated by cpanspec 1.79. diff --git a/sources b/sources index e69de29..ca40bfe 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +87675d2bb98525d787e7509e6d581f50 MooseX-OneArgNew-0.001.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel