]> git.pld-linux.org Git - packages/perl-HTML-SimpleLinkExtor.git/blob - perl-HTML-SimpleLinkExtor.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-SimpleLinkExtor.git] / perl-HTML-SimpleLinkExtor.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    HTML
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
10 Version:        1.25
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/%{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
20 %if %{with tests}
21 BuildRequires:  perl(HTML::LinkExtor) >= 1.28
22 BuildRequires:  perl-URI >= 1.09
23 BuildRequires:  perl-Test-Output
24 BuildRequires:  perl-Test-Simple
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
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.
33
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.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc Changes
61 %{perl_vendorlib}/HTML/*.pm
62 %{perl_vendorlib}/auto/HTML/SimpleLinkExtor
63 %attr(755,root,root) %{_bindir}/*
64 %{_mandir}/man?/*
This page took 0.118844 seconds and 4 git commands to generate.