3 %bcond_without tests # do not perform "make test"
6 Summary: Want - a generalisation of "wantarray"
7 Summary(pl.UTF-8): Want - uogólnienie funkcji wantarray()
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/R/RO/ROBIN/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 33b2dae5db59781b9a0434fa1db04aab
16 URL: http://search.cpan.org/dist/Want/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _noautoreq 'perl(v5.6)'
24 This module generalises the mechanism of the wantarray function,
25 allowing a function to determine in some detail how its return value
26 is going to be immediately used.
28 %description -l pl.UTF-8
29 Ten moduł generalizuje mechanizm funkcji wantarray, pozwalając
30 funkcjom na określenie niektórych szczegółów tego, w jaki sposób
31 używane będą zwracane przez nie wartości.
34 %setup -q -n %{pdir}-%{version}
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %{perl_vendorarch}/*.pm
55 %dir %{perl_vendorarch}/auto/Want
56 %attr(755,root,root) %{perl_vendorarch}/auto/Want/*.so