File perl-Moose.spec of Package perl-Moose

#
# spec file for package perl-Moose (Version 1.15)
#
# Copyright (c) 2010 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-Moose
Version:        1.15
Release:        3
Summary:        Perl module that implements a complete modern object system
# http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Moose-%{version}.tar.gz
Source:         Moose-%{version}.tar.gz
Url:            http://search.cpan.org/dist/Moose/
Group:          Development/Libraries/Perl
License:        Perl License
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  make
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Carp)
BuildRequires:  perl(Class::MOP) >= 1.09
BuildRequires:  perl(Data::OptList)
BuildRequires:  perl(List::MoreUtils) >= 0.12
BuildRequires:  perl(Package::DeprecationManager) >= 0.04
BuildRequires:  perl(Scalar::Util) >= 1.19
BuildRequires:  perl(Sub::Exporter) >= 0.980
BuildRequires:  perl(Sub::Name)
BuildRequires:  perl(Task::Weaken)
BuildRequires:  perl(Try::Tiny) >= 0.02
# for tests:
BuildRequires:  perl(IO::String)
BuildRequires:  perl(IO::File)
BuildRequires:  perl(Test::Output)
BuildRequires:  perl(DateTime)
BuildRequires:  perl(DateTime::Calendar::Mayan)
BuildRequires:  perl(Regexp::Common)
BuildRequires:  perl(Locale::US)
BuildRequires:  perl(HTTP::Headers)
BuildRequires:  perl(Params::Coerce)
BuildRequires:  perl(URI)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Exception) >= 0.27
BuildRequires:  perl(Test::Requires) >= 0.05
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Module::Install::ExtraTests)
Requires:       perl(Carp)
Requires:       perl(Class::MOP) >= 1.05
Requires:       perl(Data::OptList)
Requires:       perl(List::MoreUtils) >= 0.12
Requires:       perl(Package::DeprecationManager) >= 0.04
Requires:       perl(Scalar::Util) >= 1.19
Requires:       perl(Sub::Exporter) >= 0.980
Requires:       perl(Sub::Name)
Requires:       perl(Task::Weaken)
Requires:       perl(Try::Tiny) >= 0.02

%description
Moose is a Perl module that implements a complete modern object system.

%prep
%setup -q -n "Moose-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
#rm t/050_metaclasses/030_metarole_combination.t
#rm t/050_metaclasses/023_easy_init_meta.t
#rm t/600_todo_tests/002_various_role_features.t

%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%jobs}

%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1120

%check
%__make test
%endif

%install
%perl_make_install
%perl_process_packlist

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc Changes README
%{perl_vendorarch}/oose.pm
%{perl_vendorarch}/Moose.pm
%{perl_vendorarch}/Moose
%dir %{perl_vendorarch}/Test
%{perl_vendorarch}/Test/Moose.pm
%{perl_vendorarch}/auto/Moose
%doc %{perl_man3dir}/Moose.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Moose::*.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Test::Moose.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/oose.%{perl_man3ext}%{ext_man}

%changelog