perl-MooX-Cmd/perl-MooX-Cmd.spec

95 lines
3.4 KiB
RPMSpec
Raw Normal View History

2014-09-18 09:42:07 +00:00
Name: perl-MooX-Cmd
2015-07-20 08:46:06 +00:00
Version: 0.015
Release: 1%{?dist}
2014-09-18 09:42:07 +00:00
Summary: Giving an easy Moo style way to make command organized CLI apps
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/MooX-Cmd/
2015-07-20 08:46:06 +00:00
Source0: http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/MooX-Cmd-%{version}.tar.gz
2014-09-18 09:42:07 +00:00
BuildArch: noarch
2015-07-20 08:46:06 +00:00
BuildRequires: make
2014-09-18 09:42:07 +00:00
BuildRequires: perl
2015-07-20 08:46:06 +00:00
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(Capture::Tiny)
2014-09-18 09:42:07 +00:00
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
2015-07-20 08:46:06 +00:00
BuildRequires: perl(List::MoreUtils) >= 0.406
2014-09-18 09:42:07 +00:00
BuildRequires: perl(Module::Pluggable::Object) >= 4.8
BuildRequires: perl(Module::Runtime)
2015-07-20 08:46:06 +00:00
# 0.009013 from Moo in META which is not used
BuildRequires: perl(Moo::Role) >= 0.009013
2014-09-18 09:42:07 +00:00
BuildRequires: perl(Package::Stash) >= 0.33
BuildRequires: perl(Params::Util) >= 0.37
BuildRequires: perl(parent)
BuildRequires: perl(Regexp::Common) >= 2011121001
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Builder::Module)
BuildRequires: perl(Test::More) >= 0.98
BuildRequires: perl(Text::ParseWords)
2015-07-20 08:46:06 +00:00
# Tests:
BuildRequires: perl(FindBin)
BuildRequires: perl(lib)
BuildRequires: perl(Moo) >= 0.009013
BuildRequires: perl(MooX::Options)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(List::MoreUtils) >= 0.406
2014-09-18 09:42:07 +00:00
Requires: perl(Module::Pluggable::Object) >= 4.8
2015-07-20 08:46:06 +00:00
# 0.009013 from Moo in META which is not used
Requires: perl(Moo::Role) >= 0.009013
2014-09-18 09:42:07 +00:00
Requires: perl(Package::Stash) >= 0.33
Requires: perl(Params::Util) >= 0.37
Requires: perl(Regexp::Common) >= 2011121001
2015-07-20 08:46:06 +00:00
Requires: perl(Test::More) >= 0.98
2014-09-18 09:42:07 +00:00
%{?perl_default_filter}
2015-07-20 08:46:06 +00:00
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(List::MoreUtils\\)$
2014-09-18 09:42:07 +00:00
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Module::Pluggable::Object\\)$
2015-07-20 08:46:06 +00:00
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Moo::Role\\)$
2014-09-18 09:42:07 +00:00
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Package::Stash\\)$
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Params::Util\\)$
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Regexp::Common\\)$
2015-07-20 08:46:06 +00:00
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Test::More\\)$
2014-09-18 09:42:07 +00:00
%description
Works together with MooX::Options for every command on its own, so options
are parsed for the specific context and used for the instantiation:
%prep
%setup -q -n MooX-Cmd-%{version}
%build
2015-07-20 08:46:06 +00:00
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
2014-09-18 09:42:07 +00:00
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
2015-01-23 21:10:11 +00:00
%doc Changes README.md
2014-09-18 09:42:07 +00:00
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
2015-07-20 08:46:06 +00:00
* Mon Jul 20 2015 Petr Pisar <ppisar@redhat.com> - 0.015-1
- Update to 0.015 (thanks to Emmanuel Seyman)
- Clean up spec file
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.011-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-06-08 14:01:26 +00:00
* Mon Jun 08 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-2
- Perl 5.22 rebuild
2015-01-23 20:33:18 +00:00
* Sat Jan 24 2015 David Dick <ddick@cpan.org> - 0.011-1
- Upgrade to 0.11
2014-09-18 09:42:07 +00:00
* Wed Aug 27 2014 David Dick <ddick@cpan.org> - 0.009-1
- Initial release