[packages/perl-MooX-HandlesVia] - initial
arekm
arekm at pld-linux.org
Sat Feb 28 14:29:05 CET 2015
commit a41ce0039780df6c5f743e163c10a1ed060cb555
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Feb 28 14:28:52 2015 +0100
- initial
perl-MooX-HandlesVia.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
---
diff --git a/perl-MooX-HandlesVia.spec b/perl-MooX-HandlesVia.spec
new file mode 100644
index 0000000..6f86827
--- /dev/null
+++ b/perl-MooX-HandlesVia.spec
@@ -0,0 +1,68 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir MooX
+%define pnam HandlesVia
+%include /usr/lib/rpm/macros.perl
+Summary: MooX::HandlesVia - NativeTrait-like behavior for Moo
+Name: perl-MooX-HandlesVia
+Version: 0.001007
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/MooX/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 9744cfe9e431c6510d73409a27522e47
+URL: http://search.cpan.org/dist/MooX-HandlesVia/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Data::Perl) >= 0.002006
+BuildRequires: perl(MooX::Types::MooseLike::Base) >= 0.23
+BuildRequires: perl-Class-Method-Modifiers
+BuildRequires: perl-Module-Runtime
+BuildRequires: perl-Moo >= 1.003000
+BuildRequires: perl-Role-Tiny
+BuildRequires: perl-Test-Exception
+BuildRequires: perl-Test-Fatal
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MooX::HandlesVia is an extension of Moo's 'handles' attribute
+functionality. It provides a means of proxying functionality from an
+external class to the given atttribute. This is most commonly used as
+a way to emulate 'Native Trait' behavior that has become commonplace
+in Moose code, for which there was no Moo alternative.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes TODO
+%{perl_vendorlib}/MooX/HandlesVia.pm
+%{perl_vendorlib}/Data/Perl/Bool/MooseLike.pm
+%{perl_vendorlib}/Data/Perl/Collection/Array/MooseLike.pm
+%{perl_vendorlib}/Data/Perl/Collection/Hash/MooseLike.pm
+%{perl_vendorlib}/Data/Perl/Number/MooseLike.pm
+%{perl_vendorlib}/Data/Perl/String/MooseLike.pm
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-MooX-HandlesVia.git/commitdiff/a41ce0039780df6c5f743e163c10a1ed060cb555
More information about the pld-cvs-commit
mailing list