From 6eabf22f0ba5fd95ec4414c8db76e818a3716ce7 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Mon, 11 Apr 2005 22:37:28 +0000 Subject: [PATCH] auto-import perl-Graph-0.59-2 on branch devel from perl-Graph-0.59-2.src.rpm --- .cvsignore | 1 + perl-Graph.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 perl-Graph.spec diff --git a/.cvsignore b/.cvsignore index e69de29..df63fe3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Graph-0.59.tar.gz diff --git a/perl-Graph.spec b/perl-Graph.spec new file mode 100644 index 0000000..547dcec --- /dev/null +++ b/perl-Graph.spec @@ -0,0 +1,68 @@ +Name: perl-Graph +Version: 0.59 +Release: 2 +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-0.59.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +BuildRequires: perl(Heap) +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. (If you were looking for pie charts, I'm sorry.) + +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, simply because I did +not want to carry over all the design flaws and bugs. + + +%prep +%setup -q -n Graph-%{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 -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 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 index e69de29..7666159 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f6d41c31990aa2e88780d25dbb2158cf Graph-0.59.tar.gz