3 %bcond_without tests # do not perform "make test"
6 %define pnam SimpleLinkExtor
7 Summary: HTML::SimpleLinkExtor - extract links from HTML
8 Summary(pl.UTF-8): HTML::SimpleLinkExtor - wyodrębnianie odnośników z HTML-a
9 Name: perl-HTML-SimpleLinkExtor
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: 8fac1b4cb8996d23ae5d385c12ac4071
17 URL: http://search.cpan.org/dist/HTML-SimpleLinkExtor/
18 BuildRequires: perl-devel >= 1:5.6
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(HTML::LinkExtor) >= 1.28
22 BuildRequires: perl-URI >= 1.09
23 BuildRequires: perl-Test-Output
24 BuildRequires: perl-Test-Simple
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This is a simple HTML link extractor designed for the person who does not
31 want to deal with the intricacies of HTML::Parser or the de-referencing
32 needed to get links out of HTML::LinkExtor.
34 %description -l pl.UTF-8
35 To jest prosty moduł do wyodrębniania odnośników z HTML-a stworzony dla
36 osób, które nie chcą się wdawać w skomplikowanie modułu HTML::Parser ani
37 dereferencje potrzebne do uzyskania odnośników z modułu HTML::LinkExtor.
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/HTML/*.pm
62 %{perl_vendorlib}/auto/HTML/SimpleLinkExtor
63 %attr(755,root,root) %{_bindir}/*