]> git.pld-linux.org Git - packages/perl-HTML-Lint.git/blob - perl-HTML-Lint.spec
d58c5492489e34ca8b1e0c587f12d79c6bbb5587
[packages/perl-HTML-Lint.git] / perl-HTML-Lint.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    HTML
7 %define pnam    Lint
8 Summary:        HTML::Lint - check for HTML errors in a string or file
9 Summary(pl.UTF-8):      HTML::Lint - sprawdzanie łańcucha lub pliku HTML pod kątem błędów
10 Name:           perl-HTML-Lint
11 Version:        2.10
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  17d364920349ee989242c5d660638a78
18 URL:            http://search.cpan.org/dist/HTML-Lint/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-HTML-Parser >= 3.20
23 BuildRequires:  perl-HTML-Tagset >= 3.03
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 HTML::Lint checks a string or file for HTML errors. It comes with
30 Test::More-style wrapper, Test::HTML::Lint.
31
32 %description -l pl.UTF-8
33 HTML::Lint sprawdza łańcuch znaków lub plik HTML pod kątem błędów.
34 Pakiet zawiera też moduł Test::HTML::Lint - wrapper w stylu
35 Test::More.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes README
59 %attr(755,root,root) %{_bindir}/weblint
60 %{perl_vendorlib}/HTML/*.pm
61 %{perl_vendorlib}/HTML/Lint
62 %dir %{perl_vendorlib}/Test/HTML
63 %{perl_vendorlib}/Test/HTML/Lint.pm
64 %{_mandir}/man3/*
This page took 0.068578 seconds and 2 git commands to generate.