]>
Commit | Line | Data |
---|---|---|
42f0d08a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir IO | |
6 | %define pnam HTML | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: IO::HTML - Open an HTML file with automatic charset detection | |
9 | Summary(pl.UTF-8): IO::HTML - otwieranie pliku HTML z automatycznym wykrywaniem zestawu znaków | |
10 | Name: perl-IO-HTML | |
b70ea4d5 | 11 | Version: 1.001 |
42f0d08a JB |
12 | Release: 1 |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz | |
b70ea4d5 | 17 | # Source0-md5: 3f8958718844dc96b9f6946f21d70d22 |
42f0d08a JB |
18 | URL: http://search.cpan.org/dist/IO-HTML/ |
19 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.30 | |
20 | BuildRequires: perl-devel >= 1:5.8.0 | |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
22 | %if %{with tests} | |
23 | BuildRequires: perl(Exporter) >= 5.57 | |
24 | BuildRequires: perl-Encode >= 2.10 | |
25 | BuildRequires: perl-Test-Simple >= 0.88 | |
26 | %endif | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | IO::HTML provides an easy way to open a file containing HTML while | |
32 | automatically determining its encoding. It uses the HTML5 encoding | |
33 | sniffing algorithm specified in section 8.2.2.1 of the draft standard. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Moduł IO::HTML udostępnia łatwy sposób otwierania pliku zawierającego | |
37 | HTML z automatycznym określaniem jego kodowania. Wykorzystuje algorytm | |
38 | dopasowywania kodowania HTML5, opisany w sekcji 8.2.2.1 szkicu | |
39 | standardu. | |
40 | ||
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
45 | %{__perl} Makefile.PL \ | |
46 | INSTALLDIRS=vendor | |
47 | %{__make} | |
48 | ||
49 | %{?with_tests:%{__make} test} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} pure_install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Changes README | |
63 | %{perl_vendorlib}/IO/HTML.pm | |
64 | %{_mandir}/man3/IO::HTML.3pm* |