You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.7 KiB
65 lines
1.7 KiB
19 years ago
|
Name: perl-Heap
|
||
|
Version: 0.71
|
||
|
Release: 2%{?dist}
|
||
|
Summary: Perl extension for keeping data partially sorted
|
||
|
|
||
|
Group: Development/Libraries
|
||
|
License: Artistic or GPL
|
||
|
URL: http://search.cpan.org/dist/Heap
|
||
|
Source0: http://search.cpan.org/CPAN/authors/id/J/JM/JMM/Heap-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: perl
|
||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||
|
|
||
|
%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 Heap-%{version}
|
||
|
|
||
|
|
||
|
%build
|
||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
||
|
|
||
|
|
||
|
%check
|
||
|
make test
|
||
|
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc Changes README
|
||
|
%{perl_vendorlib}/*
|
||
|
%{_mandir}/man3/*.3*
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Tue Jul 18 2006 Patrice Dumas <pertusus@free.fr> 0.71-2
|
||
|
- Initial packaging
|