]>
Commit | Line | Data |
---|---|---|
fc197b71 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
6943d72c | 4 | |
9a4a0aa0 | 5 | %define pdir Devel |
6 | %define pnam WeakRef | |
6943d72c | 7 | %include /usr/lib/rpm/macros.perl |
4e1dc617 | 8 | Summary: Devel::WeakRef - weak references (not reference-counted) |
edae1a31 | 9 | Summary(pl.UTF-8): Devel::WeakRef - słabe odwołania (nie zliczane przez licznik odwołań) |
89222622 | 10 | Name: perl-Devel-WeakRef |
11 | Version: 0.003 | |
291a6a60 | 12 | Release: 11 |
4e1dc617 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
89222622 | 15 | Group: Development/Languages/Perl |
c8434294 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
5d502528 | 17 | # Source0-md5: 090bd51f8be8d0ce9b466f03cb538bed |
fc20f4c9 | 18 | Patch0: %{name}-perl-5.6.patch |
6943d72c | 19 | URL: http://search.cpan.org/dist/Devel-WeakRef/ |
89222622 | 20 | BuildRequires: perl-Test-Helper |
6943d72c ER |
21 | BuildRequires: perl-devel >= 1:5.8.0 |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
89222622 | 23 | Requires: perl-Test-Helper |
3edbaf99 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
89222622 | 25 | |
26 | %description | |
4e1dc617 | 27 | Devel::WeakRef Perl module allows you to use weak references to any |
bd5b6523 | 28 | reference-valued variable (not reference-counted), dereferenced with a |
29 | method call, with a normal scalar dereference, or as part of a hash | |
30 | lookup. | |
89222622 | 31 | |
87cf1b74 JR |
32 | %description -l pl.UTF-8 |
33 | Moduł Perla Devel::WeakRef umożliwia słabe odwołania do dowolnych | |
34 | zmiennych o wartościach referencyjnych (nie są one zliczane przez | |
35 | licznik odwołań). Wyłuskiwanie odbywa się poprzez wywołanie metody ze | |
36 | zwykłym skalarnym wyłuskaniem. Słabe odwołania mogą też być używane | |
37 | jako część przeszukiwania hasha. | |
89222622 | 38 | |
39 | %prep | |
205a7af9 | 40 | %setup -q -n %{pdir}-%{pnam}-%{version} |
fc20f4c9 | 41 | %patch0 -p1 |
89222622 | 42 | |
43 | %build | |
547f520b | 44 | %{__perl} Makefile.PL \ |
1e4c8de5 | 45 | INSTALLDIRS=vendor |
7d95700d | 46 | %{__make} |
89222622 | 47 | |
fc197b71 | 48 | %{?with_tests:%{__make} test} |
49 | ||
89222622 | 50 | %install |
51 | rm -rf $RPM_BUILD_ROOT | |
89222622 | 52 | |
fc197b71 | 53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
89222622 | 55 | |
89222622 | 56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
901aaf19 | 61 | %doc README TODO CHANGES |
547f520b | 62 | %{perl_vendorarch}/Devel/WeakRef.pm |
63 | %dir %{perl_vendorarch}/auto/Devel/WeakRef | |
547f520b | 64 | %attr(755,root,root) %{perl_vendorarch}/auto/Devel/WeakRef/WeakRef.so |
89222622 | 65 | %{_mandir}/man3/* |