]> git.pld-linux.org Git - SPECS.git/blob - html2latex.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / html2latex.spec
1 Summary:        HTML to LaTeX converter
2 Summary(pl.UTF-8):      Konwerter HTML-a do LaTeXa
3 Name:           html2latex
4 Version:        1.1
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/Publishing/TeX
8 Source0:        http://dl.sourceforge.net/html2latex/%{name}-%{version}.tar.gz
9 # Source0-md5:  f79c9b9808306cba7d947bbace6f594c
10 URL:            http://html2latex.sourceforge.net/
11 %if %{with tests}
12 BuildRequires:  perl-HTML-Tree >= 2.97
13 BuildRequires:  perl-XML-Simple >= 1.04
14 %endif
15 BuildRequires:  perl-devel >= 1:5.8.0
16 BuildRequires:  rpm-perlprov >= 4.1-13
17 # optional: perl-libwww, perl-URI, ImageMagick-perl
18 Requires:       perl-HTML-Latex = %{version}-%{release}
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 html2latex uses HTML::TreeBuilder to parse an HTML file and then it
23 converts the HTML::Element into to a LaTeX file. Each URL will have a
24 .*html extension stripped. If you use a URL, then the files taken from
25 the Internet will be stored in your ~/.html2latex directory. If
26 pictures are included, they are converted to .PNG, which can only be
27 used with pdflatex. As an added bonus, there is an option to
28 automatically create a PDF from the LaTeX file (using pdflatex).
29
30 %description -l pl.UTF-8
31 html2latex wykorzystuje HTML::TreeBuilder do analizy plików HTML i
32 przekształacania obiektów HTML::Element do plików LaTeXa. Każdy URL
33 zostaje pozbawiony rozszerzenia .*html. W przypadku użycia URL-a pliki
34 pobrane z Internetu zostaną zapisane w katalogu ~/.html2latex.
35 Załączone obrazki są przekształcane do formatu .PNG, który może być
36 wykorzystany przez pdflatexa. Jako dodatek istnieje opcja
37 automatycznego tworzenia dokumentu PDF z pliku LaTeXa (przy użyciu
38 pdflatexa).
39
40 %package -n perl-HTML-Latex
41 Summary:        HTML::Latex Perl module - creates a LaTeX file from an HTML file
42 Summary(pl.UTF-8):      Moduł Perla HTML::Latex - tworzenie pliku w LaTeXu z pliku HTML
43 Group:          Development/Languages/Perl
44 Requires:       perl-HTML-Tree >= 2.97
45 Requires:       perl-XML-Simple >= 1.04
46
47 %description -n perl-HTML-Latex
48 Converts properly formatted HTML files, filehandles, or strings to
49 LaTeX. It offers several options in processing, such a the ignoring of
50 tags, the configuration of the TeX, and downloading of URLs. It is
51 also much easier to extend than any other html2latex converter.
52
53 %description -n perl-HTML-Latex -l pl.UTF-8
54 Moduł ten konwertuje odpowiednio sformatowane pliki HTML, uchwyty
55 plików lub łańcuchy znaków do LaTeXa. Oferuje przy przetwarzaniu kilka
56 opcji, takich jak ignorowanie znaczników, konfiguracja TeXa oraz
57 ściąganie odnośników. Jest dużo prostszy do rozbudowywania niż
58 jakikolwiek inny konwerter html2latex.
59
60 %prep
61 %setup -q
62
63 %build
64 cd HTML
65
66 %{__perl} Makefile.PL \
67         INSTALLDIRS=vendor
68 %{__make}
69
70 %{?with_tests:%{__make} test}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} -C HTML pure_install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
79 install html2latex $RPM_BUILD_ROOT%{_bindir}
80 install html2latex.1 $RPM_BUILD_ROOT%{_mandir}/man1
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc ChangeLog README TODO
88 %attr(755,root,root) %{_bindir}/html2latex
89 %{_mandir}/man1/html2latex.1*
90
91 %files -n perl-HTML-Latex
92 %defattr(644,root,root,755)
93 %doc HTML/{Changes,README,TODO}
94 %{perl_vendorlib}/HTML/Latex.pm
95 %{_mandir}/man3/HTML::Latex.3*
This page took 0.316829 seconds and 3 git commands to generate.