3 %bcond_without tests # do not perform "make test"
6 %define pnam Pluggable-Fast
7 Summary: Module::Pluggable::Fast - Fast plugins with instantiation
8 Summary(pl.UTF-8): Module::Pluggable::Fast - szybkie wtyczki z tworzeniem instancji
9 Name: perl-Module-Pluggable-Fast
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e0eeb561a04bb4f28a4f06774bf315f2
17 URL: http://search.cpan.org/dist/Module-Pluggable-Fast/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-UNIVERSAL-require
23 Requires: perl-dirs >= 1.0-5
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module is similar to Module::Pluggable but instantiates plugins
29 as soon as they're found, useful for code generators like
32 %description -l pl.UTF-8
33 Ten moduł jest podobny do Module::Pluggable, ale tworzy instancje
34 wtyczek zaraz po znalezieniu ich, co jest przydatne dla generatorów
35 kodu, takich jak Class::DBI::Loader.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/Module/Pluggable/*.pm