From f542ecf7cdc447c46b1752fee0b16085861cd079 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 11 Feb 2022 20:27:07 +0100 Subject: [PATCH] Import MooseX::SingleArg --- .gitattributes | 1 + MooseX-SingleArg-0.09.tar.gz | 3 ++ perl-MooseX-SingleArg.spec | 53 ++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 .gitattributes create mode 100644 MooseX-SingleArg-0.09.tar.gz create mode 100644 perl-MooseX-SingleArg.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-SingleArg-0.09.tar.gz b/MooseX-SingleArg-0.09.tar.gz new file mode 100644 index 0000000..233ab37 --- /dev/null +++ b/MooseX-SingleArg-0.09.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:299685454a8f60e040bc1c8b2cb8b531d73ab36cf3f9f1d56309a47754c90fdc +size 11429 diff --git a/perl-MooseX-SingleArg.spec b/perl-MooseX-SingleArg.spec new file mode 100644 index 0000000..555492b --- /dev/null +++ b/perl-MooseX-SingleArg.spec @@ -0,0 +1,53 @@ +Name: perl-MooseX-SingleArg +Version: 0.09 +Release: 1%{?dist} +Summary: No-fuss instantiation of Moose objects using a single argument +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooseX-SingleArg/ +Source0: http://www.cpan.org/authors/id/B/BL/BLUEFEET/MooseX-SingleArg-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(Module::Build) +BuildRequires: perl(Moose) >= 1.23 +BuildRequires: perl(Test2::V0) >= 0.000094 +Requires: perl(Moose) >= 1.23 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Provides: perl(MooseX::SingleArg) + +%description +This module allows Moose instances to be constructed with a single +argument. Your class or role must use this module and then use the +single_arg sugar to declare which attribute will be assigned the single +argument value. + +%prep +%setup -q -n MooseX-SingleArg-%{version} + +%build +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes cpanfile LICENSE META.json minil.toml README.md +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Feb 11 2022 Daniel Berteaud 0.09-1 +- Specfile autogenerated by cpanspec 1.78.