]> git.pld-linux.org Git - packages/perl-Text-DHCPLeases.git/blame - perl-Text-DHCPLeases.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Text-DHCPLeases.git] / perl-Text-DHCPLeases.spec
CommitLineData
328b9c9c
MP
1#
2# Conditional build:
3%bcond_without autodeps # don't BR packages needed only for resolving deps
4%bcond_without tests # do not perform "make test"
5#
328b9c9c
MP
6%define pdir Text
7%define pnam DHCPLeases
8Summary: -
9Summary(pl.UTF-8): -
10Name: perl-Text-DHCPLeases
11Version: 0.8
12Release: 0.1
13# note if it is "same as perl"
14#License: GPL v1+ or Artistic
15License: (enter GPL/LGPL/BSD/BSD-like/Artistic/other license name here)
16Group: Development/Languages/Perl
17Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-v%{version}.tar.gz
18# Source0-md5:
19#Patch0: %{name}-foo.patch
20# most of CPAN modules have generic URL (substitute pdir and pnam here)
21URL: http://search.cpan.org/dist/Text-DHCPLeases/
22BuildRequires: perl-devel >= 1:5.8.0
23BuildRequires: rpm-perlprov >= 4.1-13
24#BuildRequires: -
25%if %{with autodeps} || %{with tests}
26#BuildRequires: perl-
27#BuildRequires: perl-
28%endif
29BuildArch: noarch
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%define _noautoreq 'perl(anything_fake_or_conditional)'
33
34%description
35This module provides an object-oriented interface to ISC DHCPD leases files.
36The goal is to objectify all declarations, as defined by the ISC dhcpd package
37man pages.
38
39This interface is useful for analyzing, reporting, converting lease files, or
40as a tool for other applications that need to import dhcpd lease data
41structures.
42
43%prep
44%setup -q -n %{pdir}-%{pnam}-v%{version}
45
46%build
47%{__perl} Makefile.PL \
48 INSTALLDIRS=vendor
49
50%{__make}
51
52%{?with_tests:%{__make} test}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57%{__make} pure_install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Changes README
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
71%{_mandir}/man3/*
This page took 0.064771 seconds and 4 git commands to generate.