3 %bcond_without tests # do not perform "make test"
6 %define pnam Component-Traits
7 Summary: CatalystX::Component::Traits - Automatic Trait Loading and Resolution for Catalyst Components
8 Summary(pl.UTF-8): CatalystX::Component::Traits - automatyczne ładowanie Trait oraz rozwiązywanie dla komponentów Catalyst
9 Name: perl-CatalystX-Component-Traits
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/CatalystX/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 7165156a9ebc786146c710d2939f9c06
17 URL: http://search.cpan.org/dist/CatalystX-Component-Traits/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Moose::Autobox)
22 BuildRequires: perl(MooseX::Traits::Pluggable) >= 0.08
23 BuildRequires: perl-Catalyst >= 5.80005
24 BuildRequires: perl-List-MoreUtils
25 BuildRequires: perl-Module-Pluggable >= 3.9
26 BuildRequires: perl-namespace-autoclean
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Adds a Catalyst::Component/COMPONENT method to your Catalyst component
33 base class that reads the optional traits parameter from app and
34 component config and instantiates the component subclass with those
35 traits using MooseX::Traits/new_with_traits from
36 MooseX::Traits::Pluggable.
38 # %description -l pl.UTF-8 # TODO
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %dir %{perl_vendorlib}/CatalystX
63 %dir %{perl_vendorlib}/CatalystX/Component
64 %{perl_vendorlib}/CatalystX/Component/*.pm