Author: amateja Date: Sat Oct 17 15:02:25 2009 GMT Module: packages Tag: HEAD ---- Log message: - initial
---- Files affected: packages/perl-Moose-Autobox: perl-Moose-Autobox.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/perl-Moose-Autobox/perl-Moose-Autobox.spec diff -u /dev/null packages/perl-Moose-Autobox/perl-Moose-Autobox.spec:1.1 --- /dev/null Sat Oct 17 17:02:25 2009 +++ packages/perl-Moose-Autobox/perl-Moose-Autobox.spec Sat Oct 17 17:02:19 2009 @@ -0,0 +1,94 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Moose +%define pnam Autobox +Summary: Moose::Autobox - Autoboxed wrappers for Native Perl datatypes +Summary(pl.UTF-8): Moose:Autobox = Autoboxowane opakowania dla natywnych typów danych perla +Name: perl-Moose-Autobox +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/RJ/RJBS/Moose-Autobox-%{version}.tar.gz +# Source0-md5: 26d3fd2c0618594d6b13acf1116adb21 +URL: http://search.cpan.org/dist/Moose-Autobox/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(autobox) >= 2.23 +BuildRequires: perl(Perl6::Junction) >= 1.40000 +BuildRequires: perl-Moose >= 0.42 +BuildRequires: perl-Test-Exception >= 0.21 +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Moose::Autobox provides an implementation of SCALAR, ARRAY, HASH & +CODE for use with autobox. It does this using a hierarchy of roles in +a manner similar to what Perl 6 might do. This module, like Class::MOP +and Moose, was inspired by my work on the Perl 6 Object Space, and the +'core types' implemented there. + +The autobox module provides the ability for calling 'methods' on +normal Perl values like Scalars, Arrays, Hashes and Code references. +This gives the illusion that Perl's types are first-class objects. +However, this is only an illusion, albeit a very nice one. I created +this module because autobox itself does not actually provide an +implementation for the Perl types but instead only provides the +'hooks' for others to add implementation too. + +Several people are using this module in serious applications and it +seems to be quite stable. The underlying technologies of autobox and +Moose::Role are also considered stable. There is some performance hit, +but as I am fond of saying, nothing in life is free. If you have any +questions regarding this module, either email me, or stop by #moose on +irc.perl.org and ask around. + +# %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 + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/Moose/*.pm +%{perl_vendorlib}/Moose/Autobox +%{_mandir}/man3/* +%{_examplesdir}/%{name}-%{version} + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2009/10/17 15:02:19 amateja +- initial + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
