3 %bcond_with tests # perform "make test" (uses network!)
5 %include /usr/lib/rpm/macros.perl
8 Summary: Net::Jabber Perl module - access to the Jabber protocol
9 Summary(pl): Modu³ Perla Net::Jabber - dostêp do protoko³u Jabbera
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 450ac1976c9b9401689227eb75555abe
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: perl-Digest-SHA1 >= 1.02
19 BuildRequires: perl-XML-Stream >= 1.17
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Net::Jabber is a collection of Perl modules that provide a Perl
26 Developer access to the Jabber protocol. Using OOP modules they
27 provide a clean interface to writing anything from a full client to a
28 simple protocol tester.
31 Net::Jabber to zbiór modu³ów Perla daj±cych programi¶cie perlowemu
32 dostêp do protoko³u Jabbera. Zorientowane obiektowo modu³y daj± czysty
33 interfejs do pisania wszystkiego od pe³nego klienta do prostego
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} -pi -e 's/^(use 5.006_)0(01;)(.*)$/$1$2$3/' Jabber/X.pm
41 echo -e "y\ny\ny\n" | perl Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/Net/*