From c8c0613e16daa4d9d424ea28aabc6e08adc38fe1 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 11 Feb 2022 19:55:52 +0100 Subject: [PATCH] Import MooseX::Meta::TypeConstraint::Mooish --- .gitattributes | 1 + ...eX-Meta-TypeConstraint-Mooish-0.001.tar.gz | 3 + perl-MooseX-Meta-TypeConstraint-Mooish.spec | 72 +++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 .gitattributes create mode 100644 MooseX-Meta-TypeConstraint-Mooish-0.001.tar.gz create mode 100644 perl-MooseX-Meta-TypeConstraint-Mooish.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f087b42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/MooseX-Meta-TypeConstraint-Mooish-0.001.tar.gz b/MooseX-Meta-TypeConstraint-Mooish-0.001.tar.gz new file mode 100644 index 0000000..f27161f --- /dev/null +++ b/MooseX-Meta-TypeConstraint-Mooish-0.001.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48ce292333c4f151aead6b087cc0f82139fb003d7785dc4ad8b1181c692067ca +size 25545 diff --git a/perl-MooseX-Meta-TypeConstraint-Mooish.spec b/perl-MooseX-Meta-TypeConstraint-Mooish.spec new file mode 100644 index 0000000..6f3a4ad --- /dev/null +++ b/perl-MooseX-Meta-TypeConstraint-Mooish.spec @@ -0,0 +1,72 @@ +Name: perl-MooseX-Meta-TypeConstraint-Mooish +Version: 0.001 +Release: 1%{?dist} +Summary: Translate Moo-style constraints to Moose-style +License: LGPLv2+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooseX-Meta-TypeConstraint-Mooish/ +Source0: http://www.cpan.org/authors/id/R/RS/RSRCHBOY/MooseX-Meta-TypeConstraint-Mooish-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl(aliased) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IPC::Open3) +BuildRequires: perl(Moose) +BuildRequires: perl(Moose::Meta::TypeConstraint) +BuildRequires: perl(Moose::Role) +BuildRequires: perl(namespace::autoclean) >= 0.24 +BuildRequires: perl(strict) +BuildRequires: perl(Test::CheckDeps) >= 0.010 +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::Moose::More) >= 0.028 +BuildRequires: perl(Test::More) >= 0.94 +BuildRequires: perl(Try::Tiny) +BuildRequires: perl(warnings) +Requires: perl(Moose) +Requires: perl(Moose::Meta::TypeConstraint) +Requires: perl(Moose::Role) +Requires: perl(namespace::autoclean) >= 0.24 +Requires: perl(Try::Tiny) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Provides: perl(MooseX::Meta::TypeConstraint::Mooish) + +%description +Moose type constraints are expected to return true if the value passes the +constraint, and false otherwise; Moo "constraints", on the other hand, die +if validation fails. + +%prep +%setup -q -n MooseX-Meta-TypeConstraint-Mooish-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes cpanfile dist.ini LICENSE META.json README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Feb 11 2022 Daniel Berteaud 0.001-1 +- Specfile autogenerated by cpanspec 1.78.