File perl-Module-Pluggable.spec of Package perl-Module-Pluggable

#
# spec file for package perl-Module-Pluggable (Version 3.5)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           perl-Module-Pluggable
BuildRequires:  perl-Class-Inspector perl-Module-Build
Url:            http://search.cpan.org/~simonw/Module-Pluggable/
License:        Artistic License
Group:          Development/Libraries/Perl
Requires:       perl-Class-Inspector perl = %{perl_version}
AutoReqProv:    on
Summary:        Automatically Give Your Module the Ability to Have Plug-ins
Version:        3.5
Release:        54
Source:         Module-Pluggable-%{version}.tar.bz2
Source1:        perl-Module-Pluggable-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Provides a simple but, hopefully, extensible way of having 'plug-ins'
for your module. Obviously, this is not going to be the best possible
of solutions but it is convenient at the moment.

Essentially all it does is to export a method into your namespace that
looks through a search path for .pm files and turns those into class
names.

Optionally, it instantiates those classes for you.



Authors:
--------
    Simon Wistow <simon@thegestalt.org>

%prep
%setup -q -n Module-Pluggable-%{version}
chmod -x Changes  INSTALL  Makefile.PL  MANIFEST  MANIFEST.SKIP  META.yml  README
# ---------------------------------------------------------------------------

%build
perl Build.PL destdir=%buildroot installdirs=vendor
./Build
./Build test
# ---------------------------------------------------------------------------

%install
./Build install
%perl_process_packlist

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc Changes INSTALL README
%dir %{perl_vendorlib}/Module
%dir %{perl_vendorlib}/Module/Pluggable
%dir %{perl_vendorlib}/Devel
%{perl_vendorlib}/Devel/InnerPackage.pm
%{perl_vendorlib}/Module/Pluggable.pm
%{perl_vendorlib}/Module/Pluggable/Object.pm
%dir %{perl_vendorarch}/auto/Module
%dir %{perl_vendorarch}/auto/Module/Pluggable
%{perl_vendorarch}/auto/Module/Pluggable/.packlist
%doc %{_mandir}/man3/Devel::InnerPackage.3pm.gz
%doc %{_mandir}/man3/Module::Pluggable.3pm.gz
%doc %{_mandir}/man3/Module::Pluggable::Object.3pm.gz

%changelog
* Mon Jan 14 2008 pth@suse.de
- Fix file list.
- Add a rpmlintrc.
* Wed Mar 07 2007 pth@suse.de
- Update to 3.5
  * Patch from Audrey Tang to prevent clobbering of $@
  * Make sure we don't fail taint checking when other
  Module::Pluggable::* modules are installed.
  * Few more patches from Jos Boumans to get read for CORE
  * Remove Class::Inspector dependency and inline code
  * Prepare for assimilation into CORE
* Thu Oct 19 2006 pth@suse.de
- Initial package
openSUSE Build Service is sponsored by