packages: perl-CatalystX-Component-Traits/perl-CatalystX-Component-Traits.s...

amateja amateja at pld-linux.org
Sat Oct 17 17:31:27 CEST 2009


Author: amateja                      Date: Sat Oct 17 15:31:27 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/perl-CatalystX-Component-Traits:
   perl-CatalystX-Component-Traits.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-CatalystX-Component-Traits/perl-CatalystX-Component-Traits.spec
diff -u /dev/null packages/perl-CatalystX-Component-Traits/perl-CatalystX-Component-Traits.spec:1.1
--- /dev/null	Sat Oct 17 17:31:27 2009
+++ packages/perl-CatalystX-Component-Traits/perl-CatalystX-Component-Traits.spec	Sat Oct 17 17:31:21 2009
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	CatalystX
+%define	pnam	Component-Traits
+Summary:	CatalystX::Component::Traits - Automatic Trait Loading and Resolution for Catalyst Components
+Summary(pl.UTF-8):	CatalystX::Component::Traits - automatyczne ładowanie Trait oraz rozwiązywanie dla komponentów Catalyst
+Name:		perl-CatalystX-Component-Traits
+Version:	0.10
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://search.cpan.org/CPAN/authors/id/R/RK/RKITOVER/CatalystX-Component-Traits-0.10.tar.gz
+# Source0-md5:	bf83abe598cae65a2efdf17e38cbced5
+URL:		http://search.cpan.org/dist/CatalystX-Component-Traits/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Moose::Autobox)
+BuildRequires:	perl(MooseX::Traits::Pluggable) >= 0.08
+BuildRequires:	perl-Catalyst >= 5.80005
+BuildRequires:	perl-List-MoreUtils
+BuildRequires:	perl-namespace-autoclean
+BuildRequires:	perl-Module-Pluggable >= 3.9
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Adds a Catalyst::Component/COMPONENT method to your Catalyst component
+base class that reads the optional traits parameter from app and component
+config and instantiates the component subclass with those traits using
+MooseX::Traits/new_with_traits from MooseX::Traits::Pluggable.
+
+# %description -l pl.UTF-8
+# TODO
+
+%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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%dir %{perl_vendorlib}/CatalystX
+%dir %{perl_vendorlib}/CatalystX/Component
+%{perl_vendorlib}/CatalystX/Component/*.pm
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/10/17 15:31:21  amateja
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list