Name: perl-asa Version: 0.02 Release: 1%{?dist} # see lib/asa.pm License: GPL+ or Artistic Group: Development/Libraries Summary: Lets your class/object say it works like something else Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/asa-%{version}.tar.gz Url: http://search.cpan.org/dist/asa BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(File::Spec) >= 0.80 BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(Test::More) >= 0.47 # optional tests BuildRequires: perl(Test::Pod) %description Perl 5 doesn't natively support Java-style interfaces, and it doesn't support Perl 6 style roles either. You can get both of these things in half a dozen different ways via various CPAN modules, but they usually require that you buy into "their way" of implementing your code. This package overrides the isa() method, allowing your class to claim it's a class it's not (that is, isn't in @ISA). %prep %setup -q -n asa-%{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 Changes LICENSE README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Tue Nov 18 2008 Chris Weyl 0.02-1 - brushup for submission * Tue Nov 18 2008 Chris Weyl 0.02-0.1 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)