2011-12-20 20:03:31 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-MooseX-Object-Pluggable
|
|
|
|
#
|
2015-04-15 04:36:29 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-12-20 20:03:31 +00:00
|
|
|
#
|
|
|
|
# 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-MooseX-Object-Pluggable
|
2015-04-15 04:36:29 +00:00
|
|
|
Version: 0.0014
|
2011-12-20 20:03:31 +00:00
|
|
|
Release: 0
|
|
|
|
%define cpan_name MooseX-Object-Pluggable
|
|
|
|
Summary: Make your classes pluggable
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/MooseX-Object-Pluggable/
|
2013-11-26 09:16:35 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
2025-08-12 18:15:45 +02:00
|
|
|
Source100: README.md
|
2011-12-20 20:03:31 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-04-15 04:36:29 +00:00
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.039
|
2011-12-20 20:03:31 +00:00
|
|
|
BuildRequires: perl(Module::Pluggable::Object)
|
2014-02-09 15:50:05 +00:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2013-11-26 09:16:35 +00:00
|
|
|
BuildRequires: perl(Moose)
|
|
|
|
BuildRequires: perl(Moose::Role)
|
2014-02-09 15:50:05 +00:00
|
|
|
BuildRequires: perl(Moose::Util)
|
|
|
|
BuildRequires: perl(Test::Fatal)
|
2015-04-15 04:36:29 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2014-02-09 15:50:05 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
|
|
|
BuildRequires: perl(namespace::autoclean)
|
2011-12-20 20:03:31 +00:00
|
|
|
Requires: perl(Module::Pluggable::Object)
|
2014-02-09 15:50:05 +00:00
|
|
|
Requires: perl(Module::Runtime)
|
2013-11-26 09:16:35 +00:00
|
|
|
Requires: perl(Moose::Role)
|
2014-02-09 15:50:05 +00:00
|
|
|
Requires: perl(Moose::Util)
|
|
|
|
Requires: perl(Try::Tiny)
|
|
|
|
Requires: perl(namespace::autoclean)
|
2011-12-20 20:03:31 +00:00
|
|
|
%{perl_requires}
|
2010-05-11 05:59:13 +00:00
|
|
|
|
|
|
|
%description
|
2014-02-09 15:50:05 +00:00
|
|
|
This module is meant to be loaded as a role from Moose-based classes. It
|
2011-12-20 20:03:31 +00:00
|
|
|
will add five methods and four attributes to assist you with the loading
|
|
|
|
and handling of plugins and extensions for plugins. I understand that this
|
|
|
|
may pollute your namespace, however I took great care in using the least
|
|
|
|
ambiguous names possible.
|
2010-05-11 05:59:13 +00:00
|
|
|
|
|
|
|
%prep
|
2011-12-20 20:03:31 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2014-02-09 15:50:05 +00:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2010-05-11 05:59:13 +00:00
|
|
|
|
|
|
|
%build
|
2013-11-26 09:16:35 +00:00
|
|
|
%{__perl} Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-12-20 20:03:31 +00:00
|
|
|
|
|
|
|
%check
|
2013-11-26 09:16:35 +00:00
|
|
|
./Build test
|
2010-05-11 05:59:13 +00:00
|
|
|
|
|
|
|
%install
|
2013-11-26 09:16:35 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-12-20 20:03:31 +00:00
|
|
|
%perl_gen_filelist
|
2010-05-11 05:59:13 +00:00
|
|
|
|
2011-12-20 20:03:31 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2015-04-15 04:36:29 +00:00
|
|
|
%doc Changes CONTRIBUTING LICENSE README
|
2010-05-11 05:59:13 +00:00
|
|
|
|
|
|
|
%changelog
|