3 %bcond_with tests # perform "make test", tests require network connectivity
7 Summary: Net::XMPP - XMPP Perl library
8 Summary(pl.UTF-8): Net::XMPP - biblioteka Perla XMPP
12 # and somewhere mentioned as "perl itself"
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 6fdfeecde1b7eea1a24413e6557a97e2
17 URL: http://search.cpan.org/dist/Net-XMPP/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-LWP-Online
22 BuildRequires: perl-XML-Stream >= 1.22
23 BuildRequires: perl-YAML-Tiny
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Net::XMPP is a convenient tool to use for any Perl script that would
30 like to utilize the XMPP Instant Messaging protocol. While not a
31 client in and of itself, it provides all of the necessary back-end
32 functions to make a CGI client or command-line perl client feasible
33 and easy to use. Net::XMPP is a wrapper around the rest of the
34 official Net::XMPP::xxxxxx packages.
36 %description -l pl.UTF-8
37 Net::XMPP to wygodne narzędzie do używania w dowolnym skrypcie
38 perlowym mającym używać protokołu XMPP Instant Messaging. O ile
39 biblioteka ta nie jest klientem samym w sobie, dostarcza wszystkich
40 funkcji backendu potrzebnych do zrobienia klienta CGI lub działającego
41 z linii poleceń. Net::XMPP to wrapper dla reszty oficjalnych pakietów
45 %setup -q -n %{pdir}-%{pnam}-%{version}
47 mv t/2_client_jabberd1.4.t t/2_client_jabberd1.4.t_
48 mv t/3_client_jabberd2.t t/3_client_jabberd2.t_
51 %{__perl} Makefile.PL \
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %{perl_vendorlib}/Net/XMPP.pm
71 %{perl_vendorlib}/Net/XMPP