3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: WeakRef - an API to the Perl weak references
8 Summary(pl.UTF-8): WeakRef - API do perlowych słabych referencji
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/L/LU/LUKKA/%{pdir}-%{version}.tar.gz
16 # Source0-md5: 3162df7a6eda0dfb44676dd9ebfa3c4c
17 URL: http://search.cpan.org/dist/WeakRef/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 WeakRef - an API to the Perl weak references.
25 %description -l pl.UTF-8
26 WeakRef - API do perlowych słabych referencji.
29 %setup -q -n %{pdir}-%{version}
32 %{__perl} Makefile.PL \
36 OPTIMIZE="%{rpmcflags}"
38 %{?with_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_vendorarch}/*.pm
53 %dir %{perl_vendorarch}/auto/WeakRef/
54 %attr(755,root,root) %{perl_vendorarch}/auto/WeakRef/*.so