Name: perl-POE-Test-Loops Version: 1.005 Release: 1%{?dist} # META.yml, bin/poe-gen-tests -> perl License: GPL+ or Artistic Group: Development/Libraries Summary: Reusable tests for POE::Loop authors Source: http://search.cpan.org/CPAN/authors/id/R/RC/RCAPUTO/POE-Test-Loops-%{version}.tar.gz Url: http://search.cpan.org/dist/POE-Test-Loops BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) %description POE::Test::Loops contains one function, generate(), which will generate all the loop tests for one or more POE::Loop subclasses. The SYNOPSIS example is a version of poe-gen-tests, which is a stand-alone utility to generate the actual tests. The poe-gen-tests manpage also documents the POE::Test::Loops system in more detail. %prep %setup -q -n POE-Test-Loops-%{version} find . -type f -exec chmod -c -x {} ';' # make sure doc/tests don't generate provides # note we first filter out the bits in _docdir... cat << \EOF > %{name}-prov #!/bin/sh %{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` | \ sed -e '/perl([DIFMOSU].*)/d; /perl(POE::MySession)/d' #sed -e '/perl((?!(POE)).*)/d' #perl -p -e '/^(?!POE)/d' EOF %define __perl_provides %{_builddir}/POE-Test-Loops-%{version}/%{name}-prov chmod +x %{__perl_provides} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc CHANGES README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %{_bindir}/poe-gen-tests %{_mandir}/man1/poe-gen-tests.1.gz %changelog * Fri Apr 10 2009 Chris Weyl 1.005-1 - update for submission * Fri Apr 10 2009 Chris Weyl 1.005-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)