From 05a5362f670bfd91038f77abb852e27b7f9b6e54 Mon Sep 17 00:00:00 2001 From: pertusus Date: Tue, 12 Sep 2006 07:28:42 +0000 Subject: [PATCH] resurrect files without sticky tag --- .cvsignore | 1 + Makefile | 21 ++++++++++++++++ perl-Heap.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 88 insertions(+) create mode 100644 .cvsignore create mode 100644 Makefile create mode 100644 perl-Heap.spec create mode 100644 sources diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..b1f08bb --- /dev/null +++ b/.cvsignore @@ -0,0 +1 @@ +Heap-0.71.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..31b9d09 --- /dev/null +++ b/Makefile @@ -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) diff --git a/perl-Heap.spec b/perl-Heap.spec new file mode 100644 index 0000000..368c68a --- /dev/null +++ b/perl-Heap.spec @@ -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 0.71-2 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..e964718 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +6934be7ffe351b3eea844d24a07ebc36 Heap-0.71.tar.gz