%define upstream_name Class-Load %define upstream_version 0.20 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: A working (require "Class::Name") and more 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(Carp) BuildRequires: perl(Data::OptList) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0 BuildRequires: perl(Module::Implementation) >= 0.40.0 BuildRequires: perl(Module::Runtime) >= 0.12.0 BuildRequires: perl(Package::Stash) >= 0.140.0 BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) >= 0.880.0 BuildRequires: perl(Test::Requires) BuildRequires: perl(Try::Tiny) BuildRequires: perl(base) BuildRequires: perl(constant) BuildRequires: perl(strict) BuildRequires: perl(version) BuildRequires: perl(warnings) BuildArch: noarch %description 'require EXPR' only accepts 'Class/Name.pm' style module names, not 'Class::Name'. How frustrating! For that, we provide 'load_class 'Class::Name''. It's often useful to test whether a module can be loaded, instead of throwing an error when it's not available. For that, we provide 'try_load_class 'Class::Name''. Finally, sometimes we need to know whether a particular class has been loaded. Asking '%%INC' is an option, but that will miss inner packages and any class for which the filename does not correspond to the package name. For that, we provide 'is_class_loaded 'Class::Name''. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install %makeinstall_std %files %doc Changes INSTALL LICENSE META.json META.yml MYMETA.yml README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.200.0-2.mga3 + Revision: 364422 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Aug 29 2012 kharec <kharec> 0.200.0-1.mga3 + Revision: 285196 - update to 0.20 * Tue Jun 05 2012 jquelin <jquelin> 0.190.0-1.mga3 + Revision: 254661 - update to 0.19 * Fri Feb 24 2012 jquelin <jquelin> 0.180.0-1.mga2 + Revision: 213672 - update to 0.18 * Thu Jan 05 2012 jquelin <jquelin> 0.130.0-1.mga2 + Revision: 191161 - update to 0.13 * Fri Nov 04 2011 jquelin <jquelin> 0.120.0-1.mga2 + Revision: 162675 - update to 0.12 - prevent youri check to kick in - update to 0.08 + takashi <takashi> - fixing SPEC file - update to 0.10 * Sat Jan 22 2011 jquelin <jquelin> 0.60.0-1.mga1 + Revision: 31787 - mageia rebuild - imported package perl-Class-Load