commit 7b92fd741fd1a955803e447b03e58307e19e4adf Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Mon Apr 2 05:11:29 2012 -0600 initial import (rhbz#804625) .gitignore | 1 + perl-MooseX-Has-Options.spec | 60 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..0b1104a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MooseX-Has-Options-0.002.tar.gz diff --git a/perl-MooseX-Has-Options.spec b/perl-MooseX-Has-Options.spec new file mode 100644 index 0000000..82189bd --- /dev/null +++ b/perl-MooseX-Has-Options.spec @@ -0,0 +1,60 @@ +Name: perl-MooseX-Has-Options +Version: 0.002 +Release: 1%{?dist} +Summary: Succinct options for Moose +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooseX-Has-Options/ +Source0: http://www.cpan.org/authors/id/P/PS/PSHANGOV/MooseX-Has-Options-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Moose) +BuildRequires: perl(namespace::autoclean) +BuildRequires: perl(Package::Stash) >= 0.18 +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Most) +BuildRequires: perl(Test::Script) +BuildRequires: perl(warnings) +Requires: perl(Package::Stash) >= 0.18 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This module provides a succinct syntax for declaring options for Moose +attributes. It hijacks the 'has' function imported by Moose and replaces it +with one that understands the options syntax. + +%prep +%setup -q -n MooseX-Has-Options-%{version} + +# silence rpmlint +sed -i 's/\r//' Changes + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Mar 19 2012 Iain Arnell <iarnell@xxxxxxxxx> 0.002-1 +- Specfile autogenerated by cpanspec 1.79. diff --git a/sources b/sources index e69de29..1966083 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6ea980a6321d664b9948a95d58807f4c MooseX-Has-Options-0.002.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