Group :: Development/Perl
RPM: perl-MooseX-StrictConstructor
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl-devel perl-podlators perl(Test/Needs.pm)
# END SourceDeps(oneline)
Name: perl-MooseX-StrictConstructor
Version: 0.21
Release: alt1
# see lib/MooseX/StrictConstructor.pm
License: Artistic 2.0
Group: Development/Perl
Summary: Make your object constructors blow up on unknown attributes
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/MooseX-StrictConstructor-%{version}.tar.gz
Url: http://search.cpan.org/dist/MooseX-StrictConstructor
BuildArch: noarch
BuildRequires: perl(B.pm)
BuildRequires: perl(ExtUtils/MakeMaker.pm)
BuildRequires: perl(Moose.pm)
BuildRequires: perl(Moose/Exporter.pm)
BuildRequires: perl(Moose/Role.pm)
BuildRequires: perl(Moose/Util/MetaRole.pm)
BuildRequires: perl(Test/Fatal.pm)
BuildRequires: perl(Test/Moose.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(namespace/autoclean.pm)
Source44: import.info
%description
Simply loading this module makes your constructors "strict". If your
constructor is called with an attribute init argument that your class does
not declare, then it calls "Carp::confess()". This is a great way to catch
small typos.
%prep
%setup -q -n MooseX-StrictConstructor-%{version}
# avoid rpmlint wrong-script-interpreter warning
sed -i '1s~#!.*perl~#!%{__perl}~' t/*.t
%build
%{__perl} Makefile.PL INSTALLMAN1DIR=%_man1dir INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
# %{_fixperms} %{buildroot}/*
%check
make test
%files
%doc Changes t/ CONTRIBUTING.md README.md
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl-devel perl-podlators perl(Test/Needs.pm)
# END SourceDeps(oneline)
Name: perl-MooseX-StrictConstructor
Version: 0.21
Release: alt1
# see lib/MooseX/StrictConstructor.pm
License: Artistic 2.0
Group: Development/Perl
Summary: Make your object constructors blow up on unknown attributes
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/MooseX-StrictConstructor-%{version}.tar.gz
Url: http://search.cpan.org/dist/MooseX-StrictConstructor
BuildArch: noarch
BuildRequires: perl(B.pm)
BuildRequires: perl(ExtUtils/MakeMaker.pm)
BuildRequires: perl(Moose.pm)
BuildRequires: perl(Moose/Exporter.pm)
BuildRequires: perl(Moose/Role.pm)
BuildRequires: perl(Moose/Util/MetaRole.pm)
BuildRequires: perl(Test/Fatal.pm)
BuildRequires: perl(Test/Moose.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(namespace/autoclean.pm)
Source44: import.info
%description
Simply loading this module makes your constructors "strict". If your
constructor is called with an attribute init argument that your class does
not declare, then it calls "Carp::confess()". This is a great way to catch
small typos.
%prep
%setup -q -n MooseX-StrictConstructor-%{version}
# avoid rpmlint wrong-script-interpreter warning
sed -i '1s~#!.*perl~#!%{__perl}~' t/*.t
%build
%{__perl} Makefile.PL INSTALLMAN1DIR=%_man1dir INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
# %{_fixperms} %{buildroot}/*
%check
make test
%files
%doc Changes t/ CONTRIBUTING.md README.md
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here