Hello community, here is the log from the commit of package perl-Class-Autouse for openSUSE:Factory checked in at 2017-10-03 23:20:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Class-Autouse (Old) and /work/SRC/openSUSE:Factory/.perl-Class-Autouse.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Class-Autouse" Tue Oct 3 23:20:09 2017 rev:24 rq:530797 version:2.01 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Class-Autouse/perl-Class-Autouse.changes 2013-03-01 07:39:58.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Class-Autouse.new/perl-Class-Autouse.changes 2017-10-03 23:20:11.237911820 +0200 @@ -1,0 +2,6 @@ +Tue Oct 3 08:11:43 UTC 2017 - coolo@suse.com + +- patch the Makefile to build with perl 5.26 +- fix license (actually 1+) + +------------------------------------------------------------------- New: ---- cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Class-Autouse.spec ++++++ --- /var/tmp/diff_new_pack.GDBrYU/_old 2017-10-03 23:20:11.865823453 +0200 +++ /var/tmp/diff_new_pack.GDBrYU/_new 2017-10-03 23:20:11.869822889 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Class-Autouse # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,44 +19,55 @@ Name: perl-Class-Autouse Version: 2.01 Release: 0 -Summary: Run-time class loading on first method call -License: Artistic-1.0 or GPL-2.0+ +%define cpan_name Class-Autouse +Summary: Run-time load a class the first time you call a method in it +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Url: http://cpan.org/modules/by-module/Class/ -Source: Class-Autouse-%{version}.tar.gz -BuildRequires: perl-Carp-Assert -BuildRequires: perl-macros +Url: http://search.cpan.org/dist/Class-Autouse/ +Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(File::Temp) >= 0.17 %{perl_requires} %description -Class::Autouse allows you to specify a class the will only load when a -method of that class is called. For large classes that might not be -used during the running of a program, such as Date::Manip, this can -save you large amounts of memory, and decrease the script load time. +*Class::Autouse* is a runtime class loader that allows you to specify +classes that will only load when a method of that class is called. + +For large classes or class trees that might not be used during the running +of a program, such as Date::Manip, this can save you large amounts of +memory, and decrease the script load time a great deal. + +*Class::Autouse* also provides a number of "unsafe" features for runtime +generation of classes and implementation of syntactic sugar. These features +make use of (evil) UNIVERSAL::AUTOLOAD hooking, and are implemented in this +class because these hooks can only be done by a one module, and +Class::Autouse serves as a useful place to centralise this kind of evil :) %prep -%setup -q -n Class-Autouse-%{version} +%setup -q -n %{cpan_name}-%{version} +# MANUAL BEGIN +sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL +# MANUAL END %build -perl Makefile.PL -make %{?_smp_mflags} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install -make DESTDIR=%{buildroot} install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%clean -rm -rf %{buildroot} - -%files -%defattr(-,root,root) -%doc %{_mandir}/man?/* +%files -f %{name}.files +%defattr(-,root,root,755) %doc Changes README -%{perl_vendorlib}/Class -%{perl_vendorarch}/auto/Class +%license LICENSE %changelog ++++++ cpanspec.yml ++++++ --- post_prep: sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL