%define upstream_name Class-Generate %define upstream_version 1.11 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Generate Perl class hierarchies 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) BuildArch: noarch %description The Class::Generate package exports functions that take as arguments a class specification and create from these specifications a Perl 5 class. The specification language allows many object-oriented constructs: typed members, inheritance, private members, required members, default values, object methods, class methods, class variables, and more. CPAN contains similar packages. Why another? Because object-oriented programming, especially in a dynamic language like Perl, is a complicated endeavor. I wanted a package that would work very hard to catch the errors you (well, I anyway) commonly make. I wanted a package that could help me enforce the contract of object-oriented programming. I also wanted it to get out of my way when I asked. %prep %setup -q -n %{upstream_name}-%{upstream_version} chmod 644 Changes README %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 META.yml README %{perl_vendorlib}/Class %{_mandir}/*/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.110.0-2.mga3 + Revision: 364377 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Apr 19 2011 jquelin <jquelin> 1.110.0-1.mga1 + Revision: 88684 - update to 1.11 * Tue Jan 18 2011 jquelin <jquelin> 1.100.0-1.mga1 + Revision: 22140 - cleaning spec file - imported package perl-Class-Generate