commit 5ded46e4b970420d9a2c904c8c7ad73079b8d868 Author: Jitka Plesnikova <jples...@redhat.com> Date: Tue Sep 17 15:26:12 2013 +0200
Initial import .gitignore | 1 + perl-Class-Tiny.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 90 insertions(+), 0 deletions(-) --- 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..8855f4f --- /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 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/perl-devel