3 %bcond_with tests # perform "make test" (failed on my machine)
5 %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 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: perl-HTML-Tree
20 BuildRequires: perl-XML-Simple >= 1.04
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Converts properly formatted HTML files, filehandles, or strings to
28 LaTeX. It offers several options in processing, such a the ignoring of
29 tags, the configuration of the TeX, and downloading of URLs. It is
30 also much easier to extend than any other html2latex converter.
32 %description -l pl.UTF-8
33 Moduł ten konwertuje odpowiednio sformatowane pliki HTML, uchwyty
34 plików lub łańcuchy znaków do LaTeXa. Oferuje przy przetwarzaniu kilka
35 opcji, takich jak ignorowanie znaczników, konfiguracja TeXa oraz
36 ściąganie odnośników. Jest dużo prostszy do rozbudowywania niż
37 jakikolwiek inny konwerter html2latex.
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc Change* README TODO
61 %{perl_vendorlib}/%{pdir}/*.pm