]> git.pld-linux.org Git - packages/perl-Email-Find.git/blob - perl-Email-Find.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Email-Find.git] / perl-Email-Find.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Email
6 %define         pnam    Find
7 Summary:        Email::Find - find RFC 822 email addresses in plain text
8 Summary(pl.UTF-8):      Email::Find - wyszukiwanie adresów pocztowych RFC 822 w czystym tekście
9 Name:           perl-Email-Find
10 Version:        0.10
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:  b38339e6c4ef0a13818195d50a193545
17 URL:            http://search.cpan.org/dist/Email-Find/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(Mail::Address)
22 BuildRequires:  perl-Email-Valid
23 BuildRequires:  perl-Test-Simple
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Email::Find is a module for finding a _subset_ of RFC 822 email
30 addresses in arbitrary text. The addresses it finds are not guaranteed
31 to exist or even actually be email addresses at all, but they will be
32 valid RFC 822 syntax.
33
34 %description -l pl.UTF-8
35 Email::Font to moduł do wyszukiwania _podzbioru_ adresów pocztowych
36 RFC 822 w dowolnym tekście. Nie ma gwarancji, że znalezione adresy
37 będą istniały lub nawet faktycznie będą adresami pocztowymi, ale będą
38 miały składnie zgodną z RFC 822.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Changes
62 %{perl_vendorlib}/%{pdir}/*.pm
63 %{perl_vendorlib}/%{pdir}/%{pnam}
64 %{_mandir}/man3/*
This page took 0.107956 seconds and 4 git commands to generate.