forked from pool/perl-MooseX-Method-Signatures
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-Method-Signatures?expand=0&rev=4
128 lines
4.7 KiB
RPMSpec
128 lines
4.7 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
#
|
|
# spec file for package perl-MooseX-Method-Signatures
|
|
#
|
|
# 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-MooseX-Method-Signatures
|
|
Version: 0.36
|
|
Release: 0
|
|
Summary: Method declarations with type constraints and no source filter
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
Group: Development/Libraries/Perl
|
|
Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/MooseX-Method-Signatures-%{version}.tar.gz
|
|
Url: http://search.cpan.org/dist/MooseX-Method-Signatures
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{perl_requires}
|
|
BuildRequires: make
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(B::Hooks::EndOfScope) >= 0.07
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Context::Preserve)
|
|
BuildRequires: perl(Devel::Declare) >= 0.005011
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
|
BuildRequires: perl(FindBin)
|
|
BuildRequires: perl(Moose) >= 0.89
|
|
BuildRequires: perl(Moose::Meta::Class)
|
|
BuildRequires: perl(Moose::Meta::Method)
|
|
BuildRequires: perl(Moose::Role)
|
|
BuildRequires: perl(Moose::Util)
|
|
BuildRequires: perl(Moose::Util::TypeConstraints)
|
|
BuildRequires: perl(MooseX::LazyRequire) >= 0.06
|
|
BuildRequires: perl(MooseX::Meta::TypeConstraint::ForceCoercion)
|
|
BuildRequires: perl(MooseX::Types) >= 0.19
|
|
BuildRequires: perl(MooseX::Types::Moose) >= 0.19
|
|
BuildRequires: perl(MooseX::Types::Structured) >= 0.20
|
|
BuildRequires: perl(MooseX::Types::Util)
|
|
BuildRequires: perl(Parse::Method::Signatures) >= 1.003011
|
|
BuildRequires: perl(Parse::Method::Signatures::TypeConstraint)
|
|
BuildRequires: perl(Parse::Method::Signatures::Types)
|
|
BuildRequires: perl(Scalar::Util)
|
|
BuildRequires: perl(Sub::Name)
|
|
BuildRequires: perl(Task::Weaken)
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::Moose)
|
|
BuildRequires: perl(Test::More) >= 0.89
|
|
BuildRequires: perl(Test::Pod)
|
|
BuildRequires: perl(Text::Balanced)
|
|
BuildRequires: perl(aliased)
|
|
BuildRequires: perl(attributes)
|
|
BuildRequires: perl(metaclass)
|
|
BuildRequires: perl(namespace::autoclean)
|
|
BuildRequires: perl(namespace::clean)
|
|
Requires: perl(Scalar::Util)
|
|
Requires: perl(Parse::Method::Signatures::TypeConstraint)
|
|
Requires: perl(MooseX::Types::Util)
|
|
Requires: perl(MooseX::Types::Moose) >= 0.19
|
|
Requires: perl(Parse::Method::Signatures) >= 1.003011
|
|
Requires: perl(MooseX::Types::Structured) >= 0.20
|
|
Requires: perl(MooseX::Meta::TypeConstraint::ForceCoercion)
|
|
Requires: perl(aliased)
|
|
Requires: perl(Moose::Util::TypeConstraints)
|
|
Requires: perl(Moose::Meta::Class)
|
|
Requires: perl(Text::Balanced)
|
|
Requires: perl(Task::Weaken)
|
|
Requires: perl(Moose) >= 0.89
|
|
Requires: perl(Context::Preserve)
|
|
Requires: perl(MooseX::LazyRequire) >= 0.06
|
|
Requires: perl(namespace::autoclean)
|
|
Requires: perl(Moose::Meta::Method)
|
|
Requires: perl(Sub::Name)
|
|
Requires: perl(B::Hooks::EndOfScope) >= 0.07
|
|
Requires: perl(Carp)
|
|
Requires: perl(Moose::Util)
|
|
Requires: perl(Parse::Method::Signatures::Types)
|
|
Requires: perl(MooseX::Types) >= 0.19
|
|
Requires: perl(Devel::Declare) >= 0.005011
|
|
%if 0%{?suse_version} >= 1120
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
Provides a proper method keyword, like "sub" but specifically for making
|
|
methods and validating their arguments against Moose type constraints.
|
|
|
|
%prep
|
|
%setup -q -n "MooseX-Method-Signatures-%{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
|
|
|
|
%if 0%{?suse_version} >= 1120
|
|
%check
|
|
%__make test
|
|
%endif
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README Changes LICENSE
|
|
%dir %{perl_vendorlib}/MooseX
|
|
%dir %{perl_vendorlib}/MooseX/Method
|
|
%{perl_vendorlib}/MooseX/Method/Signatures
|
|
%{perl_vendorlib}/MooseX/Method/Signatures.pm
|
|
%doc %{perl_man3dir}/MooseX::Method::Signatures.%{perl_man3ext}%{ext_man}
|
|
%doc %{perl_man3dir}/MooseX::Method::Signatures::*.%{perl_man3ext}%{ext_man}
|
|
|
|
%changelog
|