]> git.pld-linux.org Git - packages/perl-Convert-TNEF.git/blob - perl-Convert-TNEF.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Convert-TNEF.git] / perl-Convert-TNEF.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Convert
6 %define         pnam    TNEF
7 Summary:        Convert::TNEF - Perl module to read TNEF files
8 Summary(pl.UTF-8):      Convert::TNEF - moduł Perla do odczytu plików TNEF
9 Name:           perl-Convert-TNEF
10 Version:        0.17
11 Release:        5
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  31cddf42fae9495b4a686b17ec68d7e0
17 URL:            http://search.cpan.org/dist/Convert-TNEF/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(MIME::Body) >= 4.109
22 BuildRequires:  perl-MIME-tools
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 TNEF stands for Transport Neutral Encapsulation Format, and if you've
29 ever been unfortunate enough to receive one of these files as an email
30 attachment, you may want to use the Convert::TNEF Perl module.
31
32 %description -l pl.UTF-8
33 TNEF oznacza niezależny od transportu format enkapsulacji (Transport
34 Neutral Encapsulation Format) i jeśli otrzyma się jeden z takich
35 plików jako załącznik w e-mailu, może zaistnieć potrzeba posłużenia
36 się modułem Perla Convert::TNEF.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %{_mandir}/man3/*
61 %{perl_vendorlib}/Convert/TNEF.pm
This page took 0.069462 seconds and 4 git commands to generate.