3 %bcond_with tests # perform "make test" (requires IMAP server)
5 %include /usr/lib/rpm/macros.perl
8 Summary: Net::xAP Perl module - interface to IMAP/ACAP/IMSP/ICAP protocol family
9 Summary(pl.UTF-8): Moduł Perla Net::xAP - interfejs do rodziny protokołów IMAP/ACAP/IMSP/ICAP
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: df6ddaa8dad8d366784bf9a2a1f8eed1
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: perl-Digest-HMAC
20 BuildRequires: perl-MIME-Base64 >= 2.11
21 BuildRequires: rpm-perlprov >= 4.1-13
22 Requires: perl-Digest-MD5 >= 2.01
23 Requires: perl-MIME-Base64 >= 2.11
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module provides an interface to the protocol family represented
29 by IMAP, IMSP, ACAP, and ICAP. A usable IMAP module is also provide.
30 Warning: this is an alpha release!
32 %description -l pl.UTF-8
33 Ten moduł udostępnia interfejs do rodziny protokołów reprezentowanej
34 przez IMAP, IMSP, ACAP i ICAP. Dołączony jest także używalny moduł
35 IMAP. Uwaga: to jest wersja alpha!
38 %setup -q -n %{pdir}%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 DESTDIR=$RPM_BUILD_ROOT
53 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc ANNOUNCE BUGS CREDITS NEWS README TODO
61 %{perl_vendorlib}/Net/*.pm
63 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}