File perl-Mouse.spec of Package perl-Mouse

#
# spec file for package perl-Mouse
#
# 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-Mouse
Version:        0.97
Release:        1
Summary:        Moose minus the antlers
Source:         http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/Mouse-%{version}.tar.gz
Url:            http://search.cpan.org/dist/Mouse
Group:          Development/Libraries/Perl
License:        GPL-1.0+ or Artistic-1.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  gcc
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  make
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Exception) >= 0.29
BuildRequires:  perl(ExtUtils::ParseXS) >= 2.21
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires:  perl(Devel::PPPort) >= 3.19
BuildRequires:  perl(Scalar::Util) >= 1.14
BuildRequires:  perl(XSLoader) >= 0.1
BuildRequires:  perl(Regexp::Common)
BuildRequires:  perl(Locale::US)
BuildRequires:  perl(HTTP::Headers)
BuildRequires:  perl(Params::Coerce)
BuildRequires:  perl(URI)
BuildRequires:  perl(Test::Output)
BuildRequires:  perl(Test::LeakTrace)
BuildRequires:  perl(IO::String)
BuildRequires:  perl(IO::File)
BuildRequires:  perl(Declare::Constraints::Simple)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(Pod::Coverage::Moose)
BuildRequires:  perl(Moose) >= 1.05
BuildRequires:  perl(Path::Class)
BuildRequires:  perl(MRO::Compat)
BuildRequires:  perl(Class::MOP)
BuildRequires:  perl(Class::Method::Modifiers::Fast)
Requires:       perl(Scalar::Util) >= 1.14
Requires:       perl(XSLoader) >= 0.1
Requires:       perl(MRO::Compat)
Requires:       perl(Class::MOP)
Requires:       perl(Class::Method::Modifiers::Fast)

%description
This module provides some useful test functions for Mouse based classes.
It is an experimental first release, so comments and suggestions are very
welcome.

%prep
%setup -q -n "Mouse-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL

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

%install
%perl_make_install
%perl_process_packlist

%check
%__make test

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

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

%changelog
openSUSE Build Service is sponsored by