]> git.pld-linux.org Git - packages/perl-URI-Find.git/blob - perl-URI-Find.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-URI-Find.git] / perl-URI-Find.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    URI
6 %define pnam    Find
7 Summary:        URI::Find - Find URIs in arbitrary text
8 Summary(pl.UTF-8):      URI::Find - znajdowanie URI w dowolnym tekście
9 Name:           perl-URI-Find
10 Version:        0.16
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-authors/id/R/RO/ROSCH/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  339279e268cf37e629f54c1091f99a13
17 URL:            http://search.cpan.org/dist/URI-Find/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-URI >= 1.00
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This module does one thing: Finds URIs and URLs in plain text. It
28 finds them quickly and it finds them all (or what URI::URL considers a
29 URI to be.) It only finds URIs which include a scheme (http:// or the
30 like), for something a bit less strict have a look at
31 URI::Find::Schemeless.
32
33 %description -l pl.UTF-8
34 Ten moduł robi jedną rzecz: znajduje URI i URL-e w czystym tekście.
35 Znajduje je szybko i znajduje je wszystkie (lub cokolwiek co URI::URL
36 uzna za URI). Znajduje tylko URI zawierające schemat (http:// itp.),
37 natomiast coś mniej ścisłego można znaleźć w URI::Find::Schemeless.
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 README TODO
61 %{perl_vendorlib}/URI/*.pm
62 %{perl_vendorlib}/URI/Find
63 %{_mandir}/man3/*
This page took 0.076661 seconds and 4 git commands to generate.