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