]> git.pld-linux.org Git - packages/perl-Net-IMAP-Client.git/blob - perl-Net-IMAP-Client.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Net-IMAP-Client.git] / perl-Net-IMAP-Client.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Net
6 %define pnam    IMAP-Client
7 Summary:        Net::IMAP::Client - Not so simple IMAP client library
8 Summary(pl.UTF-8):      Net::IMAP::Client - Nie tak prosta biblioteka kliencka protokołu IMAP
9 Name:           perl-Net-IMAP-Client
10 Version:        0.93
11 Release:        1
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  ebf441fc74abd4ed95446e7de4b4dcd9
16 URL:            http://search.cpan.org/dist/Net-IMAP-Client/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-IO-Socket-SSL
21 BuildRequires:  perl-List-MoreUtils
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Net::IMAP::Client provides methods to access an IMAP server. It aims
28 to provide a simple and clean API, while employing a rigorous parser
29 for IMAP responses in order to create Perl data structures from them.
30 The code is simple, clean and extensible.
31
32 %description -l pl.UTF-8
33 Net::IMAP::Client dostarcza metody dostępu do serwerów IMAP. Zamiarem
34 biblioteki jest zapewnić proste API.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} pure_install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc Changes README
58 %{perl_vendorlib}/Net/IMAP/*.pm
59 %{perl_vendorlib}/Net/IMAP/Client
60 %{_mandir}/man3/*
This page took 0.100381 seconds and 4 git commands to generate.