parent
1f67ed7687
commit
05a5362f67
@ -0,0 +1 @@
|
|||||||
|
Heap-0.71.tar.gz
|
@ -0,0 +1,21 @@
|
|||||||
|
# Makefile for source rpm: perl-Heap
|
||||||
|
# $Id: Makefile,v 1.1 2005/04/11 22:39:35 spot Exp $
|
||||||
|
NAME := perl-Heap
|
||||||
|
SPECFILE = $(firstword $(wildcard *.spec))
|
||||||
|
|
||||||
|
define find-makefile-common
|
||||||
|
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||||
|
|
||||||
|
ifeq ($(MAKEFILE_COMMON),)
|
||||||
|
# attept a checkout
|
||||||
|
define checkout-makefile-common
|
||||||
|
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(MAKEFILE_COMMON)
|
@ -0,0 +1,65 @@
|
|||||||
|
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 f -name '*.bs' -a -size 0 -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
|
Loading…
Reference in new issue