From fe0f27ee6b73aeb56d4861ca461adcc3192f8ba5 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova <jples...@redhat.com> Date: Tue, 17 Sep 2013 15:16:24 +0200 Subject: Initial import
--- .gitignore | 1 + perl-Class-Tiny.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 90 insertions(+) create mode 100644 perl-Class-Tiny.spec diff --git a/.gitignore b/.gitignore index e69de29..e3143ab 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Class-Tiny-0.008.tar.gz diff --git a/perl-Class-Tiny.spec b/perl-Class-Tiny.spec new file mode 100644 index 0000000..3b2a52e --- /dev/null +++ b/perl-Class-Tiny.spec @@ -0,0 +1,88 @@ +Name: perl-Class-Tiny +Version: 0.008 +Release: 1%{?dist} +Summary: Minimalist class construction +License: ASL 2.0 +Group: Development/Libraries +URL: http://search.cpan.org/dist/Class-Tiny/ +Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Class-Tiny-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time +BuildRequires: perl(Carp) +%if 0%(perl -e 'print $] < 5.014') +BuildRequires: perl(Devel::GlobalDestruction) +%endif +%if 0%(perl -e 'print $] >= 5.010') +BuildRequires: perl(mro) +%else +BuildRequires: perl(MRO::Compat) +%endif +# Tests +BuildRequires: perl(base) +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IPC::Open3) +BuildRequires: perl(lib) +BuildRequires: perl(List::Util) +BuildRequires: perl(subs) +BuildRequires: perl(Test::More) >= 0.96 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +%if 0%(perl -e 'print $] < 5.014') +Requires: perl(Devel::GlobalDestruction) +%endif +%if 0%(perl -e 'print $] >= 5.010') +Requires: perl(mro) +%else +Requires: perl(MRO::Compat) +%endif + +# Filter from requires +%if 0%(perl -e 'print $] >= 5.014') +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Devel::GlobalDestruction\\) +%endif + +%description +This module offers a minimalist class construction kit in around 120 lines +of code. Here is a list of features: + +* defines attributes via import arguments +* generates read-write accessors +* supports lazy attribute defaults +* supports custom accessors +* superclass provides a standard new constructor +* new takes a hash reference or list of key/value pairs +* new has heuristics to catch constructor attribute typos +* new calls BUILD for each class from parent to child +* superclass provides a DESTROY method +* DESTROY calls DEMOLISH for each class from child to parent + + +%prep +%setup -q -n Class-Tiny-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes CONTRIBUTING LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Sep 16 2013 Jitka Plesnikova <jples...@redhat.com> 0.008-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..69ed286 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +306d342c7608eff79803cce389fa79cb Class-Tiny-0.008.tar.gz -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-Class-Tiny.git/commit/?h=epel7&id=fe0f27ee6b73aeb56d4861ca461adcc3192f8ba5 _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org