[5803] | 1 | Name: perl-POE-Test-Loops |
---|
| 2 | Summary: Reusable tests for POE::Loop authors |
---|
| 3 | Version: 1.350 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | License: GPL+ or Artistic |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | Source0: http://search.cpan.org/CPAN/authors/id/R/RC/RCAPUTO/POE-Test-Loops-%{version}.tar.gz |
---|
| 8 | URL: http://search.cpan.org/dist/POE-Test-Loops |
---|
| 9 | BuildArch: noarch |
---|
| 10 | BuildRequires: perl(constant) |
---|
| 11 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 12 | BuildRequires: perl(File::Path) |
---|
| 13 | BuildRequires: perl(File::Spec) |
---|
| 14 | BuildRequires: perl(File::Temp) |
---|
| 15 | BuildRequires: perl(IO::Handle) |
---|
| 16 | BuildRequires: perl(IO::Socket) |
---|
| 17 | BuildRequires: perl(IO::Socket::INET) |
---|
| 18 | BuildRequires: perl(POE) |
---|
| 19 | BuildRequires: perl(Socket) |
---|
| 20 | BuildRequires: perl(Test::More) >= 0.94 |
---|
| 21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 22 | |
---|
| 23 | %if %{_dist_release} > "vl6" |
---|
| 24 | %global __provides_exclude %{?__provides_exclude:__requires_exclude|}^perl\\(POE::MySession\\) |
---|
| 25 | %global __provides_exclude %__provides_exclude|perl\\(POE::Kernel\\) |
---|
| 26 | %global __provides_exclude %__provides_exclude|perl\\(PoeTestWorker\\) |
---|
| 27 | %global __provides_exclude %__provides_exclude|perl\\([DIFMOSU].*\\) |
---|
| 28 | %global __provides_exclude %__provides_exclude|perl\\(Switch\\) |
---|
| 29 | %endif |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | POE::Test::Loops contains one function, generate(), which will generate |
---|
| 33 | all the loop tests for one or more POE::Loop subclasses. The SYNOPSIS |
---|
| 34 | example is a version of poe-gen-tests, which is a stand-alone utility |
---|
| 35 | to generate the actual tests. The poe-gen-tests manual page also documents |
---|
| 36 | the POE::Test::Loops system in more detail. |
---|
| 37 | |
---|
| 38 | %prep |
---|
| 39 | %setup -q -n POE-Test-Loops-%{version} |
---|
| 40 | find . -type f -exec chmod -c -x {} ';' |
---|
| 41 | |
---|
| 42 | %if %{_dist_release} <= "vl6" |
---|
| 43 | cat << \EOF > %{name}-prov |
---|
| 44 | #!/bin/sh |
---|
| 45 | %{__perl_provides} $* |\ |
---|
| 46 | sed -e '/perl(POE::MySession)/d' |\ |
---|
| 47 | sed -e '/perl(POE::Kernel)/d' |\ |
---|
| 48 | sed -e '/perl(PoeTestWorker)/d' |\ |
---|
| 49 | sed -e '/perl([DIFMOSU].*)/d' |\ |
---|
| 50 | sed -e '/perl(Switch)/d' |
---|
| 51 | EOF |
---|
| 52 | |
---|
| 53 | %global __perl_provides %{_builddir}/POE-Test-Loops-%{version}/%{name}-prov |
---|
| 54 | chmod +x %{__perl_provides} |
---|
| 55 | %endif |
---|
| 56 | |
---|
| 57 | %build |
---|
| 58 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 59 | make %{?_smp_mflags} |
---|
| 60 | |
---|
| 61 | %install |
---|
| 62 | make pure_install DESTDIR=%{buildroot} |
---|
| 63 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 64 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
| 65 | %{_fixperms} %{buildroot}/* |
---|
| 66 | |
---|
| 67 | %check |
---|
| 68 | make test |
---|
| 69 | |
---|
| 70 | %files |
---|
| 71 | %doc CHANGES README |
---|
| 72 | %{perl_vendorlib}/* |
---|
| 73 | %{_mandir}/man3/*.3* |
---|
| 74 | %{_bindir}/poe-gen-tests |
---|
| 75 | %{_mandir}/man1/poe-gen-tests.1.gz |
---|
| 76 | |
---|
| 77 | %changelog |
---|
| 78 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.350-2 |
---|
| 79 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 80 | |
---|
| 81 | * Wed Dec 21 2011 Petr Šabata <contyk@redhat.com> - 1.350-1 |
---|
| 82 | - 1.350 bump |
---|
| 83 | |
---|
| 84 | * Fri Aug 5 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.312-2 |
---|
| 85 | - filter also Switch from provides, just to be sure |
---|
| 86 | |
---|
| 87 | * Wed Jul 27 2011 Petr Sabata <contyk@redhat.com> - 1.312-1 |
---|
| 88 | - 1.312 bump (needed by current POE) |
---|
| 89 | - Drop Buildroot and defattr support |
---|
| 90 | - Fix dependencies a bit |
---|
| 91 | - Add RPM 4.9 style filters |
---|
| 92 | - Filter POE::Kernel and PoeTestWorker from Provides |
---|
| 93 | |
---|
| 94 | * Thu Jun 16 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.035-4 |
---|
| 95 | - Perl mass rebuild |
---|
| 96 | |
---|
| 97 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.035-3 |
---|
| 98 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 99 | |
---|
| 100 | * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.035-2 |
---|
| 101 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
| 102 | |
---|
| 103 | * Mon Jun 7 2010 Petr Pisar <ppisar@redhat.com> - 1.035-1 |
---|
| 104 | - 1.035 bump |
---|
| 105 | - Orthography fix in description |
---|
| 106 | |
---|
| 107 | * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.033-2 |
---|
| 108 | - Mass rebuild with perl-5.12.0 |
---|
| 109 | |
---|
| 110 | * Sun Mar 14 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.033-1 |
---|
| 111 | - update by Fedora::App::MaintainerTools 0.006 |
---|
| 112 | - PERL_INSTALL_ROOT => DESTDIR |
---|
| 113 | - updating to latest GA CPAN version (1.033) |
---|
| 114 | |
---|
| 115 | * Sun Sep 27 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.022-1 |
---|
| 116 | - update filtering |
---|
| 117 | - auto-update to 1.022 (by cpan-spec-update 0.01) |
---|
| 118 | |
---|
| 119 | * Tue Aug 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.021-1 |
---|
| 120 | - auto-update to 1.021 (by cpan-spec-update 0.01) |
---|
| 121 | |
---|
| 122 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.005-2 |
---|
| 123 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 124 | |
---|
| 125 | * Fri Apr 10 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.005-1 |
---|
| 126 | - update for submission |
---|
| 127 | |
---|
| 128 | * Fri Apr 10 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.005-0 |
---|
| 129 | - initial RPM packaging |
---|
| 130 | - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8) |
---|