Hello community, here is the log from the commit of package perl-aliased for openSUSE:Factory checked in at 2011-11-18 15:46:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-aliased (Old) and /work/SRC/openSUSE:Factory/.perl-aliased.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-aliased", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-aliased/perl-aliased.changes 2011-09-23 12:39:34.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-aliased.new/perl-aliased.changes 2011-11-18 15:46:35.000000000 +0100 @@ -1,0 +2,5 @@ +Thu Nov 17 12:47:33 UTC 2011 - [email protected] + +- regnerate with cpanspec 1.78.05 + +------------------------------------------------------------------- Old: ---- aliased-0.30.tar.bz2 New: ---- aliased-0.30.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-aliased.spec ++++++ --- /var/tmp/diff_new_pack.cjL8DK/_old 2011-11-18 15:46:44.000000000 +0100 +++ /var/tmp/diff_new_pack.cjL8DK/_new 2011-11-18 15:46:44.000000000 +0100 @@ -15,59 +15,69 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: perl-aliased -%define real_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) -Summary: Use shorter versions of class names -Url: http://search.cpan.org/perldoc?aliased -Group: Development/Libraries/Perl -License: Artistic Version: 0.30 Release: 1 -Source: %{real_name}-%{version}.tar.bz2 -BuildRequires: perl-macros -BuildRequires: perl(Test::Pod::Coverage) -BuildRequires: perl(Test::Pod) +License: GPL+ or Artistic +%define cpan_name aliased +Summary: Use shorter versions of class names. +Url: http://search.cpan.org/dist/aliased/ +Group: Development/Libraries/Perl +Source: http://www.cpan.org/authors/id/O/OV/OVID/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Module::Build) +#BuildRequires: perl(aliased) %{perl_requires} %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. - -This module is useful if you prefer a shorter name for a class. It's also handy -if a class has been renamed. - -Author: -------- - Curtis Poe, ovid [at] cpan [dot] org - +'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'; + + use Some::Annoyingly::Long::Module::Name::Customer; + sub Customer { + return 'Some::Annoyingly::Long::Module::Name::Customer'; + } + 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. + +(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 'use'ing 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. %prep -%setup -q -n %{real_name}-%{version} +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL -make %{?jobs:-j%jobs} +%{__perl} Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} %check -make test +./Build test %install -%perl_make_install -%perl_process_packlist +./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist -%clean -rm -rf %{buildroot} - %files -f %{name}.files -%defattr(-, root, root) -%doc Changes README MANIFEST +%defattr(-,root,root,755) +%doc Changes README %changelog -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
