[packages/perl-Type-Tiny] - initial

arekm arekm at pld-linux.org
Sat Feb 28 13:39:34 CET 2015


commit 42889f1af24accca7a9301a4e15ec559a7cf113e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Feb 28 13:39:17 2015 +0100

    - initial

 perl-Type-Tiny.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
---
diff --git a/perl-Type-Tiny.spec b/perl-Type-Tiny.spec
new file mode 100644
index 0000000..a881964
--- /dev/null
+++ b/perl-Type-Tiny.spec
@@ -0,0 +1,70 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Type
+%define		pnam	Tiny
+%include	/usr/lib/rpm/macros.perl
+Summary:	Type::Tiny - tiny, yet Moo(se)-compatible type constraint
+Name:		perl-Type-Tiny
+Version:	1.000005
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/T/TO/TOBYINK/Type-Tiny-%{version}.tar.gz
+# Source0-md5:	2914b0e6b35c35f657d426fba29b4520
+URL:		http://search.cpan.org/dist/Type-Tiny/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Exporter-Tiny >= 0.026
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Type::Tiny is a tiny class for creating Moose-like type constraint
+objects which are compatible with Moo, Moose and Mouse.
+
+Maybe now we won't need to have separate MooseX, MouseX and MooX
+versions of everything? We can but hope...
+
+This documents the internals of Type::Tiny. Type::Tiny::Manual is a
+better starting place if you're new.
+
+%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
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes CREDITS INSTALL NEWS README TODO
+%{perl_vendorlib}/Devel/TypeTiny
+%{perl_vendorlib}/Error/TypeTiny.pm
+%{perl_vendorlib}/Error/TypeTiny
+%{perl_vendorlib}/Eval/TypeTiny.pm
+%{perl_vendorlib}/Reply/Plugin/TypeTiny.pm
+%{perl_vendorlib}/Test/TypeTiny.pm
+%{perl_vendorlib}/Type
+%{perl_vendorlib}/Types
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Type-Tiny.git/commitdiff/42889f1af24accca7a9301a4e15ec559a7cf113e



More information about the pld-cvs-commit mailing list