]> git.pld-linux.org Git - packages/perl-HTML-Summary.git/blame - perl-HTML-Summary.spec
use generic url
[packages/perl-HTML-Summary.git] / perl-HTML-Summary.spec
CommitLineData
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 8Summary: HTML::Summary - module for generating a summary from a web page
df1cafef 9Summary(pl.UTF-8): HTML::Summary - moduł do generowania streszczeń stron WWW
18cc7cc1 10Name: perl-HTML-Summary
87576d2f 11Version: 0.017
6de9797c 12Release: 9
31b4322d 13License: not distributable
18cc7cc1 14Group: Development/Languages/Perl
2af311ab 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
31b4322d 16# NoSource0-md5: a7f29617a26a3f07b3f871751507d9ec
17NoSource: 0
ff9817b1 18URL: http://search.cpan.org/dist/HTML-Summary/
18cc7cc1 19BuildRequires: perl-HTML-Tree
be407dec 20BuildRequires: perl-devel >= 1:5.8.0
527e1fd4 21BuildRequires: rpm-perlprov >= 4.1-13
4e85aff8 22BuildArch: noarch
b9be35ed 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18cc7cc1 24
25%description
ff9817b1
ER
26The HTML::Summary module produces summaries from the textual content
27of web pages. It does so using the location heuristic, which
28determines the value of a given sentence based on its position and
29status within the document; for example, headings, section titles and
30opening paragraph sentences may be favoured over other textual
31content. A LENGTH option can be used to restrict the length of the
32summary produced.
18cc7cc1 33
38e5afb3
JR
34%description -l pl.UTF-8
35Moduł HTML::Summary tworzy streszczenia z tekstowej zawartości stron
36WWW. Czyni to przy użyciu heurystyki położenia, określającej wartość
37danego zdania w oparciu o położenie i status w dokumencie; na przykład
38nagłówki, tytuły sekcji i zdania zaczynające akapity mogą być
39preferowane w stosunku do reszty treści. Można użyć opcji LENGTH do
40ograniczenia 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
53rm -rf $RPM_BUILD_ROOT
14d94361 54install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
18cc7cc1 55
92540235 56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
18cc7cc1 58
ff9817b1 59cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
18cc7cc1 60
18cc7cc1 61%clean
62rm -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/*
This page took 0.153687 seconds and 4 git commands to generate.