forked from pool/perl-MooseX-Types-Path-Class
- regenerate with cpanspec
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-Types-Path-Class?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
7942c00d64
commit
382e475939
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 20 20:08:49 UTC 2011 - coolo@suse.com
|
||||
|
||||
- regenerate with cpanspec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 13:33:57 UTC 2010 - coolo@novell.com
|
||||
|
||||
|
||||
@@ -1,70 +1,83 @@
|
||||
# norootforbuild
|
||||
#
|
||||
# spec file for package perl-MooseX-Types-Path-Class
|
||||
#
|
||||
# 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-Types-Path-Class
|
||||
Version: 0.05
|
||||
Release: 0
|
||||
Summary: A Path::Class Type Library for Moose
|
||||
Source: http://search.cpan.org/CPAN/authors/id/T/TH/THEPLER/MooseX-Types-Path-Class-%{version}.tar.gz
|
||||
URL: http://search.cpan.org/dist/MooseX-Types-Path-Class/
|
||||
%define cpan_name MooseX-Types-Path-Class
|
||||
Summary: A Path::Class type library for Moose
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
License: Perl License
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
%{perl_requires}
|
||||
Requires: perl(Moose)
|
||||
Requires: perl(MooseX::Types)
|
||||
# optional
|
||||
Recommends: perl(MooseX::Getopt)
|
||||
Requires: perl(Path::Class)
|
||||
Requires: perl(Class::MOP)
|
||||
BuildRequires: make perl
|
||||
Url: http://search.cpan.org/dist/MooseX-Types-Path-Class/
|
||||
Source: http://www.cpan.org/authors/id/T/TH/THEPLER/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::More) >= 0.62
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
BuildRequires: perl(Moose)
|
||||
BuildRequires: perl(MooseX::Types)
|
||||
BuildRequires: perl(Path::Class)
|
||||
BuildRequires: perl(Class::MOP)
|
||||
BuildRequires: perl(Moose) >= 0.39
|
||||
BuildRequires: perl(MooseX::Types) >= 0.04
|
||||
BuildRequires: perl(Path::Class) >= 0.16
|
||||
#BuildRequires: perl(inc::Module::Install) >= 0.75
|
||||
#BuildRequires: perl(LWP::Simple)
|
||||
#BuildRequires: perl(Module::Build)
|
||||
#BuildRequires: perl(Module::Install::Base)
|
||||
#BuildRequires: perl(Moose::Util::TypeConstraints)
|
||||
#BuildRequires: perl(MooseX::Getopt)
|
||||
#BuildRequires: perl(MooseX::Types::Moose)
|
||||
#BuildRequires: perl(MooseX::Types::Path::Class)
|
||||
#BuildRequires: perl(Test::Kwalitee)
|
||||
#BuildRequires: perl(Test::Perl::Critic)
|
||||
#BuildRequires: perl(YAML::Tiny)
|
||||
Requires: perl(Class::MOP)
|
||||
Requires: perl(Moose) >= 0.39
|
||||
Requires: perl(MooseX::Types) >= 0.04
|
||||
Requires: perl(Path::Class) >= 0.16
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
MooseX::Types::Path::Class creates common Moose types, coercions and option
|
||||
specifications useful for dealing with Path::Class objects as Moose attributes.
|
||||
MooseX::Types::Path::Class creates common the Moose manpage types,
|
||||
coercions and option specifications useful for dealing with the Path::Class
|
||||
manpage objects as the Moose manpage attributes.
|
||||
|
||||
Coercions (see Moose::Util::TypeConstraints) are made from both 'Str' and
|
||||
'ArrayRef' to both Path::Class::Dir and Path::Class::File objects. If you have
|
||||
MooseX::Getopt installed, the Getopt option type ("=s") will be added for both
|
||||
Path::Class::Dir and Path::Class::File.
|
||||
Coercions (see the Moose::Util::TypeConstraints manpage) are made from both
|
||||
'Str' and 'ArrayRef' to both the Path::Class::Dir manpage and the
|
||||
Path::Class::File manpage objects. If you have the MooseX::Getopt manpage
|
||||
installed, the Getopt option type ("=s") will be added for both the
|
||||
Path::Class::Dir manpage and the Path::Class::File manpage.
|
||||
|
||||
%prep
|
||||
%setup -q -n "MooseX-Types-Path-Class-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?jobs:-j%{jobs}}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%__rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
%dir %{perl_vendorlib}/MooseX
|
||||
%dir %{perl_vendorlib}/MooseX/Types
|
||||
%dir %{perl_vendorlib}/MooseX/Types/Path
|
||||
%{perl_vendorlib}/MooseX/Types/Path/Class.pm
|
||||
%dir %{perl_vendorarch}/auto/MooseX
|
||||
%dir %{perl_vendorarch}/auto/MooseX/Types
|
||||
%dir %{perl_vendorarch}/auto/MooseX/Types/Path
|
||||
%{perl_vendorarch}/auto/MooseX/Types/Path/Class
|
||||
%doc %{perl_man3dir}/MooseX::Types::Path::Class.%{perl_man3ext}%{ext_man}
|
||||
|
||||
%changelog
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
|
||||
Reference in New Issue
Block a user