diff --git a/.cvsignore b/.cvsignore index e69de29..895d154 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-LongString-0.08.tar.gz diff --git a/perl-Test-LongString.spec b/perl-Test-LongString.spec new file mode 100644 index 0000000..4cfe5c3 --- /dev/null +++ b/perl-Test-LongString.spec @@ -0,0 +1,64 @@ +Name: perl-Test-LongString +Version: 0.08 +Release: 1%{?dist} +Summary: Tests strings for equality +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-LongString/ +Source0: http://www.cpan.org/modules/by-module/Test/Test-LongString-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl + +# Required by the tests +BuildRequires: perl(Test::Builder::Tester) +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +BuildRequires: perl(Test::Pod) >= 1.14 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module provides some drop-in replacements for the string comparison +functions of Test::More, but which are more suitable when you test against +long strings. If you've ever had to search for text in a multi-line string +like an HTML document, or find specific items in binary data, this is the +module for you. + +%prep +%setup -q -n Test-LongString-%{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 f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/Test +%{_mandir}/man3/* + +%changelog +* Thu Aug 11 2005 Ralf Corsepius - 0.08-1 +- FE submission. + +* Thu Aug 11 2005 Ralf Corsepius - 0.07-1 +- FE submission. + +* Tue Mar 22 2005 Ralf Corsepius - 0.07-0.pm.2 +- Initial packman version. +- Update to FE standards. diff --git a/sources b/sources index e69de29..6828b0d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c0906f6abfe4eabf408dfb245b7f589d Test-LongString-0.08.tar.gz