]> git.pld-linux.org Git - SPECS.git/blob - perl-Mail-MboxParser.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-Mail-MboxParser.spec
1
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Mail
6 %define         pnam    MboxParser
7 Summary:        Mail::MboxParser - read-only access to UNIX-mailboxes
8 Summary(pl.UTF-8):      Mail::MboxParser - dostęp w trybie odczytu do uniksowych skrzynek pocztowych
9 Name:           perl-Mail-MboxParser
10 Version:        0.55
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Mail/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  1b9fdb367db36ec94e7b5c6721f11221
17 URL:            http://search.cpan.org/dist/Mail-MboxParser/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(MIME::QuotedPrint)
22 BuildRequires:  perl-MIME-tools >= 5.0
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This module attempts to provide a simplified access to standard
29 UNIX-mailboxes. It offers only a subset of methods to get 'straight to
30 the point'. More sophisticated things can still be done by invoking
31 any method from MIME::Tools on the appropriate return values.
32
33 %description -l pl.UTF-8
34 Ten moduł próbuje dać uproszczony dostęp do standardowych uniksowych
35 skrzynek pocztowych. Oferuje tylko podzbiór metod. Bardziej wymyśle
36 rzeczy nadal można robić wywołując dowolną metodę z MIME::Tools na
37 właściwych wartościach zwróconych przez ten moduł.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 install -d $RPM_BUILD_ROOT%{_examplesdir}
56 cp -r eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changelog README
64 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}
65 %{perl_vendorlib}/Mail/*.pm
66 %{perl_vendorlib}/Mail/MboxParser
67 %{_mandir}/man3/*
This page took 0.216075 seconds and 3 git commands to generate.