diff --git a/.cvsignore b/.cvsignore index e69de29..939b12e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Carp-Always-0.09.tar.gz diff --git a/perl-Carp-Always.spec b/perl-Carp-Always.spec new file mode 100644 index 0000000..f3f663c --- /dev/null +++ b/perl-Carp-Always.spec @@ -0,0 +1,69 @@ +Name: perl-Carp-Always +Version: 0.09 +Release: 2%{?dist} +Summary: Warn and die in Perl noisily with stack backtraces +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Carp-Always/ +Source0: http://www.cpan.org//authors/id/F/FE/FERREIRA/Carp-Always-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::Base) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) >= 1.18 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module is meant as a debugging aid. It can be used to make a script +complain loudly with stack backtraces when warn()ing or die()ing. + + +%prep +%setup -q -n Carp-Always-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +# Recode +iconv -f iso8859-1 -t utf8 README >README.utf8 +touch -r README README.utf8 +mv README.utf8 README + + +%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 \; + +%{_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 +* Fri Jul 23 2010 Lubomir Rintel (Good Data) 0.09-2 +- Recode README (manuel wolfshant) + +* Thu Dec 03 2009 Lubomir Rintel (Good Data) 0.09-1 +- Specfile autogenerated by cpanspec 1.78. +- Fixed up deps diff --git a/sources b/sources index e69de29..01e170e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fbe35d97b541240f4fddd3fa3b9da467 Carp-Always-0.09.tar.gz