LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-Moose.spec of Package perl-Moose (Project openSUSE:12.1)

# spec file for package perl-Moose
# Copyright (c) 2011 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-Moose
Version:        2.0010
Release:        1
License:        GPL+ or Artistic
%define cpan_name Moose
Summary:        A postmodern object system for Perl 5
Url:            http://search.cpan.org/dist/Moose/
Group:          Development/Libraries/Perl
Source:         http://www.cpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{version}.tar.gz
Patch1:         perl-Moose-old_Test-More.patch
Patch2:         perl-Moose-apply_role.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       perl-Class-MOP = %{version}
Obsoletes:      perl-Class-MOP < %{version}
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Data::OptList)
BuildRequires:  perl(Devel::GlobalDestruction)
BuildRequires:  perl(Dist::CheckConflicts) >= 0.02
BuildRequires:  perl(Eval::Closure)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(List::MoreUtils) >= 0.12
BuildRequires:  perl(MRO::Compat) >= 0.05
BuildRequires:  perl(Package::DeprecationManager) >= 0.10
BuildRequires:  perl(Package::Stash) >= 0.21
BuildRequires:  perl(Package::Stash::XS) >= 0.18
BuildRequires:  perl(Params::Util) >= 1.00
BuildRequires:  perl(Scalar::Util) >= 1.19
BuildRequires:  perl(Sub::Exporter) >= 0.980
BuildRequires:  perl(Sub::Name) >= 0.05
BuildRequires:  perl(Task::Weaken)
BuildRequires:  perl(Test::Fatal) >= 0.001
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Requires) >= 0.05
BuildRequires:  perl(Test::Output)
BuildRequires:  perl(Test::LeakTrace)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(SUPER)
BuildRequires:  perl(Module::Refresh)
BuildRequires:  perl(DateTime::Format::MySQL)
BuildRequires:  perl(Declare::Constraints::Simple)
BuildRequires:  perl(Try::Tiny) >= 0.02
BuildRequires:  perl(DBM::Deep)
BuildRequires:  perl(IO::String)
Requires:       perl(Data::OptList)
Requires:       perl(Devel::GlobalDestruction)
Requires:       perl(Eval::Closure)
Requires:       perl(List::MoreUtils) >= 0.12
Requires:       perl(MRO::Compat) >= 0.05
Requires:       perl(Package::DeprecationManager) >= 0.10
Requires:       perl(Package::Stash) >= 0.21
Requires:       perl(Package::Stash::XS) >= 0.18
Requires:       perl(Params::Util) >= 1.00
Requires:       perl(Scalar::Util) >= 1.19
Requires:       perl(Sub::Exporter) >= 0.980
Requires:       perl(Sub::Name) >= 0.05
Requires:       perl(Task::Weaken)
Requires:       perl(Try::Tiny) >= 0.02

Moose is an extension of the Perl 5 object system.

The main goal of Moose is to make Perl 5 Object Oriented programming
easier, more consistent, and less tedious. With Moose you can think more
about what you want to do and less about the mechanics of OOP.

Additionally, Moose is built on top of the Class::MOP manpage, which is a
metaclass system for Perl 5. This means that Moose not only makes building
normal Perl 5 objects better, but it provides the power of metaclass
programming as well.

%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1110
%patch1 -p0
rm t/bugs/universal_methods_wrappable.t 
rm t/cmop/metaclass_incompatibility.t 
rm t/compat/composite_metaroles.t 
rm t/compat/extends_nonmoose_that_isa_moose_with_metarole.t
rm t/metaclasses/easy_init_meta.t
rm t/metaclasses/moose_exporter_trait_aliases.t
rm t/moose_util/with_traits.t
rm t/native_traits/collection_with_roles.t
rm t/roles/apply_role.t
rm t/roles/method_modifiers.t
rm t/todo_tests/required_role_accessors.t
rm t/todo_tests/various_role_features.t
# Don't know which tests failed: got 5 ok, expected 0
rm t/test_moose/test_moose_does_ok.t
rm t/test_moose/test_moose_has_attribute_ok.t
rm t/test_moose/test_moose_meta_ok.t
rm t/test_moose/with_immutable.t
%patch2 -p0
find . -type f -print0 | xargs -0 chmod 644

%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}

%{__make} test


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

%files -f %{name}.files
%doc author benchmarks Changes Changes.Class-MOP doap.rdf doc eg examples LICENSE README TODO