From 4b5883695a357bebb89884fcc651cc03006542f8 Mon Sep 17 00:00:00 2001 From: alexlan Date: Sat, 24 Mar 2007 23:54:47 +0000 Subject: [PATCH] auto-import perl-Graph-0.81-1 on branch devel from perl-Graph-0.81-1.src.rpm --- Makefile | 21 ++++++++++++++ perl-Graph.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 95 insertions(+) create mode 100644 Makefile create mode 100644 perl-Graph.spec create mode 100644 sources diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..879ce1b --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: perl-Graph +# $Id$ +NAME := perl-Graph +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-Graph.spec b/perl-Graph.spec new file mode 100644 index 0000000..8681dab --- /dev/null +++ b/perl-Graph.spec @@ -0,0 +1,73 @@ +Name: perl-Graph +Version: 0.81 +Release: 1%{?dist} +Summary: A Perl module for dealing with graphs, the abstract data structures + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Graph/ +Source0: http://www.cpan.org/authors/id/J/JH/JHI/Graph-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(Heap) +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This is Graph, a Perl module for dealing with graphs, the abstract +data structures. + +This is a full rewrite of the Graph module 0.2xx series as discussed +in the book "Mastering Algorithms with Perl", written by Jarkko +Hietaniemi (the undersigned), John Macdonald, and Jon Orwant, +and published by O'Reilly and Associates. This rewrite is not +fully compatible with the 0.2xx series. + + +%prep +%setup -q -n Graph-%{version} + +# avoid extra dependencies +chmod 644 util/cover.sh + + +%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 -a \( -name .packlist \ + -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' + + +%check || : +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README RELEASE DESIGN Changes TODO util +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + + +%changelog +* Wed Mar 23 2007 Alex Lancaster 0.81-1 +- Update to 0.81 + +* Wed Apr 06 2005 Hunter Matthews 0.59-2 +- Review suggestions from José Pedro Oliveira + +* Fri Mar 18 2005 Hunter Matthews 0.59-1 +- Initial Packageing. + + diff --git a/sources b/sources new file mode 100644 index 0000000..807802f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +8400bd615c74de11644746709cbe7fe3 Graph-0.81.tar.gz