]>
Commit | Line | Data |
---|---|---|
e09492a7 | 1 | # |
2 | # Conditional build: | |
64ae0399 | 3 | %bcond_without tests # do not perform "make test" |
4 | # | |
cdb72115 | 5 | %define pdir Want |
3f93b4c5 | 6 | Summary: Want - a generalisation of "wantarray" |
d84ea718 | 7 | Summary(pl.UTF-8): Want - uogólnienie funkcji wantarray() |
e09492a7 | 8 | Name: perl-Want |
86e4509e | 9 | Version: 0.29 |
891369fb | 10 | Release: 6 |
f35538bb | 11 | # same as perl |
12 | License: GPL v1+ or Artistic | |
e09492a7 | 13 | Group: Development/Languages/Perl |
f536b4b9 | 14 | Source0: http://www.cpan.org/modules/by-authors/id/R/RO/ROBIN/%{pdir}-%{version}.tar.gz |
86e4509e | 15 | # Source0-md5: 33b2dae5db59781b9a0434fa1db04aab |
228ede66 | 16 | URL: http://search.cpan.org/dist/Want/ |
abf5ed9d | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
f5334d4c | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
e09492a7 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %define _noautoreq 'perl(v5.6)' | |
22 | ||
23 | %description | |
1a1a2b69 | 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. | |
e09492a7 | 27 | |
c4514425 | 28 | %description -l pl.UTF-8 |
d00e3fe6 ŁK |
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. | |
e09492a7 | 32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{version} | |
35 | ||
36 | %build | |
f5334d4c | 37 | %{__perl} Makefile.PL \ |
11fe788b | 38 | INSTALLDIRS=vendor |
e09492a7 | 39 | %{__make} |
40 | ||
64ae0399 | 41 | %{?with_tests:%{__make} test} |
e09492a7 | 42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
64ae0399 | 46 | %{__make} install \ |
47 | DESTDIR=$RPM_BUILD_ROOT | |
e09492a7 | 48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
f5334d4c | 54 | %{perl_vendorarch}/*.pm |
55 | %dir %{perl_vendorarch}/auto/Want | |
f5334d4c | 56 | %attr(755,root,root) %{perl_vendorarch}/auto/Want/*.so |
e09492a7 | 57 | %{_mandir}/man3/* |