]>
Commit | Line | Data |
---|---|---|
92540235 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
ff9817b1 | 4 | |
77b0a216 | 5 | %define pdir HTML |
6 | %define pnam Summary | |
ff9817b1 | 7 | %include /usr/lib/rpm/macros.perl |
75682ae1 | 8 | Summary: HTML::Summary - module for generating a summary from a web page |
df1cafef | 9 | Summary(pl.UTF-8): HTML::Summary - moduł do generowania streszczeń stron WWW |
18cc7cc1 | 10 | Name: perl-HTML-Summary |
87576d2f | 11 | Version: 0.017 |
6de9797c | 12 | Release: 9 |
31b4322d | 13 | License: not distributable |
18cc7cc1 | 14 | Group: Development/Languages/Perl |
2af311ab | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
31b4322d | 16 | # NoSource0-md5: a7f29617a26a3f07b3f871751507d9ec |
17 | NoSource: 0 | |
ff9817b1 | 18 | URL: http://search.cpan.org/dist/HTML-Summary/ |
18cc7cc1 | 19 | BuildRequires: perl-HTML-Tree |
be407dec | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
527e1fd4 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
4e85aff8 | 22 | BuildArch: noarch |
b9be35ed | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18cc7cc1 | 24 | |
25 | %description | |
ff9817b1 ER |
26 | The HTML::Summary module produces summaries from the textual content |
27 | of web pages. It does so using the location heuristic, which | |
28 | determines the value of a given sentence based on its position and | |
29 | status within the document; for example, headings, section titles and | |
30 | opening paragraph sentences may be favoured over other textual | |
31 | content. A LENGTH option can be used to restrict the length of the | |
32 | summary produced. | |
18cc7cc1 | 33 | |
38e5afb3 JR |
34 | %description -l pl.UTF-8 |
35 | Moduł HTML::Summary tworzy streszczenia z tekstowej zawartości stron | |
36 | WWW. Czyni to przy użyciu heurystyki położenia, określającej wartość | |
37 | danego zdania w oparciu o położenie i status w dokumencie; na przykład | |
38 | nagłówki, tytuły sekcji i zdania zaczynające akapity mogą być | |
39 | preferowane w stosunku do reszty treści. Można użyć opcji LENGTH do | |
40 | ograniczenia długości tworzonego streszczenia. | |
18cc7cc1 | 41 | |
42 | %prep | |
529c00eb | 43 | %setup -q -n %{pdir}-%{pnam}-%{version} |
18cc7cc1 | 44 | |
45 | %build | |
527e1fd4 | 46 | %{__perl} Makefile.PL \ |
a116e9f2 | 47 | INSTALLDIRS=vendor |
03073c9a | 48 | %{__make} |
18cc7cc1 | 49 | |
92540235 | 50 | %{?with_tests:%{__make} test} |
51 | ||
18cc7cc1 | 52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
14d94361 | 54 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
18cc7cc1 | 55 | |
92540235 | 56 | %{__make} install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
18cc7cc1 | 58 | |
ff9817b1 | 59 | cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
18cc7cc1 | 60 | |
18cc7cc1 | 61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
f0f9461c | 66 | %doc Changes README examples |
527e1fd4 | 67 | %{perl_vendorlib}/HTML/Summary.pm |
68 | %dir %{perl_vendorlib}/Lingua/JA | |
69 | %{perl_vendorlib}/Lingua/JA/*.pm | |
70 | %{perl_vendorlib}/Text/Sentence.pm | |
14d94361 | 71 | %dir %{_examplesdir}/%{name}-%{version} |
dd3d209a | 72 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl |
18cc7cc1 | 73 | %{_mandir}/man3/* |