Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > eb3f0a1e6a93d68f410b2d3338af791b > files > 2

perl-aliased-0.300.0-1mdv2010.0.src.rpm

%define upstream_name    aliased
%define upstream_version 0.30

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 1

Summary:    Use shorter versions of class names
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}

Provides: perl(aliased)

%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.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Changes META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*


%changelog
* Thu Aug 06 2009 Jérôme Quelin <jquelin@mandriva.org> 0.300.0-1mdv2010.0
+ Revision: 410629
- update to 0.30

* Sun Nov 16 2008 Jérôme Quelin <jquelin@mandriva.org> 0.22-3mdv2009.1
+ Revision: 303674
- forcing provides: since all-lower case modules are automatically stripped

* Fri Aug 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.22-2mdv2009.0
+ Revision: 268890
- rebuild early 2009.0 package (before pixel changes)

* Thu Jun 12 2008 Jérôme Quelin <jquelin@mandriva.org> 0.22-1mdv2009.0
+ Revision: 218578
- fix summary & description
- import perl-aliased