]> git.pld-linux.org Git - packages/perl-HTML-FormatText-WithLinks.git/blob - perl-HTML-FormatText-WithLinks.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-FormatText-WithLinks.git] / perl-HTML-FormatText-WithLinks.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    HTML
6 %define         pnam    FormatText-WithLinks
7 Summary:        HTML::FormatText::WithLinks - HTML to text conversion with links as footnotes
8 Summary(pl.UTF-8):      HTML::FormatText::WithLinks - konwersja HTML-a do tekstu z odnośnikami jako przypisami
9 Name:           perl-HTML-FormatText-WithLinks
10 Version:        0.15
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
16 # Source0-md5:  e048c41f600895182df327c6ce9b2cc0
17 URL:            http://search.cpan.org/dist/HTML-FormatText-WithLinks/
18 BuildRequires:  perl-Module-Build
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-HTML-Format >= 2
23 BuildRequires:  perl-HTML-Tree
24 BuildRequires:  perl-Test-Simple
25 BuildRequires:  perl-URI
26 %endif
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 HTML::FormatText::WithLinks takes HTML and turns it into plain text
32 but prints all the links in the HTML as footnotes. By default, it
33 attempts to mimic the format of the lynx text based web browser's
34 --dump option.
35
36 %description -l pl.UTF-8
37 HTML::FormatText::WithLinks przyjmuje HTML i zamienia go na zwykły
38 tekst, ale wypisuje wszystkie odnośniki z HTML-a jako przypisy.
39 Domyślnie próbuje naśladować format opcji --dump tekstowej
40 przeglądarki lynx.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Build.PL \
47         destdir=$RPM_BUILD_ROOT \
48         installdirs=vendor
49 ./Build
50
51 %{?with_tests:./Build test}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 ./Build install
57
58 install -d $RPM_BUILD_ROOT%{_examplesdir}
59 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc Changes
67 %dir %{perl_vendorlib}/HTML/FormatText
68 %{perl_vendorlib}/HTML/FormatText/WithLinks.pm
69 %{_mandir}/man3/HTML::FormatText::WithLinks.3pm*
70 %{_examplesdir}/%{name}-%{version}
This page took 0.691882 seconds and 4 git commands to generate.