File perl-Moo.spec of Package perl-Moo

#
# spec file for package perl-Moo
#
# 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-Moo
Version:        1.003000
Release:        0
%define cpan_name Moo
Summary:        Minimalist Object Orientation (with Moose compatibility)
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Moo/
Source:         http://www.cpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Class::Method::Modifiers) >= 1.1
BuildRequires:  perl(Devel::GlobalDestruction) >= 0.11
BuildRequires:  perl(Dist::CheckConflicts) >= 0.02
BuildRequires:  perl(Module::Runtime) >= 0.012
BuildRequires:  perl(Role::Tiny) >= 1.003000
BuildRequires:  perl(Test::Fatal) >= 0.003
BuildRequires:  perl(Test::More) >= 0.94
BuildRequires:  perl(strictures) >= 1.004003
Requires:       perl(Class::Method::Modifiers) >= 1.1
Requires:       perl(Devel::GlobalDestruction) >= 0.11
Requires:       perl(Dist::CheckConflicts) >= 0.02
Requires:       perl(Module::Runtime) >= 0.012
Requires:       perl(Role::Tiny) >= 1.003000
Requires:       perl(strictures) >= 1.004003
%{perl_requires}

%description
This module is an extremely light-weight subset of the Moose manpage
optimised for rapid startup and "pay only for what you use".

It also avoids depending on any XS modules to allow simple deployments. The
name 'Moo' is based on the idea that it provides almost -- but not quite --
two thirds of the Moose manpage.

Unlike the Mouse manpage this module does not aim at full compatibility
with the Moose manpage's surface syntax, preferring instead of provide full
interoperability via the metaclass inflation capabilities described in the
/MOO AND MOOSE manpage.

For a full list of the minor differences between the Moose manpage and the
Moo manpage's surface syntax, see the /INCOMPATIBILITIES WITH MOOSE
manpage.

%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README

%changelog
openSUSE Build Service is sponsored by