%define module Tree-DAG_Node %define name perl-%{module} %define version 1.06 %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: Class for representing nodes in a tre License: GPL or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/Tree/%{module}-%{version}.tar.gz %if %{mdkversion} < 1010 Buildrequires: perl-devel %endif Buildarch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %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 -q -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 * Wed Jun 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.06-2mdv2009.0 + Revision: 224582 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon Dec 10 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.06-1mdv2008.1 + Revision: 116897 - new version * Sat May 05 2007 Olivier Thauvin <nanardon@mandriva.org> 1.05-4mdv2008.0 + Revision: 23299 - rebuild * 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