]> git.pld-linux.org Git - packages/perl-MIME-Lite-TT.git/blob - perl-MIME-Lite-TT.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-MIME-Lite-TT.git] / perl-MIME-Lite-TT.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    MIME
6 %define         pnam    Lite-TT
7 Summary:        MIME::Lite::TT - TT enabled MIME::Lite wrapper
8 #Summary(pl.UTF-8):     
9 Name:           perl-MIME-Lite-TT
10 Version:        0.02
11 Release:        2
12 License:        unknown
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  82ac8e6dd4b0274ce552d5d2ace23eb4
16 URL:            http://search.cpan.org/dist/MIME-Lite-TT/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl(MIME::Lite)
21 BuildRequires:  perl-Template-Toolkit
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 MIME::Lite::TT is the wrapper of MIME::Lite which enabled
28 Template::Toolkit as a template of email.
29
30 # %description -l pl.UTF-8
31 # TODO
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make}
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} pure_install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes
55 %dir %{perl_vendorlib}/MIME/Lite
56 %{perl_vendorlib}/MIME/Lite/*.pm
57 %{_mandir}/man3/*
This page took 0.315307 seconds and 4 git commands to generate.