forked from pool/perl-Class-Load
Accepting request 91036 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/91036 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Class-Load?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
b8c0948cc1
commit
f105e1870e
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1ab2862b69dabe4f523d2a924025c9c3c78572f96b55376f72798fa4c24dfb0b
|
|
||||||
size 21877
|
|
||||||
3
Class-Load-0.11.tar.gz
Normal file
3
Class-Load-0.11.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f018f1c9bc160e57cc94ada63979bebc9d19698f88abd3cd93749c222671eb2c
|
||||||
|
size 18470
|
||||||
3
Class-Load-0.12.tar.gz
Normal file
3
Class-Load-0.12.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d90c1574060ab5107316849416b27b1352ecac75a62d182675c0568b3d443c6a
|
||||||
|
size 18770
|
||||||
@@ -1,3 +1,38 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 26 16:34:32 UTC 2011 - tabraham@novell.com
|
||||||
|
|
||||||
|
- updated to 0.11 2011-10-04
|
||||||
|
- don't accept package names that start with a digit ( Jesse Luehrs )
|
||||||
|
- rewrote some of the guts to use Module::Runtime, rather than
|
||||||
|
reimplementing its functionality ( Jesse Luehrs )
|
||||||
|
|
||||||
|
- updated to 0.10 2011-09-06
|
||||||
|
- make sure the $@ localization doesn't hide errors - invalid
|
||||||
|
module name errors were being suppressed on perls before 5.14
|
||||||
|
( Jesse Luehrs )
|
||||||
|
|
||||||
|
- Updated to 0.09 2011-09-05
|
||||||
|
- fix is_class_loaded to ignore $ISA (but still look for @ISA)
|
||||||
|
when trying to determine whether a class is loaded ( Jesse Luehrs )
|
||||||
|
- lots of internals cleanup ( Jesse Luehrs )
|
||||||
|
|
||||||
|
- updated to 0.08 2011-08-15
|
||||||
|
- the previous version was missing a prereq declaration for
|
||||||
|
Data::OptList. Reported by Daisuke Maki and Mark Hedges. RT #70285.
|
||||||
|
|
||||||
|
- updated to 0.07 2011-08-15
|
||||||
|
- All this module's subroutines now accept optional parameters for a
|
||||||
|
module so you can write something like -
|
||||||
|
load_class( 'Foo', { -version => 42 } )
|
||||||
|
- There is now a Class::Load::XS distro available on CPAN which implements
|
||||||
|
some of this module's code in XS for speed. This code was originally written
|
||||||
|
by Goro Fuji and Florian Ragwitz for Class::MOP. You need to install this
|
||||||
|
distro explicitly if you want the XS implementation.
|
||||||
|
- added a load_first_existing_class subroutine based mostly borrowed from
|
||||||
|
Class::MOP
|
||||||
|
- fixed a bug where a package with a version object in it's $VERSION would
|
||||||
|
not be seen as loaded. Reported by Chris Prather.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 29 23:20:19 CET 2010 - pascal.bleser@opensuse.org
|
Wed Dec 29 23:20:19 CET 2010 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
|||||||
@@ -18,64 +18,77 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-Class-Load
|
Name: perl-Class-Load
|
||||||
Version: 0.06
|
Version: 0.11
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: A working require "Class::Name" and more
|
License: GPL+ or Artistic
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/Class-Load-%{version}.tar.gz
|
%define cpan_name Class-Load
|
||||||
Url: http://search.cpan.org/dist/Class-Load
|
Summary: a working (require "Class::Name") and more
|
||||||
|
Url: http://search.cpan.org/dist/Class-Load/
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
License: Perl License
|
#Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-0.12.tar.gz
|
||||||
|
Source: Class-Load-0.11.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: make
|
BuildRequires: perl(Data::OptList)
|
||||||
%if 0%{?suse_version} >= 1100
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Module::Runtime) >= 0.009
|
||||||
BuildRequires: perl(Test::Fatal)
|
BuildRequires: perl(Package::Stash) >= 0.32
|
||||||
%endif
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
||||||
BuildRequires: perl(Scalar::Util)
|
BuildRequires: perl(Scalar::Util)
|
||||||
|
BuildRequires: perl(Test::Fatal)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
|
BuildRequires: perl(Try::Tiny)
|
||||||
|
#BuildRequires: perl(Carp)
|
||||||
|
#BuildRequires: perl(Class::Load)
|
||||||
|
#BuildRequires: perl(Class::Load::PP)
|
||||||
|
#BuildRequires: perl(Class::Load::VersionCheck)
|
||||||
|
#BuildRequires: perl(constant)
|
||||||
|
#BuildRequires: perl(Exporter)
|
||||||
|
#BuildRequires: perl(Test::Class::Load)
|
||||||
|
#BuildRequires: perl(Test::Requires)
|
||||||
|
#BuildRequires: perl(Test::Spelling)
|
||||||
|
#BuildRequires: perl(version)
|
||||||
|
Requires: perl(Data::OptList)
|
||||||
|
Requires: perl(Module::Runtime) >= 0.009
|
||||||
|
Requires: perl(Package::Stash) >= 0.32
|
||||||
Requires: perl(Scalar::Util)
|
Requires: perl(Scalar::Util)
|
||||||
|
Requires: perl(Test::Fatal)
|
||||||
|
Requires: perl(Test::More) >= 0.88
|
||||||
|
Requires: perl(Try::Tiny)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
"require EXPR" only accepts "Class/Name.pm" style module names, not
|
'require EXPR' only accepts 'Class/Name.pm' style module names, not
|
||||||
"Class::Name". How frustrating! For that, we provide "load_class
|
'Class::Name'. How frustrating! For that, we provide 'load_class
|
||||||
'Class::Name'".
|
'Class::Name''.
|
||||||
|
|
||||||
It's often useful to test whether a module can be loaded, instead of
|
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
|
throwing an error when it's not available. For that, we provide
|
||||||
"try_load_class 'Class::Name'".
|
'try_load_class 'Class::Name''.
|
||||||
|
|
||||||
Finally, sometimes we need to know whether a particular class has been
|
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
|
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.
|
any class for which the filename does not correspond to the package name.
|
||||||
For that, we provide "is_class_loaded 'Class::Name'".
|
For that, we provide 'is_class_loaded 'Class::Name''.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "Class-Load-%{version}"
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%__sed -i '/^auto_install/d' Makefile.PL
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%__make %{?jobs:-j%{jobs}}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1100
|
%files -f %{name}.files
|
||||||
|
%defattr(-,root,root,755)
|
||||||
|
%doc Changes LICENSE README
|
||||||
|
|
||||||
%check
|
|
||||||
%__make test
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc Changes
|
|
||||||
%dir %{perl_vendorlib}/Class
|
|
||||||
%{perl_vendorlib}/Class/Load.pm
|
|
||||||
%dir %{perl_vendorarch}/auto/Class
|
|
||||||
%{perl_vendorarch}/auto/Class/Load
|
|
||||||
%doc %{perl_man3dir}/Class::Load.%{perl_man3ext}%{ext_man}
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user