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

129 lines
4.8 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: 9%{?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
BuildRequires: perl-interpreter
BuildRequires: perl-generators
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
# Optional tests:
%if !%{defined perl_bootstrap}
# Break build-cycle: perl-MooX-ConfigFromFile → perl-MooX-Cmd
# → perl-MooX-ConfigFromFile
BuildRequires: perl(MooX::ConfigFromFile) >= 0.006
# Break build-cycle: perl-MooX-Options → perl-MooX-Cmd → perl-MooX-Options
BuildRequires: perl(MooX::Options) >= 3.99
%endif
2015-07-20 08:46:06 +00:00
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
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.015-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.015-8
- Perl 5.26 re-rebuild of bootstrapped packages
2017-06-05 19:29:46 +00:00
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.015-7
- Perl 5.26 rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.015-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.015-5
- Perl 5.24 re-rebuild of bootstrapped packages
2016-05-15 23:43:58 +00:00
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.015-4
- Perl 5.24 rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.015-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jul 22 2015 Petr Pisar <ppisar@redhat.com> - 0.015-2
- Break build-cycle: perl-MooX-Options perl-MooX-Cmd perl-MooX-Options
- Break build-cycle: perl-MooX-ConfigFromFile perl-MooX-Cmd
perl-MooX-ConfigFromFile
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