%define upstream_name Class-Adapter %define upstream_version 1.08 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Generate Class::Adapter classes License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(ExtUtils::MakeMaker) >= 6.420.0 BuildRequires: perl(Scalar::Util) >= 1.100.0 BuildRequires: perl(Test::More) >= 0.470.0 BuildArch: noarch %description The 'Class::Adapter' class is intended as an abstract base class for creating any sort of class or object that follows the _Adapter_ pattern. What is an Adapter? The term _Adapter_ refers to a _"Design Pattern"_ of the same name, from the famous _"Gang of Four"_ book _"Design Patterns"_. Although their original implementation was designed for Java and similar single-inheritance strictly-typed langauge, the situation for which it applies is still valid. An _Adapter_ in this Perl sense of the term is when a class is created to achieve by composition (objects containing other object) something that can't be achieved by inheritance (sub-classing). %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc Changes LICENSE META.yml README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Fri Mar 25 2011 jquelin <jquelin> 1.80.0-1.mga1 + Revision: 77292 - update to 1.08 * Sat Jan 22 2011 jquelin <jquelin> 1.70.0-1.mga1 + Revision: 31761 - mageia rebuild - imported package perl-Class-Adapter