]>
Commit | Line | Data |
---|---|---|
63333291 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir HTML | |
6 | %define pnam Quoted | |
63333291 | 7 | Summary: HTML::Quoted - extract structure of quoted HTML mail message |
8 | #Summary(pl.UTF-8): | |
9 | Name: perl-HTML-Quoted | |
4d909f20 | 10 | Version: 0.04 |
63333291 | 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/HTML/%{pdir}-%{pnam}-%{version}.tar.gz | |
4d909f20 | 16 | # Source0-md5: 1624801f0f505e65e8b067816039a296 |
63333291 | 17 | # generic URL, check or change before uncommenting |
f1b68cd5 | 18 | URL: http://search.cpan.org/dist/HTML-Quoted/ |
63333291 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-HTML-Parser >= 3.0 | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Parses and extracts quotation structure out of a HTML message. | |
29 | Purpose and returned structures are very similar to | |
30 | Text::Quoted. | |
31 | ||
32 | ||
33 | ||
34 | # %description -l pl.UTF-8 | |
35 | # TODO | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} pure_install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README | |
59 | %{perl_vendorlib}/HTML/*.pm | |
60 | %{_mandir}/man3/* |