]>
Commit | Line | Data |
---|---|---|
d9f0d2c4 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
442b44d0 | 5 | %include /usr/lib/rpm/macros.perl |
6e76009c | 6 | %define pdir Sub |
7 | %define pnam Uplevel | |
7e8d86ee | 8 | Summary: Sub::Uplevel - apparently run a function in a higher stack frame |
9784bf89 | 9 | Summary(pl.UTF-8): Sub::Uplevel - pozorne uruchomienie funkcji w wyższej ramce stosu |
ee3902d5 | 10 | Name: perl-Sub-Uplevel |
a40553ec | 11 | Version: 0.2002 |
6481c08b | 12 | Release: 1 |
16d8c197 ER |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
442b44d0 | 15 | Group: Development/Languages/Perl |
6481c08b | 16 | Source0: http://www.cpan.org/modules/by-module/Sub/%{pdir}-%{pnam}-%{version}.tar.gz |
a40553ec | 17 | # Source0-md5: 509aedd3b680aea2c7a2fc67b9d5b007 |
6481c08b JB |
18 | URL: http://search.cpan.org/dist/Sub-Uplevel/ |
19 | %{?with_tests:BuildRequires: perl-Test-Simple >= 0.47} | |
65115534 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
fa62a5b3 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
442b44d0 | 22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
7e8d86ee | 26 | Sub::Uplevel Perl module is for apparent running a function in a |
27 | higher stack frame. Like Tcl's uplevel() function, but not quite so | |
28 | dangerous. | |
442b44d0 | 29 | |
a853f9f5 JR |
30 | %description -l pl.UTF-8 |
31 | Moduł Perla Sub::Uplevel umożliwia pozorne uruchomienie funkcji w | |
32 | wyższej ramce stosu. Działa podobnie do funkcji uplevel() Tcl-a, lecz | |
7e8d86ee | 33 | nie jest tak niebezpieczny. |
442b44d0 | 34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
fa62a5b3 | 39 | %{__perl} Makefile.PL \ |
5f5ea8ac | 40 | INSTALLDIRS=vendor |
442b44d0 | 41 | %{__make} |
d9f0d2c4 | 42 | |
43 | %{?with_tests:%{__make} test} | |
442b44d0 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
d9f0d2c4 | 48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
442b44d0 | 50 | |
442b44d0 | 51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
6481c08b JB |
56 | %doc Changes |
57 | %{perl_vendorlib}/Sub/Uplevel.pm | |
994fb458 | 58 | %{_mandir}/man3/*.3pm* |