3 %bcond_with tests # perform "make test" (failed on my machine)
7 %include /usr/lib/rpm/macros.perl
8 Summary: HTML::Latex Perl module - creates a LaTeX file from an HTML file
9 Summary(pl.UTF-8): Moduł Perla HTML::Latex - tworzenie pliku w LaTeXu z pliku HTML
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: b15c98fe9105340060e55e11c17747cb
17 URL: http://search.cpan.org/dist/HTML-Latex/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-HTML-Tree
22 BuildRequires: perl-XML-Simple >= 1.04
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Converts properly formatted HTML files, filehandles, or strings to
29 LaTeX. It offers several options in processing, such a the ignoring of
30 tags, the configuration of the TeX, and downloading of URLs. It is
31 also much easier to extend than any other html2latex converter.
33 %description -l pl.UTF-8
34 Moduł ten konwertuje odpowiednio sformatowane pliki HTML, uchwyty
35 plików lub łańcuchy znaków do LaTeXa. Oferuje przy przetwarzaniu kilka
36 opcji, takich jak ignorowanie znaczników, konfiguracja TeXa oraz
37 ściąganie odnośników. Jest dużo prostszy do rozbudowywania niż
38 jakikolwiek inny konwerter html2latex.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc Change* README TODO
62 %{perl_vendorlib}/%{pdir}/*.pm