]> git.pld-linux.org Git - packages/perl-HTML-LinkExtractor.git/blob - perl-HTML-LinkExtractor.spec
e4c9fe6684d756a1e5393cee341c37102c410258
[packages/perl-HTML-LinkExtractor.git] / perl-HTML-LinkExtractor.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    LinkExtractor
8 Summary:        HTML::LinkExtractor - extract links from an HTML document
9 Summary(pl.UTF-8):      HTML::LinkExtractor - wyodrębnianie odnośników z dokumentów HTML
10 Name:           perl-HTML-LinkExtractor
11 Version:        0.13
12 Release:        1
13 Epoch:          1
14 # same as perl
15 License:        GPL v1+ or Artistic
16 Group:          Development/Languages/Perl
17 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5:  a30143b35ef76576fb984696746776de
19 BuildRequires:  perl-devel >= 1:5.6
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-HTML-TokeParser-Simple >= 2
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 HTML::LinkExtractor Perl module is used for extracting links from
29 HTML. It is very similar to HTML::LinkExtor, except that besides
30 getting the URL, you also get the link-text.
31
32 %description -l pl.UTF-8
33 Moduł Perla HTML::LinkExtractor służy do wyodrębniania odnośników z
34 kodu HTML. Jest on bardzo podobny do modułu HTML::LinkExtor z tym
35 wyjątkiem, że otrzymuje się URL razem z tekstem stanowiącym treść
36 odnośników.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes
60 %{perl_vendorlib}/%{pdir}/*.pm
61 %{_mandir}/man3/*
This page took 0.049843 seconds and 3 git commands to generate.