3 %bcond_without tests # perform "make test"
7 Summary: Class::Default - static calls apply to a default instantiation
8 Summary(pl.UTF-8): Class::Default - domyślna instancja klasy dla wywołanych metod statycznych
9 Name: perl-Class-Default
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: ff10355e5ac350f14ed3e5a427592abd
17 URL: http://search.cpan.org/dist/Class-Default/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Class::Default provides a mechanism to allow your class to take static
25 method calls and apply it to a default instantiation of an object.
26 It provides a flexibility to an API that allows it to be used more
27 comfortably in different situations.
29 %description -l pl.UTF-8
30 Class::Default dostarcza mechanizm pozwalający aby wywoływane
31 statyczne metod klasy operowały na domyślnej instancji tej klasy.
32 Daje to możliwość elastycznego API, które w pewnych sytuacjach
33 może być bardziej wygodne.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorlib}/Class/Default.pm