Author: qboosh Date: Sat Mar 5 11:29:09 2011 GMT Module: packages Tag: HEAD ---- Log message: - unified Source URL - enhanced pl - no // in files
---- Files affected: packages/perl-aliased: perl-aliased.spec (1.2 -> 1.3) ---- Diffs: ================================================================ Index: packages/perl-aliased/perl-aliased.spec diff -u packages/perl-aliased/perl-aliased.spec:1.2 packages/perl-aliased/perl-aliased.spec:1.3 --- packages/perl-aliased/perl-aliased.spec:1.2 Mon Sep 7 11:10:57 2009 +++ packages/perl-aliased/perl-aliased.spec Sat Mar 5 12:29:04 2011 @@ -5,31 +5,33 @@ # %include /usr/lib/rpm/macros.perl %define pdir aliased -Summary: aliased - Use shorter versions of class names. -Summary(pl.UTF-8): aliased - używaj krótszej wersji nazw klas. +Summary: aliased - use shorter versions of class names +Summary(pl.UTF-8): aliased - używanie krótszych wersji nazw klas Name: perl-aliased Version: 0.30 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl -Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/%{pdir}-%{version}.tar.gz +Source0: http://www.cpan.org/modules/by-authors/id/O/OV/OVID/%{pdir}-%{version}.tar.gz # Source0-md5: 8c2ee486901dae7d1c31e9a2d69c6c8f URL: http://search.cpan.org/dist/aliased/ +BuildRequires: perl-Module-Build BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} +BuildRequires: perl-Test-Simple %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -aliased is simple in concept but is a rather handy module. It loads the -class you specify and exports into your namespace a subroutine that returns -the class name. You can explicitly alias the class to another name or, if you -prefer, you can do so implicitly. In the latter case, the name of the -subroutine is the last part of the class name. Thus, it does something -similar to the following: +aliased is simple in concept but is a rather handy module. It loads +the class you specify and exports into your namespace a subroutine +that returns the class name. You can explicitly alias the class to +another name or, if you prefer, you can do so implicitly. In the +latter case, the name of the subroutine is the last part of the class +name. Thus, it does something similar to the following: #use aliased 'Some::Annoyingly::Long::Module::Name::Customer'; @@ -39,23 +41,26 @@ } my $cust = Customer->new; -This module is useful if you prefer a shorter name for a class. It's also -handy if a class has been renamed. +This module is useful if you prefer a shorter name for a class. It's +also handy if a class has been renamed. -(Some may object to the term "aliasing" because we're not aliasing one -namespace to another, but it's a handy term. Just keep in mind that this is -done with a subroutine and not with typeglobs and weird namespace munging.) - -Note that this is only for useing OO modules. You cannot use this to -load procedural modules. See the Why OO Only? section. Also, -don't let the version number fool you. This code is ridiculously simple and -is just fine for most use. +%description -l pl.UTF-8 +aliased jest prostym w założeniach, ale dosyć poręcznym modułem. +Ładuje podaną klasę i eksportuje do przestrzeni nazw funkcję +zwracającą nazwę tej klasy. Można nadać klasie alias jawnie lub +domyślnie - w drugim przypadku nazwa funkcji będzie ostatnią częścią +nazwy klasy. Czyli robi to coś podobnego do: + #use aliased 'Jakas::Strasznie::Dluga::Nazwa::Modulu::Customer'; + use Jakas::Strasznie::Dluga::Nazwa::Modulu::Customer; + sub Customer { + return 'Jakas::Strasznie::Dluga::Nazwa::Modulu::Customer'; + } + my $cust = Customer->new; -%description -l pl.UTF-8 -aliased jest prostym w założeniach, ale raczej poręcznym modułem. Ładuje klasy -które zostały wymienione i eksportuje je do przestrzeni nazw. +Ten moduł jest przydatny, kiedy wolimy mieć klasę dostępną pod krótszą +nazwą, a także w przypadku, kiedy nazwa klasy została zmieniona. %prep %setup -q -n %{pdir}-%{version} @@ -79,8 +84,8 @@ %files %defattr(644,root,root,755) %doc Changes README -%{perl_vendorlib}//*.pm -%{_mandir}/man3/* +%{perl_vendorlib}/aliased.pm +%{_mandir}/man3/aliased.3pm* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -88,9 +93,13 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.3 2011/03/05 11:29:04 qboosh +- unified Source URL +- enhanced pl +- no // in files + Revision 1.2 2009/09/07 09:10:57 amateja - updated to 0.30 Revision 1.1 2009/06/22 14:04:38 amateja - initial - ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/perl-aliased/perl-aliased.spec?r1=1.2&r2=1.3&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
