- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-MIME-Lite.git] / perl-MIME-Lite.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    MIME
6 %define         pnam    Lite
7 Summary:        MIME::Lite - low-calorie MIME generator
8 Summary(pl.UTF-8):      MIME::Lite - niskokaloryczny generator MIME
9 Name:           perl-MIME-Lite
10 Version:        3.031
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artisric
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  4ff72d8dd5811b8538825fca4b0f133e
17 URL:            http://search.cpan.org/dist/MIME-Lite/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 %if %{with tests}
20 BuildRequires:  perl-Email-Date-Format
21 BuildRequires:  perl-MIME-Types
22 BuildRequires:  perl-Test-Pod >= 1.14
23 BuildRequires:  perl-Test-Pod-Coverage >= 1.08
24 %endif
25 BuildRequires:  perl-libnet
26 BuildRequires:  rpm-perlprov >= 4.1-13
27 Requires:       perl-Email-Date-Format
28 Suggests:       perl-MailTools
29 Suggests:       perl-MIME-Base64
30 Suggests:       perl-MIME-Types
31 BuildArch:      noarch
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 MIME::Lite is a simple, standalone module for generating MIME messages.
36
37 %description -l pl.UTF-8
38 MIME::Lite jest prostym, samodzielnym modułem służącym do generowania
39 wiadomości w formacie MIME.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 PERL_MM_USE_DEFAULT=yes \
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59
60 # package it or not?
61 rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/MIME/changes.pod
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc README contrib
69 %{perl_vendorlib}/MIME/Lite.pm
70 %{_examplesdir}/%{name}-%{version}
71 %{_mandir}/man3/*
This page took 0.128777 seconds and 4 git commands to generate.