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