Name: perl-XXX Version: 0.12 Release: 4%{?dist} Summary: See Your Data in the Nude License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/XXX/ Source0: http://search.cpan.org/CPAN/authors/id/I/IN/INGY/XXX-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(YAML) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description XXX.pm exports a function called XXX that you can put just about anywhere in your Perl code to make it die with a YAML dump of the arguments to its right. The charm of XXX-debugging is that it is easy to type and rarely requires parens and stands out visually so that you remember to remove it. XXX.pm also exports WWW, YYY and ZZZ which do similar debugging things. To use Data::Dumper instead of YAML: use XXX -dumper; %prep %setup -q -n XXX-%{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 -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; iconv -f iso8859-1 -t utf-8 < README > README.z mv README.z README %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Dec 7 2009 Stepan Kasal - 0.12-4 - rebuild against perl 5.10.1 * Sun Jul 26 2009 Fedora Release Engineering - 0.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Apr 22 2009 Marcela Mašláňová 0.12-2 - add BR Test::More and ExtUtils::MakeMaker * Tue Apr 14 2009 Marcela Mašláňová 0.12-1 - initial packaging