3 %bcond_without tests # do not perform "make test"
6 %define pnam Object-Pluggable
7 Summary: MooseX::Object::Pluggable - Make your classes pluggable
8 Name: perl-MooseX-Object-Pluggable
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/MooseX/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: ce3b5ffc6d05bdd77102488a85e401d1
15 URL: http://search.cpan.org/dist/MooseX-Object-Pluggable/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-Moose >= 0.35
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module is meant to be loaded as a role from Moose-based classes
26 it will add five methods and four attributes to assist you with the
27 loading and handling of plugins and extensions for plugins. I
28 understand that this may pollute your namespace, however I took great
29 care in using the least ambiguous names possible.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %dir %{perl_vendorlib}/MooseX/Object
54 %{perl_vendorlib}/MooseX/Object/*.pm