commit 1ad9fbd20eb84f6e0c4a99a2479d5217b3c4c688 Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Tue Apr 5 05:00:04 2011 +0200 initial import (rhbz#693034) .gitignore | 1 + perl-MooseX-Aliases.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 68 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..0d1c5e0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MooseX-Aliases-0.09.tar.gz diff --git a/perl-MooseX-Aliases.spec b/perl-MooseX-Aliases.spec new file mode 100644 index 0000000..c6226a2 --- /dev/null +++ b/perl-MooseX-Aliases.spec @@ -0,0 +1,66 @@ +Name: perl-MooseX-Aliases +Version: 0.09 +Release: 1%{?dist} +Summary: Easy aliasing of methods and attributes in Moose +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooseX-Aliases/ +Source0: http://www.cpan.org/authors/id/D/DO/DOY/MooseX-Aliases-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Moose) >= 1.09 +BuildRequires: perl(Moose::Role) +BuildRequires: perl(Moose::Util::TypeConstraints) +BuildRequires: perl(Pod::Coverage::TrustPod) +BuildRequires: perl(strict) +BuildRequires: perl(Test::EOL) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::Moose) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::NoTabs) +BuildRequires: perl(Test::Output) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +BuildRequires: perl(Test::Requires) +BuildRequires: perl(Test::Script) +BuildRequires: perl(warnings) +Requires: perl(Moose) >= 1.09 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +The MooseX::Aliases module will allow you to quickly alias methods in +Moose. It provides an alias parameter for has() to generate aliased +accessors as well as the standard ones. Attributes can also be initialized +in the constructor via their aliased names. + +%prep +%setup -q -n MooseX-Aliases-%{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 +RELEASE_TESTING=1 make test + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Apr 02 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.09-1 +- Specfile autogenerated by cpanspec 1.79. diff --git a/sources b/sources index e69de29..023ad17 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +19739592f44861b5618c00deb0b2793f MooseX-Aliases-0.09.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