%define module Heap %define name perl-%{module} %define version 0.50 %define release 1mdk Name: %{name} Version: %{version} Release: %{release} Summary: %{module} module for perl License: GPL or Artistic Group: Development/Perl Source: %{module}-%{version}.tar.bz2 Url: http://www.cpan.org BuildRequires: perl-devel BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-root %description The Heap collection of modules provide routines that manage a heap of elements. A heap is a partially sorted structure that is always able to easily extract the smallest of the elements in the structure (or the largest if a reversed compare routine is provided). If the collection of elements is changing dynamically, the heap has less overhead than keeping the collection fully sorted. The elements must be objects as described in "Heap::Elem" and all elements inserted into one heap must be mutually compatible - either the same class exactly or else classes that differ only in ways unrelated to the Heap::Elem interface. %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT %makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix} %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/%{module}.pm %{perl_vendorlib}/%{module} %{perl_vendorlib}/auto/%{module} %{_mandir}/*/* %changelog * Fri Feb 28 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 0.50-1mdk - first mdk release