[packages/perl-Moo] - new

baggins baggins at pld-linux.org
Sat Jan 25 19:08:20 CET 2014


commit 69eb87fe0c24767b574e1eae5f3e30e0b2492d8c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jan 25 19:08:05 2014 +0100

    - new

 perl-Moo.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)
---
diff --git a/perl-Moo.spec b/perl-Moo.spec
new file mode 100644
index 0000000..dd5c90c
--- /dev/null
+++ b/perl-Moo.spec
@@ -0,0 +1,82 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Moo
+%include	/usr/lib/rpm/macros.perl
+Summary:	Moo - Minimalist Object Orientation (with Moose compatibility)
+#Summary(pl.UTF-8):
+Name:		perl-Moo
+Version:	1.004002
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/H/HA/HAARG/Moo-%{version}.tar.gz
+# Source0-md5:	9eea0ee548baa8f1b6c42e5753e6290f
+URL:		http://search.cpan.org/dist/Moo/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Class-Method-Modifiers >= 1.1
+BuildRequires:	perl-Devel-GlobalDestruction >= 0.11
+BuildRequires:	perl-Dist-CheckConflicts >= 0.02
+BuildRequires:	perl-Import-Into >= 1.002
+BuildRequires:	perl-Module-Runtime >= 0.012
+BuildRequires:	perl-Role-Tiny >= 1.003002
+BuildRequires:	perl-Test-Fatal >= 0.003
+BuildRequires:	perl-strictures >= 1.004003
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is an extremely light-weight subset of Moose optimised for
+rapid startup and "pay only for what you use".
+
+It also avoids depending on any XS modules to allow simple
+deployments. The name Moo is based on the idea that it provides almost
+-- but not quite -- two thirds of Moose.
+
+Unlike Mouse this module does not aim at full compatibility with
+Moose's surface syntax, preferring instead of provide full
+interoperability via the metaclass inflation capabilities described in
+/MOO AND MOOSE.
+
+For a full list of the minor differences between Moose and Moo's
+surface syntax, see /INCOMPATIBILITIES WITH MOOSE.
+
+# TODO
+# %description -l pl.UTF-8
+
+%prep
+%setup -q -n %{pdir}-%{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 README
+%{perl_vendorlib}/*.pm
+%{perl_vendorlib}/Moo
+%dir %{perl_vendorlib}/Method
+%{perl_vendorlib}/Method/*.pm
+%dir %{perl_vendorlib}/Method/Generate
+%{perl_vendorlib}/Method/Generate/*.pm
+%{perl_vendorlib}/Sub/Defer.pm
+%{perl_vendorlib}/Sub/Quote.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Moo.git/commitdiff/69eb87fe0c24767b574e1eae5f3e30e0b2492d8c



More information about the pld-cvs-commit mailing list