Name: perl-Data-TreeDumper-Renderer-GTK Version: 0.02 Release: 2%{?dist} # see GTK.pm License: GPL+ or Artistic Group: Development/Libraries Summary: Gtk2::TreeView renderer for Data::TreeDumper Source: http://search.cpan.org/CPAN/authors/id/N/NK/NKH/Data-TreeDumper-Renderer-GTK-%{version}.tar.gz Url: http://search.cpan.org/dist/Data-TreeDumper-Renderer-GTK BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Cairo) BuildRequires: perl(Data::TreeDumper) >= 0.33 BuildRequires: perl(Glib) BuildRequires: perl(Gtk2) BuildRequires: perl(Term::Size) # not picked up due to use base Requires: perl(Gtk2::TreeView) %description GTK-perl renderer for *Data::TreeDumper*. This widget is the gui equivalent of Data::TreeDumper; it will display a perl data structure in a TreeView, allowing you to fold and unfold child data structures and get a quick feel for what's where. Right-clicking anywhere in the view brings up a context menu, from which the user can choose to expand or collapse all items. %prep %setup -q -n Data-TreeDumper-Renderer-GTK-%{version} find . -type f -exec chmod -c -x {} + %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* find %{buildroot} -type f -name '*.pl' -exec rm -v {} + %check %{?_with_display_tests: make test } %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README Changes gtk_test.pl %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Mon Dec 08 2008 Chris Weyl 0.02-2 - add br perl(Term::Size) - only enable tests when _with_display_tests; they require $DISPLAY * Sat Nov 29 2008 Chris Weyl 0.02-1 - update for submission * Sat Nov 29 2008 Chris Weyl 0.02-0.1 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)