]> git.pld-linux.org Git - packages/perl-HTML-FormatText-WithLinks-AndTables.git/blame - perl-HTML-FormatText-WithLinks-AndTables.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-FormatText-WithLinks-AndTables.git] / perl-HTML-FormatText-WithLinks-AndTables.spec
CommitLineData
99062c03
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir HTML
6%define pnam FormatText-WithLinks-AndTables
99062c03
JB
7Summary: HTML::FormatText::WithLinks::AndTables - Converts HTML to Text with tables in tact
8Summary(pl.UTF-8): HTML::FormatText::WithLinks::AndTables - konwersja HTML-a do tekstu z tabelkami
9Name: perl-HTML-FormatText-WithLinks-AndTables
a8c6435a 10Version: 0.07
99062c03
JB
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
a8c6435a 16# Source0-md5: 0e74b89e8ed0747c970e3de973d56e50
99062c03
JB
17URL: http://search.cpan.org/dist/HTML-FormatText-WithLinks-AndTables/
18BuildRequires: perl-ExtUtils-MakeMaker
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl-HTML-FormatText-WithLinks
23BuildRequires: perl-HTML-Tree
24BuildRequires: perl-Test-Simple
25%endif
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30This module was inspired by HTML::FormatText::WithLinks which has
31proven to be a useful `lynx -dump` work-alike. However one frustration
32was that no other HTML converters had the ability to deal affectively
33with HTML <TABLE>s. This module can in a rudimentary sense do so. The
34aim was to provide facility to take a simple HTML based email
35template, and to also convert it to text with the <TABLE> structure in
36tact for inclusion as "multipart/alternative" content. Further, it
37will preserve both the formatting specified by the <TD> tag's "align"
38attribute, and will also preserve multiline text inside of a <TD>
39element provided it is broken using <BR/> tags.
40
41%description -l pl.UTF-8
42Ten moduł jest zainspirowany modułem HTML::FormatText::WithLinks,
43który okazał się przydatnym odpowiednikiem polecenia "lynx -dump".
44Jednak żaden dotychczasowy konwerter HTML-a nie mógł efektywnie
45poradzić sobie z elementami HTML <TABLE>. Ten moduł potrafi to w
46podstawowym zakresie. Celem była możliwość przekazania prostego
47szablonu wiadomości elektronicznej w HTML-u i przekształcenie jej do
48tekstu wraz ze strukturą <TABLE>, aby można ją było umieścić w treści
49multipart/alternative. Co więcej, moduł zachowuje formatowanie
50określone atrybutem "align" znacznika <TD> oraz wieloliniowy tekst
51wewnątrz elementu <TD> - pod warunkiem, że jest złamany przy użyciu
52znaczników <BR/>.
53
54%prep
edc10a4c 55%setup -q -n %{pdir}-%{pnam}-%{version}
99062c03
JB
56
57%build
58%{__perl} Makefile.PL \
59 INSTALLDIRS=vendor
60%{__make}
61
62%{?with_tests:%{__make} test}
63
64%install
65rm -rf $RPM_BUILD_ROOT
66
67%{__make} pure_install \
68 DESTDIR=$RPM_BUILD_ROOT
69
39ba7c20 70# duplicate of HTML::FormatText::WithLinks::AndTables docs (already included pm and man)
a8c6435a 71%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/HTML/FormatText/WithLinks/README.pod
39ba7c20 72
99062c03
JB
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76%files
77%defattr(644,root,root,755)
39ba7c20 78%doc Changes
99062c03
JB
79%dir %{perl_vendorlib}/HTML/FormatText/WithLinks
80%{perl_vendorlib}/HTML/FormatText/WithLinks/AndTables.pm
81%{_mandir}/man3/HTML::FormatText::WithLinks::AndTables.3pm*
This page took 0.079753 seconds and 4 git commands to generate.