3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam AttributeHelpers
8 Summary: MooseX::AttributeHelpers - Extend your attribute interfaces
10 Name: perl-MooseX-AttributeHelpers
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: ebdd543a211884854b6c87adf25e6e22
18 URL: http://search.cpan.org/dist/MooseX-AttributeHelpers/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Moose >= 0.45
23 BuildRequires: perl-Test-Exception >= 0.21
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 While Moose attributes provide you with a way to name your accessors,
30 readers, writers, clearers and predicates, this library provides commonly
31 used attribute helper methods for more specific types of data.
33 As seen in the /SYNOPSIS, you specify the extension via the
34 metaclass parameter. Available meta classes are:
36 # %description -l pl.UTF-8
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/MooseX/*.pm
62 %{perl_vendorlib}/MooseX/AttributeHelpers