]> git.pld-linux.org Git - packages/perl-HTML-LinkExtractor.git/blob - perl-HTML-LinkExtractor.spec
- initial
[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 Name:           perl-HTML-LinkExtractor
10 Version:        0.13
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:  a30143b35ef76576fb984696746776de
17 URL:            http://search.cpan.org/dist/HTML-LinkExtractor/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 HTML::LinkExtractor is used for extracting links from HTML. It is very similar to HTML::LinkExtor, except that besides getting the URL, you also get the link-text.
25 methods.
26
27 %prep
28 %setup -q -n %{pdir}-%{pnam}-%{version}
29
30 %build
31 %{__perl} Makefile.PL \
32         INSTALLDIRS=vendor
33
34 %{__make} \
35         CC="%{__cc}" \
36         OPTIMIZE="%{rpmcflags}"
37
38 %{?with_tests:%{__make} test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc Changes README
52 %{perl_vendorlib}/HTML/LinkExtractor.pm
53 %{_mandir}/man[13]/*
This page took 0.089874 seconds and 3 git commands to generate.