8
0
Files
perl-Parse-Method-Signatures/perl-Parse-Method-Signatures.spec

90 lines
3.1 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Parse-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-Parse-Method-Signatures
Version: 1.003013
Release: 0
Summary: Perl6 like method signature parser
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Parse-Method-Signatures-%{version}.tar.gz
Url: http://search.cpan.org/dist/Parse-Method-Signatures
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(List::MoreUtils) >= 0.20
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Traits) >= 0.06
BuildRequires: perl(MooseX::Types) >= 0.17
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(MooseX::Types::Structured)
BuildRequires: perl(PPI) >= 1.203
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(aliased)
BuildRequires: perl(namespace::clean) >= 0.10
Requires: perl(PPI) >= 1.203
Requires: perl(MooseX::Types::Moose)
Requires: perl(MooseX::Types::Structured)
Requires: perl(MooseX::Traits) >= 0.06
Requires: perl(namespace::clean) >= 0.10
Requires: perl(MooseX::Types) >= 0.17
Requires: perl(List::MoreUtils) >= 0.20
Requires: perl(Moose)
%description
Inspired by Perl6::Signature but streamlined to just support the subset
deemed useful for TryCatch and MooseX::Method::Signatures.
%prep
%setup -q -n "Parse-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
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Parse
%dir %{perl_vendorlib}/Parse/Method
%{perl_vendorlib}/Parse/Method/Signatures.pm
%{perl_vendorlib}/Parse/Method/Signatures
%dir %{perl_vendorarch}/auto/Parse
%dir %{perl_vendorarch}/auto/Parse/Method
%{perl_vendorarch}/auto/Parse/Method/Signatures
%doc %{perl_man3dir}/Parse::Method::Signatures.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Parse::Method::Signatures::*.%{perl_man3ext}%{ext_man}
%changelog