2010-12-27 12:08:04 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
|
|
|
Name: perl-Class-Unload
|
|
|
|
Version: 0.06
|
|
|
|
Release: 0
|
|
|
|
Summary: Unload a class
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/I/IL/ILMARI/Class-Unload-%{version}.tar.gz
|
2010-12-27 12:13:15 +00:00
|
|
|
Patch1: perl-Class-Unload-lower_required_makemaker_version.patch
|
2010-12-27 12:08:04 +00:00
|
|
|
URL: http://search.cpan.org/dist/Class-Unload
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
|
|
|
BuildRequires: perl(Class::Inspector)
|
|
|
|
Requires: perl(Class::Inspector)
|
|
|
|
|
|
|
|
%description
|
|
|
|
Unloads the given class by clearing out its symbol table and removing it from
|
|
|
|
%%INC.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "Class-Unload-%{version}"
|
2010-12-27 12:13:15 +00:00
|
|
|
%patch1
|
2010-12-27 12:08:04 +00:00
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
%dir %{perl_vendorlib}/Class
|
|
|
|
%{perl_vendorlib}/Class/Unload.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/Class
|
|
|
|
%{perl_vendorarch}/auto/Class/Unload
|
|
|
|
%doc %{perl_man3dir}/Class::Unload.%{perl_man3ext}%{ext_man}
|
|
|
|
|