diff --git a/.cvsignore b/.cvsignore index e69de29..e907b2c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Class-C3-0.13.tar.gz diff --git a/perl-Class-C3.spec b/perl-Class-C3.spec new file mode 100644 index 0000000..db445fe --- /dev/null +++ b/perl-Class-C3.spec @@ -0,0 +1,63 @@ +Name: perl-Class-C3 +Version: 0.13 +Release: 2%{?dist} +Summary: Pragma to use the C3 method resolution order algorithm +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Class-C3/ +Source0: http://www.cpan.org/authors/id/B/BL/BLBLACK/Class-C3-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: perl(Algorithm::C3) >= 0.05 +BuildRequires: perl(Test::Exception) >= 0.15 +# testing... +BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage) +BuildRequires: perl(Sub::Name) + +# auto-requires from cpanspec +#Requires: perl(Algorithm::C3) >= 0.05 +#Requires: perl(Test::Exception) >= 0.15 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This is a pragma to change Perl 5's standard method resolution order from +depth-first left-to-right (a.k.a - pre-order) to the more sophisticated C3 +method resolution order. + +%prep +%setup -q -n Class-C3-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc ChangeLog README opt/ util/ +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Sep 07 2006 Chris Weyl 0.13-2 +- additional br's, minor spec tweaks + +* Tue Sep 05 2006 Chris Weyl 0.13-1 +- Specfile autogenerated by cpanspec 1.69.1. diff --git a/sources b/sources index e69de29..04cc93e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +95b52572a765b9d9103b264a15e323a1 Class-C3-0.13.tar.gz