]> git.pld-linux.org Git - packages/perl-HTML-Latex.git/blob - perl-HTML-Latex.spec
706baa77cec0030c3adea677636a6714e87453c0
[packages/perl-HTML-Latex.git] / perl-HTML-Latex.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (failed on my machine)
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    HTML
7 %define         pnam    Latex
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
10 Name:           perl-HTML-Latex
11 Version:        1.0
12 Release:        6
13 License:        GPL
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
18 %if %{with tests}
19 BuildRequires:  perl-HTML-Tree
20 BuildRequires:  perl-XML-Simple >= 1.04
21 %endif
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
31
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.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc Change* README TODO
61 %{perl_vendorlib}/%{pdir}/*.pm
62 %{_mandir}/man3/*
This page took 0.025998 seconds and 2 git commands to generate.