From d90ac18d204d0f8d2c396efb3b75085a0c563c5b Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Wed, 10 May 2006 17:25:33 +0000 Subject: [PATCH] auto-import perl-Test-Cmd-1.05-1 on branch devel from perl-Test-Cmd-1.05-1.src.rpm --- .cvsignore | 1 + perl-Test-Cmd.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 perl-Test-Cmd.spec diff --git a/.cvsignore b/.cvsignore index e69de29..247d91e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-Cmd-1.05.tar.gz diff --git a/perl-Test-Cmd.spec b/perl-Test-Cmd.spec new file mode 100644 index 0000000..9965bc6 --- /dev/null +++ b/perl-Test-Cmd.spec @@ -0,0 +1,57 @@ +Name: perl-Test-Cmd +Version: 1.05 +Release: 1%{?dist} +Summary: Perl module for portable testing of commands and scripts + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Test-Cmd/ +Source0: http://www.cpan.org/authors/id/K/KN/KNIGHT/Test-Cmd-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(Algorithm::DiffOld) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Algorithm::DiffOld) + +%description +The Test::Cmd module provides a framework for portable automated testing +of executable commands and scripts (in any language, not just Perl), +especially commands and scripts that interace with the file system. + + +%prep +%setup -q -n Test-Cmd-%{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 -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/Test/ +%{_mandir}/man3/*.3pm* + + +%changelog +* Mon May 01 2006 Jose Pedro Oliveira - 1.05-1 +- First build. diff --git a/sources b/sources index e69de29..2190c36 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +462ed981f09e02a5d9bdfb309425ede0 Test-Cmd-1.05.tar.gz