File perl-Class-MOP.spec of Package perl-Class-MOP
#
# spec file for package perl-Class-MOP (Version 1.11)
#
# 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
%bcond_with opt
Name: perl-Class-MOP
%define cpan_name Class-MOP
Summary: Meta Object Protocol for Perl 5
Version: 1.11
Release: 2
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Class-MOP/
#Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-MOP-1.11.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
Patch: %{cpan_name}-1.11-Build_n_Test.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
%if %{with opt}
BuildRequires: perl(Test::LeakTrace)
BuildRequires: perl(Test::Output)
BuildRequires: perl(SUPER) >= 1.10
%endif
%if 0%{?suse_version} < 1130
BuildRequires: perl(Test::More)
%else
BuildRequires: perl(Test::More) >= 0.88
%endif
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::Fatal) >= 0.001
BuildRequires: perl(Test::Requires) >= 0.05
#
BuildRequires: perl(Carp)
BuildRequires: perl(Data::OptList)
BuildRequires: perl(Devel::GlobalDestruction)
BuildRequires: perl(List::MoreUtils) >= 0.12
BuildRequires: perl(MRO::Compat) >= 0.05
BuildRequires: perl(Package::DeprecationManager) >= 0.10
BuildRequires: perl(Package::Stash) >= 0.13
BuildRequires: perl(Scalar::Util) >= 1.18
BuildRequires: perl(Sub::Name) >= 0.04
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Try::Tiny) >= 0.02
#
Requires: perl(Carp)
Requires: perl(Data::OptList)
Requires: perl(Devel::GlobalDestruction)
Requires: perl(List::MoreUtils) >= 0.12
Requires: perl(MRO::Compat) >= 0.05
Requires: perl(Package::DeprecationManager) >= 0.10
Requires: perl(Package::Stash) >= 0.13
Requires: perl(Scalar::Util) >= 1.18
Requires: perl(Sub::Name) >= 0.04
Requires: perl(Task::Weaken)
Requires: perl(Try::Tiny) >= 0.02
%description
This module is a fully functioning meta object protocol for the Perl 5 object
system. It makes no attempt to change the behavior or characteristics of the
Perl 5 object system, only to create a protocol for its manipulation and
introspection.
That said, it does attempt to create the tools for building a rich set of
extensions to the Perl 5 object system. Every attempt has been made to abide by
the spirit of the Perl 5 object system that we all know and love.
Authors:
--------
Stevan Little <stevan@iinteractive.com>
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} < 1130
%patch -p1
## skip t/041_metaclass_incompatibility.t
%{__mv} t/041_metaclass_incompatibility.t t/041_metaclass_incompatibility.tmv
%endif
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README
%changelog