File perl-Class-Unload.spec of Package perl-Class-Unload
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Class-Unload
#
# Copyright (c) 2013 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/
#
Name: perl-Class-Unload
Version: 0.08
Release: 0
Summary: Unload a class
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/I/IL/ILMARI/Class-Unload-%{version}.tar.gz
Url: http://search.cpan.org/dist/Class-Unload
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: perl = %{perl_version}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Inspector)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
BuildRequires: perl(Test::More)
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}"
%__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}
%changelog