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: 624c4f967479a9a51599b39da89251ca
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-POE >= 0.06_07
22 BuildRequires: perl-POE-Component-Client-DNS >= 1:0.99
23 BuildRequires: perl-POE-Filter-IRCD
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 POE::Component::IRC is a POE component (who'd have guessed?) which
30 acts as an easily controllable IRC client for your other POE
31 components and sessions. You create an IRC component and tell it what
32 events your session cares about and where to connect to, and it sends
33 back interesting IRC events when they happen. You make the client do
34 things by sending it events. That's all there is to it. Cool, no?
37 POE::Component::IRC to komponent POE (któ¿by zgad³?), który
38 funkcjonuje jako ³atwo sterowalny klient IRC dla innych komponentów i
39 sesji POE. Tworzy siê komponent IRC i mówi mu, którymi zdarzeniami
40 zajmuje siê sesja oraz gdzie ma siê po³±czyæ, a on wysy³a z powrotem
41 interesuj±ce zdarzenia IRC, kiedy wyst±pi±. Poprzez wysy³anie zdarzeñ
42 powoduje siê, ¿e klient wykonuje ró¿ne rzeczy. To wszystko, co trzeba
46 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_examplesdir}
63 cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
70 %doc Changes README docs/*
71 %{perl_vendorlib}/POE/Component/IRC.pm
72 %dir %{perl_vendorlib}/POE/Component/IRC
73 %{perl_vendorlib}/POE/Component/IRC/*.pm
74 %dir %{perl_vendorlib}/POE/Component/IRC/Plugin
75 %{perl_vendorlib}/POE/Component/IRC/Plugin/*.pm
76 %dir %{perl_vendorlib}/POE/Component/IRC/Qnet
77 %{perl_vendorlib}/POE/Component/IRC/Qnet/*.pm
78 %dir %{perl_vendorlib}/POE/Component/IRC/Test
79 %{perl_vendorlib}/POE/Component/IRC/Test/*.pm
80 %{perl_vendorlib}/POE/Filter/IRC.pm
81 %{perl_vendorlib}/POE/Filter/CTCP.pm
82 %dir %{perl_vendorlib}/POE/Filter/IRC
83 %{perl_vendorlib}/POE/Filter/IRC/Compat.pm
85 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}