Initial import
This commit is contained in:
parent
d7f6652d07
commit
fe0f27ee6b
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Class-Tiny-0.008.tar.gz
|
||||
88
perl-Class-Tiny.spec
Normal file
88
perl-Class-Tiny.spec
Normal file
@ -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 <jplesnik@redhat.com> 0.008-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
Loading…
Reference in New Issue
Block a user