]>
Commit | Line | Data |
---|---|---|
b652ca3d | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
8cdbb257 | 4 | |
610a1fab | 5 | %define pdir Convert |
6 | %define pnam TNEF | |
c98c690f | 7 | Summary: Convert::TNEF - Perl module to read TNEF files |
3588a17d | 8 | Summary(pl.UTF-8): Convert::TNEF - moduł Perla do odczytu plików TNEF |
6a55892a | 9 | Name: perl-Convert-TNEF |
33ebc456 | 10 | Version: 0.17 |
daaa772c | 11 | Release: 5 |
c98c690f | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
6a55892a | 14 | Group: Development/Languages/Perl |
e94afcb1 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
61c847eb | 16 | # Source0-md5: 31cddf42fae9495b4a686b17ec68d7e0 |
8cdbb257 | 17 | URL: http://search.cpan.org/dist/Convert-TNEF/ |
f4cb95f5 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
b652ca3d | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | %if %{with tests} | |
6c294153 | 21 | BuildRequires: perl(MIME::Body) >= 4.109 |
8cdbb257 | 22 | BuildRequires: perl-MIME-tools |
b652ca3d | 23 | %endif |
0ff7a88e | 24 | BuildArch: noarch |
6a55892a JR |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
c98c690f | 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. | |
6a55892a | 31 | |
af208f1f JR |
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. | |
7cf1daf2 | 37 | |
6a55892a | 38 | %prep |
45faa63f | 39 | %setup -q -n %{pdir}-%{pnam}-%{version} |
6a55892a JR |
40 | |
41 | %build | |
e76d25bc | 42 | %{__perl} Makefile.PL \ |
45b03d70 | 43 | INSTALLDIRS=vendor |
6a55892a JR |
44 | %{__make} |
45 | ||
b652ca3d | 46 | %{?with_tests:%{__make} test} |
47 | ||
6a55892a JR |
48 | %install |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
b652ca3d | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
6a55892a | 53 | |
6a55892a JR |
54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
9a821b5a | 59 | %doc Changes README |
33ebc456 | 60 | %{_mandir}/man3/* |
e76d25bc | 61 | %{perl_vendorlib}/Convert/TNEF.pm |