File perl-Class-Autouse.spec of Package perl-Class-Autouse
#
# spec file for package perl-Class-Autouse
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Class-Autouse
BuildRequires: perl-Carp-Assert
BuildRequires: perl-macros
Version: 2.00
Release: 1
Summary: Run-time class loading on first method call
Group: Development/Libraries/Perl
License: Artistic ; GPLv2+
AutoReqProv: on
Url: http://cpan.org/modules/by-module/Class/
Source: Class-Autouse-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{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.
Authors:
--------
Adam Kennedy
%prep
%setup -q -n Class-Autouse-%{version}
%build
perl Makefile.PL
make %{?_smp_mflags}
%check
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %{_mandir}/man?/*
%doc Changes README
%{perl_vendorlib}/Class
%{perl_vendorarch}/auto/Class
%changelog