2014-08-18 20:36:01 +00:00
|
|
|
Name: perl-MooX-ConfigFromFile
|
2017-05-24 12:44:15 +00:00
|
|
|
Version: 0.008
|
2017-06-06 12:47:55 +00:00
|
|
|
Release: 2%{?dist}
|
2015-07-17 13:47:21 +00:00
|
|
|
Summary: Moo eXtension for initializing objects from configuration file
|
2014-08-18 20:36:01 +00:00
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/MooX-ConfigFromFile/
|
2015-07-17 13:47:21 +00:00
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/MooX-ConfigFromFile-%{version}.tar.gz
|
2014-08-18 20:36:01 +00:00
|
|
|
BuildArch: noarch
|
2015-07-17 13:47:21 +00:00
|
|
|
BuildRequires: make
|
2014-08-18 20:36:01 +00:00
|
|
|
BuildRequires: perl
|
2016-06-24 08:45:26 +00:00
|
|
|
BuildRequires: perl-generators
|
2015-07-17 13:47:21 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Run-time:
|
2014-08-18 20:36:01 +00:00
|
|
|
BuildRequires: perl(Config::Any)
|
|
|
|
BuildRequires: perl(File::Find::Rule) >= 0.30
|
|
|
|
BuildRequires: perl(FindBin)
|
2015-07-17 13:47:21 +00:00
|
|
|
BuildRequires: perl(Hash::Merge)
|
|
|
|
# 1.003 from Moo in META.json which not used
|
|
|
|
BuildRequires: perl(Moo::Role) >= 1.003
|
2014-08-18 20:36:01 +00:00
|
|
|
BuildRequires: perl(MooX::File::ConfigDir) >= 0.002
|
2015-07-17 13:47:21 +00:00
|
|
|
# Tests:
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
BuildRequires: perl(Moo) >= 1.003
|
|
|
|
BuildRequires: perl(Role::Tiny)
|
2014-08-18 20:36:01 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2015-07-17 13:47:21 +00:00
|
|
|
# Optional tests:
|
|
|
|
BuildRequires: perl(Moose)
|
2015-07-22 12:45:39 +00:00
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
# Break build-cycle: perl-MooX-Cmd → perl-MooX-Options
|
|
|
|
# → perl-MooX-ConfigFromFile → perl-MooX-Cmd
|
2015-07-17 13:47:21 +00:00
|
|
|
BuildRequires: perl(MooX::Cmd) >= 0.012
|
2015-07-22 12:45:39 +00:00
|
|
|
BuildRequires: perl(MooX::Cmd::Tester)
|
2015-07-17 13:47:21 +00:00
|
|
|
BuildRequires: perl(MooX::Options) >= 4.001
|
2015-07-22 12:45:39 +00:00
|
|
|
%endif
|
2015-07-17 13:47:21 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
2014-08-18 20:36:01 +00:00
|
|
|
Requires: perl(File::Find::Rule) >= 0.30
|
2015-07-17 13:47:21 +00:00
|
|
|
Requires: perl(Moo::Role) >= 1.003
|
2014-08-18 20:36:01 +00:00
|
|
|
Requires: perl(MooX::File::ConfigDir) >= 0.002
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Find::Rule\\)$
|
2015-07-17 13:47:21 +00:00
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Moo::Role\\)$
|
2014-08-18 20:36:01 +00:00
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(MooX::File::ConfigDir\\)$
|
2015-07-17 13:47:21 +00:00
|
|
|
|
2014-08-18 20:36:01 +00:00
|
|
|
%description
|
|
|
|
This module is intended to easy load initialization values for attributes
|
2015-07-17 13:47:21 +00:00
|
|
|
on object construction from an appropriate configuration file. The building is
|
2014-08-18 20:36:01 +00:00
|
|
|
done in MooX::ConfigFromFile::Rule - using MooX::ConfigFromFile ensures the
|
|
|
|
role is applied.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n MooX-ConfigFromFile-%{version}
|
|
|
|
|
|
|
|
%build
|
2015-07-17 13:47:21 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
2014-08-30 04:40:13 +00:00
|
|
|
make %{?_smp_mflags}
|
2014-08-18 20:36:01 +00:00
|
|
|
|
|
|
|
%install
|
2014-08-30 04:40:13 +00:00
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
2014-08-18 20:36:01 +00:00
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
%check
|
2014-08-30 04:40:13 +00:00
|
|
|
make test
|
2014-08-18 20:36:01 +00:00
|
|
|
|
|
|
|
%files
|
2014-08-30 04:40:13 +00:00
|
|
|
%doc Changes README.md
|
2014-08-18 20:36:01 +00:00
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2017-06-06 12:47:55 +00:00
|
|
|
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-2
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
2017-05-24 12:44:15 +00:00
|
|
|
* Wed May 24 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-1
|
|
|
|
- 0.008 bump
|
|
|
|
|
2017-02-11 04:15:09 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.007-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-05-18 16:20:59 +00:00
|
|
|
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.007-5
|
|
|
|
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
|
|
2016-05-16 16:35:56 +00:00
|
|
|
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.007-4
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-02-04 14:45:14 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.007-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-07-22 12:45:39 +00:00
|
|
|
* Wed Jul 22 2015 Petr Pisar <ppisar@redhat.com> - 0.007-2
|
|
|
|
- Break build-cycle: perl-MooX-Cmd → perl-MooX-Options →
|
|
|
|
perl-MooX-ConfigFromFile → perl-MooX-Cmd
|
|
|
|
|
2015-07-17 13:47:21 +00:00
|
|
|
* Fri Jul 17 2015 Petr Pisar <ppisar@redhat.com> - 0.007-1
|
|
|
|
- Update to 0.007 (thanks to Emmanuel Seyman)
|
|
|
|
- Clean up spec file
|
|
|
|
|
2015-06-18 04:38:18 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.005-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-08 12:11:39 +00:00
|
|
|
* Mon Jun 08 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.005-2
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2015-01-18 06:35:05 +00:00
|
|
|
* Sun Nov 02 2014 David Dick <ddick@cpan.org> - 0.005-1
|
|
|
|
- consolidate Synopsis in main pod
|
|
|
|
- move from README to README.md
|
|
|
|
|
|
|
|
* Mon Sep 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.003-2
|
2014-11-01 21:08:32 +00:00
|
|
|
* Sun Nov 02 2014 David Dick <ddick@cpan.org> - 0.004-1
|
|
|
|
- Update to 0.04
|
|
|
|
|
2014-09-01 09:36:18 +00:00
|
|
|
* Mon Sep 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.003-2
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-08-30 04:40:13 +00:00
|
|
|
* Sat Aug 30 2014 David Dick <ddick@cpan.org> - 0.003-1
|
|
|
|
- Change build system to ExtUtils::MakeMaker, documentation fixes
|
|
|
|
|
2014-08-18 20:36:01 +00:00
|
|
|
* Tue Jul 22 2014 David Dick <ddick@cpan.org> - 0.002-1
|
|
|
|
- Initial release
|