3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Component-IRC
8 Summary: POE::Component::IRC - a fully event-driven IRC client module
9 Summary(pl): POE::Component::IRC - modu³ w pe³ni sterowanego zdarzeniami klienta IRC
10 Name: perl-POE-Component-IRC
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: f35b9b619991ac3eae7dacda06455d31
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-POE >= 0.06_07
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 POE::Component::IRC is a POE component (who'd have guessed?) which
28 acts as an easily controllable IRC client for your other POE
29 components and sessions. You create an IRC component and tell it what
30 events your session cares about and where to connect to, and it sends
31 back interesting IRC events when they happen. You make the client do
32 things by sending it events. That's all there is to it. Cool, no?
35 POE::Component::IRC to komponent POE (któ¿by zgad³?), który
36 funkcjonuje jako ³atwo sterowalny klient IRC dla innych komponentów i
37 sesji POE. Tworzy siê komponent IRC i mówi mu, którymi zdarzeniami
38 zajmuje siê sesja oraz gdzie ma siê po³±czyæ, a on wysy³a z powrotem
39 interesuj±ce zdarzenia IRC, kiedy wyst±pi±. Poprzez wysy³anie zdarzeñ
40 powoduje siê, ¿e klient wykonuje ró¿ne rzeczy. To wszystko, co trzeba
44 %setup -q -n %{pdir}-%{pnam}-%{version}
45 mkdir -p lib/POE/{Component,Filter}
46 mv Filter-CTCP.pm lib/POE/Filter/CTCP.pm
47 mv Filter-IRC.pm lib/POE/Filter/IRC.pm
48 mv IRC.pm lib/POE/Component/IRC.pm
51 %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"POE::Component::IRC")' \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_examplesdir}
64 cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %{perl_vendorlib}/%{pdir}/*/*.pm
73 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}