[packages/perl-MooX-Types-MooseLike] - initial

arekm arekm at pld-linux.org
Sat Feb 28 14:24:26 CET 2015


commit 78b314d77591eedb117a60ffc336994a2e423297
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Feb 28 14:24:13 2015 +0100

    - initial

 perl-MooX-Types-MooseLike.spec | 61 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/perl-MooX-Types-MooseLike.spec b/perl-MooX-Types-MooseLike.spec
new file mode 100644
index 0000000..2305a6d
--- /dev/null
+++ b/perl-MooX-Types-MooseLike.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	MooX
+%define		pnam	Types-MooseLike
+%include	/usr/lib/rpm/macros.perl
+Summary:	MooX::Types::MooseLike - some Moosish types and a type builder
+Name:		perl-MooX-Types-MooseLike
+Version:	0.28
+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:	ba30a142740694c3a01457c452dc5fa6
+URL:		http://search.cpan.org/dist/MooX-Types-MooseLike/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Module-Runtime >= 0.014
+BuildRequires:	perl-Moo >= 1.004002
+BuildRequires:	perl-Test-Fatal >= 0.003
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides a possibility to build your own set of Moose-like
+types. These custom types can then be used to describe fields in
+Moo-based classes.
+
+See MooX::Types::MooseLike::Base for a list of available base types.
+Its source also provides an example of how to build base types, along
+with both parameterizable and non-parameterizable.
+
+%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 README
+%{perl_vendorlib}/MooX/Types/*.pm
+%{perl_vendorlib}/MooX/Types/MooseLike
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-MooX-Types-MooseLike.git/commitdiff/78b314d77591eedb117a60ffc336994a2e423297



More information about the pld-cvs-commit mailing list