Author: agaran Date: Tue Jan 8 09:00:23 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - initial, builds here, rel 1
---- Files affected: SPECS: perl-Data-TreeDumper.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-Data-TreeDumper.spec diff -u /dev/null SPECS/perl-Data-TreeDumper.spec:1.1 --- /dev/null Tue Jan 8 10:00:23 2008 +++ SPECS/perl-Data-TreeDumper.spec Tue Jan 8 10:00:18 2008 @@ -0,0 +1,80 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Data +%define pnam TreeDumper +Summary: Data::TreeDumper - Perl module for dumping data structures. +#Summary(pl): +Name: perl-Data-TreeDumper +Version: 0.33 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-authors/id/N/NK/NKH/Data-TreeDumper-0.33.tar.gz +# Source0-md5: e6ca587679f0961393b1c45a6f92eb0b +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(Devel::Size) >= 0.58 +BuildRequires: perl(Sort::Naturally) +BuildRequires: perl(Term::Size) >= 0.2 +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Data::Dumper and other modules do a great job of dumping data structures. +Their output, however, often takes more brain power to understand than the data +itself. When dumping large amounts of data, the output can be overwhelming and +it can be difficult to see the relationship between each piece of the dumped +data. + +Data::TreeDumper also dumps data in a tree-like fashion but hopefully in a +format more easily understood. + +# %description -l pl +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +mv $RPM_BUILD_ROOT%{perl_vendorlib}/Data/*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/Data/*.pm +%{perl_vendorlib}/auto/Data/TreeDumper/autosplit.ix +%{_mandir}/man3/* +%{_examplesdir}/%{name}-%{version} + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2008-01-08 09:00:18 agaran +- initial, builds here, rel 1 + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
