diff --git a/.cvsignore b/.cvsignore index e69de29..67a261d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Module-Pluggable-Ordered-1.5.tar.gz diff --git a/perl-Module-Pluggable-Ordered.spec b/perl-Module-Pluggable-Ordered.spec new file mode 100644 index 0000000..b0d9aba --- /dev/null +++ b/perl-Module-Pluggable-Ordered.spec @@ -0,0 +1,56 @@ +Name: perl-Module-Pluggable-Ordered +Version: 1.5 +Release: 1%{?dist} +Summary: Call module plugins in a specified order +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Module-Pluggable-Ordered/ +Source0: http://www.cpan.org/authors/id/A/AP/APEIRON/Module-Pluggable-Ordered-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Module::Pluggable) >= 1.9 +BuildRequires: perl(Test::More) +BuildRequires: perl(UNIVERSAL::require) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module behaves exactly the same as Module::Pluggable, supporting +all of its options, but also mixes in the call_plugins and +plugins_ordered methods to your class. call_plugins acts a little like +Class::Trigger; it takes the name of a method, and some parameters. +Let's say we call it like so: + +%prep +%setup -q -n Module-Pluggable-Ordered-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon May 04 2009 Iain Arnell 1.5-1 +- Specfile autogenerated by cpanspec 1.77. +- remove explicit requires diff --git a/sources b/sources index e69de29..709a13e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a9a33859fa3ff61a845035d44a2f73e8 Module-Pluggable-Ordered-1.5.tar.gz