]> git.pld-linux.org Git - packages/perl-NetAddr-IP-Find.git/blob - perl-NetAddr-IP-Find.spec
3a6c3dd8a8acdad95014ab5a9e65a2ba3c2949cc
[packages/perl-NetAddr-IP-Find.git] / perl-NetAddr-IP-Find.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    NetAddr
7 %define pnam    IP-Find
8 Summary:        NetAddr::IP::Find - Find IP addresses in plain text
9 #Summary(pl):   
10 Name:           perl-NetAddr-IP-Find
11 Version:        0.03
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/NetAddr/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  5f593c24e3edf7ceba7547d0a4cc1068
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-NetAddr-IP
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This is a module for finding IP addresses in plain text.
28
29 # %description -l pl
30 # TODO
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc Changes
54 %{perl_vendorlib}/NetAddr/IP/*.pm
55 %{_mandir}/man3/*
This page took 0.095652 seconds and 3 git commands to generate.