forked from pool/perl-Module-Pluggable
+ Allow inner packages when in a one file situation (suggestion from Christopher Brown) + Fix bug with requiring skipped packages (from Jos Boumans) - follow perl packaging guidelines - fix the filelist instead using rpmlintrc - Update to 3.8 Changes since 3.5: - Set INSTALLDIRS correctly in Makefile.PL - A couple of other fixups to play nicely in Core - Ignore editor cruft by default - Doc patches - Prevent prototype mismatch warnings under Error.pm - Don't pick up the ::SUPER pseudo stash in 5.8 - Make things work under VOS - Fix warning under Devel::Cover - Make tests run under Taint again - Get rid of Build.PL - Fix file list. - Add a rpmlintrc. - 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 - Initial package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Pluggable?expand=0&rev=2
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
|