3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Type::Tiny - tiny, yet Moo(se)-compatible type constraint
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/T/TO/TOBYINK/Type-Tiny-%{version}.tar.gz
16 # Source0-md5: 2914b0e6b35c35f657d426fba29b4520
17 URL: http://search.cpan.org/dist/Type-Tiny/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Exporter-Tiny >= 0.026
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Type::Tiny is a tiny class for creating Moose-like type constraint
28 objects which are compatible with Moo, Moose and Mouse.
30 Maybe now we won't need to have separate MooseX, MouseX and MooX
31 versions of everything? We can but hope...
33 This documents the internals of Type::Tiny. Type::Tiny::Manual is a
34 better starting place if you're new.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc Changes CREDITS INSTALL NEWS README TODO
61 %{perl_vendorlib}/Devel/TypeTiny
62 %{perl_vendorlib}/Error/TypeTiny.pm
63 %{perl_vendorlib}/Error/TypeTiny
64 %{perl_vendorlib}/Eval/TypeTiny.pm
65 %{perl_vendorlib}/Reply/Plugin/TypeTiny.pm
66 %{perl_vendorlib}/Test/TypeTiny.pm
67 %{perl_vendorlib}/Type
68 %{perl_vendorlib}/Types
70 %{_examplesdir}/%{name}-%{version}