From a9b299f9fd4064c4642bd6761da93159c86d54f9 Mon Sep 17 00:00:00 2001 From: radek Date: Thu, 9 Dec 2004 12:19:09 +0000 Subject: [PATCH] - new Changed files: perl-Module-Pluggable-Ordered.spec -> 1.1 --- perl-Module-Pluggable-Ordered.spec | 68 ++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 perl-Module-Pluggable-Ordered.spec diff --git a/perl-Module-Pluggable-Ordered.spec b/perl-Module-Pluggable-Ordered.spec new file mode 100644 index 0000000..2e6b9c4 --- /dev/null +++ b/perl-Module-Pluggable-Ordered.spec @@ -0,0 +1,68 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Module +%define pnam Pluggable-Ordered +Summary: Module::Pluggable::Ordered - Call module plugins in a specified order +#Summary(pl): +Name: perl-Module-Pluggable-Ordered +Version: 1.4 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: a63e0c325b9690680d7ee6ac34e178d0 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-Module-Pluggable >= 1.9 +BuildRequires: perl-UNIVERSAL-exports +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This module behaves exactly the same as C, supporting +all of its options, but also mixes in the C method to your +class. C acts a little like C; it takes the +name of a method, and some parameters. Let's say we call it like so: + + __PACKAGE__->call_plugins("my_method", @something); + +C looks at the plugin modules found using C +for ones which provide C. It sorts the modules +numerically based on the result of this method, and then calls +C<$_-Emy_method(@something)> on them in order. This produces an +effect a little like the System V init process, where files can specify +where in the init sequence they want to be called. + +# %description -l pl +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes +%{perl_vendorlib}/Module/Pluggable/*.pm +%{_mandir}/man3/* -- 2.43.0