forked from pool/perl-Module-Pluggable
76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
|
#
|
||
|
# spec file for package perl-Module-Pluggable (Version 3.8)
|
||
|
#
|
||
|
# Copyright (c) 2009 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-Module-Pluggable
|
||
|
Summary: Automatically Give Your Module the Ability to Have Plug-ins
|
||
|
Version: 3.9
|
||
|
Release: 1
|
||
|
Url: http://search.cpan.org/~simonw/Module-Pluggable/
|
||
|
License: Artistic License
|
||
|
Group: Development/Libraries/Perl
|
||
|
Requires: perl-Class-Inspector perl = %{perl_version}
|
||
|
BuildRequires: perl-Class-Inspector perl-Module-Build
|
||
|
BuildRequires: perl-macros
|
||
|
Source: Module-Pluggable-%{version}.tar.bz2
|
||
|
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 Makefile.PL
|
||
|
make %{?jobs:-j%jobs}
|
||
|
|
||
|
%check
|
||
|
make test
|
||
|
# ---------------------------------------------------------------------------
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
%perl_gen_filelist
|
||
|
|
||
|
%clean
|
||
|
rm -rf %buildroot
|
||
|
|
||
|
%files -f %name.files
|
||
|
%defattr(0644,root,root,0755)
|
||
|
%doc Changes INSTALL README
|
||
|
|
||
|
%changelog
|