Chris Weyl 63106c4
# Note:  The tests for this perl dist. are disabled by default, as they
Chris Weyl 63106c4
# require network access and would thus fail in the buildsys' mock
Chris Weyl 63106c4
# environments.  To build locally while enabling tests, either:
Chris Weyl 4c09931
#
Chris Weyl 4c09931
#   rpmbuild ... --define '_with_network_tests 1' ...
Chris Weyl 4c09931
#   rpmbuild ... --with network_tests ...
Chris Weyl 4c09931
#   define _with_network_tests 1 in your ~/.rpmmacros
Chris Weyl 4c09931
#
Chris Weyl 4c09931
# Note that right now, the only way to run tests locally from a cvs sandbox
Chris Weyl 4c09931
# "make noarch" type scenario is the third one.
Chris Weyl 63106c4
Chris Weyl 63106c4
Name:           perl-POE-Component-IRC
Chris Weyl 9233e87
Version:        5.14
Chris Weyl 54cbe07
Release:        1%{?dist}
Chris Weyl 63106c4
Summary:        A POE component for building IRC clients        
Chris Weyl 63106c4
Chris Weyl 63106c4
Group:          Development/Libraries
Chris Weyl 63106c4
License:        Artistic or GPL        
Chris Weyl 63106c4
URL:            http://search.cpan.org/dist/POE-Component-IRC            
Chris Weyl 63106c4
Source0: http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz        
Chris Weyl 63106c4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Chris Weyl 63106c4
Chris Weyl 63106c4
BuildArch:      noarch
Chris Weyl 63106c4
BuildRequires:  perl
Chris Weyl 63106c4
BuildRequires:  perl(POE), perl(POE::Component::Client::DNS)
Chris Weyl 4cf10fe
BuildRequires:  perl(POE::Filter::IRCD), perl(POE::Filter::Zlib::Stream)
Chris Weyl 62a37c9
BuildRequires:  perl(Test::Pod::Coverage), perl(Test::Pod)
Chris Weyl 63106c4
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl 63106c4
Chris Weyl 63106c4
%description
Chris Weyl 63106c4
POE::Component::IRC is a POE component (who'd have guessed?) which acts as an
Chris Weyl 63106c4
easily controllable IRC client for your other POE components and sessions. You
Chris Weyl 63106c4
create an IRC component and tell it what events your session cares about and
Chris Weyl 63106c4
where to connect to, and it sends back interesting IRC events when they
Chris Weyl 63106c4
happen. You make the client do things by sending it events. That's all there
Chris Weyl 63106c4
is to it. Cool, no?
Chris Weyl 63106c4
Chris Weyl 63106c4
Chris Weyl 63106c4
%prep
Chris Weyl 63106c4
%setup -q -n POE-Component-IRC-%{version}
Chris Weyl 63106c4
Chris Weyl 63106c4
# Funky permissions...
Chris Weyl 63106c4
%{_fixperms} *
Chris Weyl 63106c4
chmod -x Changes README examples/*
Chris Weyl 63106c4
Chris Weyl 63106c4
%build
Chris Weyl 63106c4
%{__perl} Makefile.PL INSTALLDIRS=vendor
Chris Weyl 63106c4
make %{?_smp_mflags}
Chris Weyl 63106c4
Chris Weyl 63106c4
Chris Weyl 63106c4
%install
Chris Weyl 63106c4
rm -rf %{buildroot}
Chris Weyl 62a37c9
Chris Weyl 63106c4
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Chris Weyl 63106c4
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
Chris Weyl 63106c4
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
Chris Weyl 62a37c9
Chris Weyl 62a37c9
%{_fixperms} %{buildroot}/*
Chris Weyl 63106c4
Chris Weyl 63106c4
# remove errant execute bit from the .pm's
Chris Weyl 63106c4
find %{buildroot} -type f -name '*.pm' -exec chmod -x {} 2>/dev/null ';'
Chris Weyl 63106c4
Chris Weyl 63106c4
Chris Weyl 63106c4
%check
Chris Weyl 63106c4
# tests require network access, disabled by default
Chris Weyl 4c09931
%{?_with_network_tests:make test}
Chris Weyl 63106c4
Chris Weyl 63106c4
Chris Weyl 63106c4
%clean
Chris Weyl 63106c4
rm -rf %{buildroot}
Chris Weyl 63106c4
Chris Weyl 63106c4
Chris Weyl 63106c4
%files
Chris Weyl 63106c4
%defattr(-,root,root,-)
Chris Weyl 1d439dd
%doc Changes README* docs/ examples/
Chris Weyl 63106c4
%{perl_vendorlib}/*
Chris Weyl 63106c4
%{_mandir}/man3/*.3*
Chris Weyl 63106c4
Chris Weyl 63106c4
Chris Weyl 63106c4
%changelog
Chris Weyl 9233e87
* Tue Dec 05 2006 Chris Weyl <cweyl@alumni.drew.edu> 5.14-1
Chris Weyl 9233e87
- update to 5.14
Chris Weyl 9233e87
Chris Weyl 0067878
* Sun Oct 22 2006 Chris Weyl <cweyl@alumni.drew.edu> 5.07-1
Chris Weyl 0067878
- update to 5.07
Chris Weyl 0067878
Chris Weyl 1d439dd
* Tue Oct 10 2006 Chris Weyl <cweyl@alumni.drew.edu> 5.05-1
Chris Weyl 1d439dd
- update to 5.05
Chris Weyl 1d439dd
- scratched head in confusion at versions in the last few changelogs
Chris Weyl 1d439dd
Chris Weyl 2d4e095
* Fri Sep 29 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.54-1
Chris Weyl 2d4e095
- update to 0.54
Chris Weyl 2d4e095
Chris Weyl 4cf10fe
* Sun Sep 17 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.53-1
Chris Weyl 4cf10fe
- update to 0.53
Chris Weyl 4cf10fe
- add br: perl(POE::Filter::Zlib::Stream)
Chris Weyl 4cf10fe
Chris Weyl 9e311c3
* Sun Sep 10 2006 Chris Weyl <cweyl@alumni.drew.edu> 5.02-1
Chris Weyl 9e311c3
- update to 5.02
Chris Weyl 9e311c3
Chris Weyl 62a37c9
* Fri Sep 01 2006 Chris Weyl <cweyl@alumni.drew.edu> 5.00-1
Chris Weyl 62a37c9
- update to 5.00
Chris Weyl 62a37c9
- add br on Test::Pod, Test::Pod::Coverage, which are now used
Chris Weyl 62a37c9
- minor spec tweaks, mostly cosmetic
Chris Weyl 62a37c9
Chris Weyl ef7407f
* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 4.99-1
Chris Weyl ef7407f
- rebuild per mass rebuild
Chris Weyl ef7407f
- update to 4.99
Chris Weyl ef7407f
Chris Weyl 18c143c
* Tue Aug 22 2006 Chris Weyl <cweyl@alumni.drew.edu> 4.98-1
Chris Weyl 18c143c
- update to 4.98
Chris Weyl 18c143c
Chris Weyl 54cbe07
* Tue Jul 25 2006 Chris Weyl <cweyl@alumni.drew.edu> 4.97-1
Chris Weyl 54cbe07
- update to 4.97
Chris Weyl 54cbe07
Chris Weyl 4c09931
* Sat Jul 22 2006 Chris Weyl <cweyl@alumni.drew.edu> 4.96-3
Chris Weyl 4c09931
- Fix typo, add more verbage
Chris Weyl 4c09931
Chris Weyl 41dbd77
* Fri Jul 21 2006 Chris Weyl <cweyl@alumni.drew.edu> 4.96-2
Chris Weyl 41dbd77
- bump for f-e build
Chris Weyl 41dbd77
- rework conditionals around testing to... well, work :)
Chris Weyl 41dbd77
Chris Weyl 63106c4
* Thu Jul 20 2006 Chris Weyl <cweyl@alumni.drew.edu> 4.96-1
Chris Weyl 63106c4
- snip lines
Chris Weyl 63106c4
Chris Weyl 63106c4
* Mon Jul 17 2006 Chris Weyl <cweyl@alumni.drew.edu> 4.96-0
Chris Weyl 63106c4
- updated to version 4.96
Chris Weyl 63106c4
- Dropped the licensing conversation as the documentation (README, pods) were
Chris Weyl 63106c4
  updated to include it
Chris Weyl 63106c4
- Added optional framework around test suite, rather than just disabling
Chris Weyl 63106c4
Chris Weyl 63106c4
* Thu Jul 13 2006 Chris Weyl <cweyl@alumni.drew.edu> 4.95-0
Chris Weyl 63106c4
- Initial spec file for F-E