|
|
54a8d85 |
Name: perl-MooX-StrictConstructor
|
|
|
3dca70e |
Version: 0.010
|
|
|
6a77503 |
Release: 3%{?dist}
|
|
|
54a8d85 |
Summary: Make your Moo-based object constructors blow up on unknown attributes
|
|
|
54a8d85 |
License: GPL+ or Artistic
|
|
|
71d7cdf |
URL: https://metacpan.org/release/MooX-StrictConstructor
|
|
|
71d7cdf |
Source0: https://cpan.metacpan.org/authors/id/H/HA/HARTZELL/MooX-StrictConstructor-%{version}.tar.gz
|
|
|
54a8d85 |
BuildArch: noarch
|
|
|
54a8d85 |
BuildRequires: make
|
|
|
f4e256e |
BuildRequires: perl-interpreter
|
|
|
54a8d85 |
BuildRequires: perl-generators
|
|
|
54a8d85 |
BuildRequires: perl(:VERSION) >= 5.6.0
|
|
|
54a8d85 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
54a8d85 |
BuildRequires: perl(strict)
|
|
|
54a8d85 |
BuildRequires: perl(warnings)
|
|
|
54a8d85 |
# Run-time
|
|
|
54a8d85 |
BuildRequires: perl(B)
|
|
|
54a8d85 |
BuildRequires: perl(Class::Method::Modifiers)
|
|
|
54a8d85 |
BuildRequires: perl(constant)
|
|
|
54a8d85 |
BuildRequires: perl(feature)
|
|
|
54a8d85 |
BuildRequires: perl(Moo) >= 1.001000
|
|
|
54a8d85 |
BuildRequires: perl(Moo::Role)
|
|
|
54a8d85 |
BuildRequires: perl(strictures) >= 1
|
|
|
54a8d85 |
# Tests
|
|
|
54a8d85 |
BuildRequires: perl(File::Spec)
|
|
|
54a8d85 |
BuildRequires: perl(File::Temp)
|
|
|
54a8d85 |
BuildRequires: perl(IO::Handle)
|
|
|
54a8d85 |
BuildRequires: perl(IPC::Open3)
|
|
|
54a8d85 |
BuildRequires: perl(Test::Fatal)
|
|
|
54a8d85 |
BuildRequires: perl(Test::More) >= 0.88
|
|
|
54a8d85 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
54a8d85 |
Requires: perl(feature)
|
|
|
54a8d85 |
|
|
|
54a8d85 |
%description
|
|
|
54a8d85 |
Simply loading this module makes your constructors "strict". If your
|
|
|
54a8d85 |
constructor is called with an attribute init argument that your class does
|
|
|
54a8d85 |
not declare, then it dies. This is a great way to catch small typos.
|
|
|
54a8d85 |
|
|
|
54a8d85 |
%prep
|
|
|
54a8d85 |
%setup -q -n MooX-StrictConstructor-%{version}
|
|
|
54a8d85 |
|
|
|
54a8d85 |
%build
|
|
|
54a8d85 |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
54a8d85 |
make %{?_smp_mflags}
|
|
|
54a8d85 |
|
|
|
54a8d85 |
%install
|
|
|
54a8d85 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
54a8d85 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
54a8d85 |
|
|
|
54a8d85 |
%check
|
|
|
54a8d85 |
make test
|
|
|
54a8d85 |
|
|
|
54a8d85 |
%files
|
|
|
54a8d85 |
%license LICENSE
|
|
|
54a8d85 |
%doc Changes
|
|
|
54a8d85 |
%{perl_vendorlib}/*
|
|
|
54a8d85 |
%{_mandir}/man3/*
|
|
|
54a8d85 |
|
|
|
54a8d85 |
%changelog
|
|
|
6a77503 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.010-3
|
|
|
6a77503 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
6a77503 |
|
|
|
9bba2db |
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.010-2
|
|
|
9bba2db |
- Perl 5.28 rebuild
|
|
|
9bba2db |
|
|
|
3dca70e |
* Mon Mar 26 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.010-1
|
|
|
3dca70e |
- 0.010 bump
|
|
|
3dca70e |
|
|
|
5635a31 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.008-3
|
|
|
5635a31 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
5635a31 |
|
|
|
72335d9 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.008-2
|
|
|
72335d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
72335d9 |
|
|
|
54a8d85 |
* Fri Jun 30 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-1
|
|
|
54a8d85 |
- Initial release
|