%define module WeakRef %define name perl-%{module} %define version 0.01 %define release 1mdk Name: %{name} Version: %{version} Release: %{release} Summary: An API to the Perl weak references License: GPL or Artistic Group: Development/Perl Source: http://search.cpan.org/CPAN/authors/id/L/LU/LUKKA/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} BuildRoot: %{_tmppath}/%{name}-%{version} Buildrequires: perl-devel %description A patch to Perl 5.005_55 by the author implements a core API for weak references. This module is a Perl-level interface to that API, allowing weak references to be created in Perl. A weak reference is just like an ordinary Perl reference except that it isn't included in the reference count of the thing referred to. This means that once all references to a particular piece of data are weak, the piece of data is freed and all the weak references are set to undef. This is particularly useful for implementing circular data structures without memory leaks or caches of objects. %prep %setup -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{perl_vendorarch}/* %{_mandir}/*/* %changelog * Wed Apr 27 2005 Guillaume Rousse <guillomovitch@mandriva.org> 0.01-1mdk - first mandriva release