3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Component-Jabber
8 Summary: POE::Component::Jabber - POE component for accessing Jabber servers
9 Summary(pl.UTF-8): POE::Component::Jabber - komponent POE do dostępu do serwerów Jabbera
10 Name: perl-POE-Component-Jabber
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 75196e23db297a2b07b1d58a866b03d7
17 Patch0: %{name}-const.patch
18 Patch1: %{name}-examples.patch
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Module-Build
23 BuildRequires: perl-Digest-SHA1 >= 2.11
24 BuildRequires: perl-Jabber-Connection >= 0.02
25 BuildRequires: perl-POE >= 1:0.3401
26 BuildRequires: perl-POE-Filter-XML >= 0.29
27 BuildRequires: perl-XML-Parser >= 2.29
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 POE::Component::Jabber is heavily based on POE::Component::IRC and
34 uses much the same event model. Authentication routines are inspired
35 by Jabber::Connection.
37 POE::Filter::Jabber is provided which requires XML::Parser and
38 sends and receives data as Jabber::NodeFactory::Node objects.
40 POE::Component::Jabber::Auth implements authentication with the
41 Jabber server. This would be a good module to look at as it
42 does it in much the way an application would interface with
43 POE::Component::Jabber by registering for the IQ event.
45 %description -l pl.UTF-8
46 POE::Component::Jabber jest w dużej części oparty na
47 POE::Component::IRC i używa w większości tego samego modelu. Funkcje
48 uwierzytelniania są inspirowane Jabber::Connection.
50 Dołączony jest POE::Filter::Jabber, wymagający XML::Parser, który
51 wysyła i odbiera dane jako obiekty Jabber::NodeFactory::Node.
53 POE::Component::Jabber::Auth zawiera implementację uwierzytelniania
54 względem serwera Jabbera. To jest dobry moduł do oglądania, jako że
55 robi to podobnie jak aplikacja, która współpracowałaby z
56 POE::Component::Jabber poprzez rejestrację dla zdarzenia IQ.
59 %setup -q -n %{pdir}-%{pnam}-%{version}
60 # rpm problems fixed by following patch
62 # this one allows to run examples on current poe (no POE::Preprocessor)
66 %{__perl} Makefile.PL \
68 destdir=$RPM_BUILD_ROOT
72 %{?with_tests:%{__make} test}
75 rm -rf $RPM_BUILD_ROOT
78 DESTDIR=$RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT%{_examplesdir}
80 cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
87 %{perl_vendorlib}/%{pdir}/*/*.pm
88 %{perl_vendorlib}/%{pdir}/Component/Jabber
89 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}