From 35a46145d0514ec206a5002452fcbcdfb1bc86d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Fri, 24 Apr 2009 06:08:42 +0000 Subject: [PATCH] - add BR Test::More and ExtUtils::MakeMaker --- .cvsignore | 1 + perl-XXX.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 perl-XXX.spec diff --git a/.cvsignore b/.cvsignore index e69de29..16a0108 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +XXX-0.12.tar.gz diff --git a/perl-XXX.spec b/perl-XXX.spec new file mode 100644 index 0000000..c7c7245 --- /dev/null +++ b/perl-XXX.spec @@ -0,0 +1,67 @@ +Name: perl-XXX +Version: 0.12 +Release: 2%{?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 +* 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 diff --git a/sources b/sources index e69de29..e2767b3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9bc0f06321ed4a8b1315ab0be7afaf48 XXX-0.12.tar.gz