%define module Tree-DAG_Node %define name perl-%{module} %define version 1.05 %define release %mkrel 3 Name: %{name} Version: %{version} Release: %{release} Summary: Class for representing nodes in a tre License: GPL or Artistic Group: Development/Perl Source: http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} BuildRoot: %{_tmppath}/%{name}-%{version} %if %{mdkversion} < 1010 Buildrequires: perl-devel %endif Buildarch: noarch %description This class encapsulates/makes/manipulates objects that represent nodes in a tree structure. The tree structure is not an object itself, but is emergent from the linkages you create between nodes. This class provides the methods for making linkages that can be used to build up a tree, while preventing you from ever making any kinds of linkages which are not allowed in a tree (such as having a node be its own mother or ancestor, or having a node have two mothers). %prep %setup -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %install rm -rf %{buildroot} %makeinstall_std %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc ChangeLog README %{perl_vendorlib}/Tree %{_mandir}/*/* %changelog * Mon Apr 03 2006 Buchan Milne <bgmilne@mandriva.org> 1.05-3mdk - Rebuild - use mkrel * Tue Jun 07 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.05-2mdk - don't ship useless empty directories - make test in %%check * Mon Apr 25 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.05-1mdk - new release - spec cleanup - better url * Mon Dec 20 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.04-3mdk - fix buildrequires in a backward compatible way * Fri Jul 23 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.04-2mdk - rpmbuildupdate aware * Mon Jan 05 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.04-1mdk - first mdk release