]> git.pld-linux.org Git - packages/perl-HTML-FromText.git/blob - perl-HTML-FromText.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-FromText.git] / perl-HTML-FromText.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test"
4
5 %define         pdir    HTML
6 %define         pnam    FromText
7 Summary:        HTML::FromText Perl module - convert plain text to HTML
8 Summary(pl.UTF-8):      ModuĊ‚ Perla HTML::FromText - konwersja czystego tekstu do HTML
9 Name:           perl-HTML-FromText
10 Version:        2.05
11 Release:        3
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  fb8ae4ab0cae0b57101f78b046b3927b
17 URL:            http://search.cpan.org/dist/HTML-FromText/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(HTML::Entities) >= 1.26
22 BuildRequires:  perl-Email-Find >= 0.09
23 BuildRequires:  perl-Exporter-Lite >= 0.01
24 BuildRequires:  perl-HTML-Parser >= 3.26
25 # Scalar::Util in perl-modules 5.8.0 is too old
26 BuildRequires:  perl(Scalar::Util) >= 1.12
27 BuildRequires:  perl(Text::Tabs) >= 98.1128
28 BuildRequires:  perl-Scalar-List-Utils >= 1.12
29 BuildRequires:  perl-Test-Pod >= 0.95
30 BuildRequires:  perl-Test-Simple >= 0.47
31 %endif
32 BuildArch:      noarch
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 HTML::FromText converts text to HTML.
37
38 %description -l pl.UTF-8
39 HTML::FromText konwertuje tekst do formatu HTML.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc Changes README
63 %attr(755,root,root) %{_bindir}/text2html
64 %{perl_vendorlib}/HTML/FromText.pm
65 %{_mandir}/man1/*
66 %{_mandir}/man3/*
This page took 0.100651 seconds and 4 git commands to generate.