[perl-MooseX-Role-TraitConstructor] Initial build.

Marcela Mašláňová mmaslano at fedoraproject.org
Tue Jan 10 11:03:23 UTC 2012


commit 94b937e0bb85c62eeb3b3a4aada5fe3d9733f70c
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date:   Tue Jan 10 11:58:18 2012 +0100

    Initial build.

 .gitignore                             |    1 +
 perl-MooseX-Role-TraitConstructor.spec |   54 ++++++++++++++++++++++++++++++++
 sources                                |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..44a922c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MooseX-Role-TraitConstructor-0.01.tar.gz
diff --git a/perl-MooseX-Role-TraitConstructor.spec b/perl-MooseX-Role-TraitConstructor.spec
new file mode 100644
index 0000000..741a1b0
--- /dev/null
+++ b/perl-MooseX-Role-TraitConstructor.spec
@@ -0,0 +1,54 @@
+Name:           perl-MooseX-Role-TraitConstructor
+Version:        0.01
+Release:        1%{?dist}
+Summary:        Wrapper for new that can accept a traits parameter
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/MooseX-Role-TraitConstructor/
+Source0:        http://www.cpan.org/authors/id/N/NU/NUFFIN/MooseX-Role-TraitConstructor-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Moose) >= 0.40
+BuildRequires:  perl(Moose::Role)
+BuildRequires:  perl(ok)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Test::Exception)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::use::ok)
+BuildRequires:  perl(warnings)
+Requires:       perl(Moose) >= 0.40
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+This role allows you to easily accept a traits argument (or another name)
+into your constructor, which will easily mix roles into an anonymous class
+before construction, much like Moose::Meta::Attribute does.
+
+%prep
+%setup -q -n MooseX-Role-TraitConstructor-%{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
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Mar 22 2011 Marcela Mašláňová <mmaslano at redhat.com> 0.01-1
+- Specfile autogenerated by cpanspec 1.79.
diff --git a/sources b/sources
index e69de29..abe148b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+91cf5ab2ebee0cc388614057f06febe7  MooseX-Role-TraitConstructor-0.01.tar.gz



More information about the perl-devel mailing list