3 %bcond_without tests # do not perform "make test"
6 %define pnam Multimethods
7 Summary: Class::Multimethods - support multimethods and function overloading in Perl
8 Summary(pl.UTF-8): Class::Multimethods - obsługa wielometod i przeciążania funkcji w Perlu
9 Name: perl-Class-Multimethods
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: 5fdc79daa81b102b956b1a61531fd6a7
17 URL: http://search.cpan.org/dist/Class-Multimethods/
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 The Class::Multimethod module exports a subroutine (&multimethod) that
25 can be used to declare other subroutines that are dispatched using a
26 algorithm different from the normal Perl subroutine or method dispatch
29 %description -l pl.UTF-8
30 Moduł Class::Multimethod eksportuje funkcję (&multimethod), która może
31 być użyta do deklarowania innych funkcji, które mogą być wysyłane przy
32 użyciu innego algorytmu niż normalnie używany przez Perla dla funkcji
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
51 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 perl -ni -e 'BEGIN{undef $/}print "#!/usr/bin/perl\n$_"' demo/*.pl
53 cp -a demo/*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/%{pdir}/*.pm
63 %dir %{_examplesdir}/%{name}-%{version}
64 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl