]> git.pld-linux.org Git - packages/perl-HTML-LinkExtractor.git/blob - perl-HTML-LinkExtractor.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-LinkExtractor.git] / perl-HTML-LinkExtractor.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    HTML
6 %define         pnam    LinkExtractor
7 Summary:        HTML::LinkExtractor - Extract links from an HTML document
8 Name:           perl-HTML-LinkExtractor
9 Version:        0.13
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  a30143b35ef76576fb984696746776de
16 URL:            http://search.cpan.org/dist/HTML-LinkExtractor/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 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.
24 methods.
25
26 %prep
27 %setup -q -n %{pdir}-%{pnam}-%{version}
28
29 %build
30 %{__perl} Makefile.PL \
31         INSTALLDIRS=vendor
32
33 %{__make} \
34         CC="%{__cc}" \
35         OPTIMIZE="%{rpmcflags}"
36
37 %{?with_tests:%{__make} test}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 %{__make} install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc Changes README
51 %{perl_vendorlib}/HTML/LinkExtractor.pm
52 %{_mandir}/man[13]/*
This page took 0.049936 seconds and 3 git commands to generate.