3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
7 %define pnam DHCPLeases
10 Name: perl-Text-DHCPLeases
13 # note if it is "same as perl"
14 #License: GPL v1+ or Artistic
15 License: (enter GPL/LGPL/BSD/BSD-like/Artistic/other license name here)
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-v%{version}.tar.gz
19 #Patch0: %{name}-foo.patch
20 # most of CPAN modules have generic URL (substitute pdir and pnam here)
21 URL: http://search.cpan.org/dist/Text-DHCPLeases/
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
25 %if %{with autodeps} || %{with tests}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define _noautoreq 'perl(anything_fake_or_conditional)'
35 This module provides an object-oriented interface to ISC DHCPD leases files.
36 The goal is to objectify all declarations, as defined by the ISC dhcpd package
39 This interface is useful for analyzing, reporting, converting lease files, or
40 as a tool for other applications that need to import dhcpd lease data
44 %setup -q -n %{pdir}-%{pnam}-v%{version}
47 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
57 %{__make} pure_install \
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/Text/DHCPLeases.pm
67 %dir %{perl_vendorlib}/Text/DHCPLeases
68 %{perl_vendorlib}/Text/DHCPLeases/*.pm
69 %dir %{perl_vendorlib}/Text/DHCPLeases/Object
70 %{perl_vendorlib}/Text/DHCPLeases/Object/*.pm