]> git.pld-linux.org Git - packages/perl-Net-CIDR-Lite.git/blame - perl-Net-CIDR-Lite.spec
- updated URL, BR for macros.perl always included
[packages/perl-Net-CIDR-Lite.git] / perl-Net-CIDR-Lite.spec
CommitLineData
465d8c26
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
36e72f99 5%define pdir Net
6%define pnam CIDR-Lite
52986d2a 7Summary: Net::CIDR::Lite - parse, manipulate and lookup IP network blocks
5475fd1a 8Summary(pl.UTF-8): Net::CIDR::Lite - analiza, przetwarzanie i wyszukiwanie bloków sieci IP
52986d2a 9Name: perl-Net-CIDR-Lite
d6a99bdb 10Version: 0.21
11Release: 1
7b1b34ea 12# same as perl
13License: GPL v1+ or Artistic
52986d2a 14Group: Development/Languages/Perl
30fd4a4b 15Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
d6a99bdb 16# Source0-md5: 12280b3754886b876918f03f53aee4f5
cb41c1a6 17URL: https://metacpan.org/release/Net-CIDR-Lite
465d8c26 18BuildRequires: perl-devel >= 1:5.8.0
52986d2a 19BuildRequires: rpm-perlprov >= 4.1-13
cb41c1a6 20BuildRequires: rpmbuild(macros) >= 1.745
52986d2a 21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
465d8c26
JB
25Net::CIDR::Lite parses and understands IPv4 CIDR blocks.
26
837dfbd3
JR
27%description -l pl.UTF-8
28Moduł Net::CIDR::Lite analizuje bloki CIDR IPv4.
52986d2a 29
30%prep
31%setup -q -n %{pdir}-%{pnam}-%{version}
32
33%build
34%{__perl} Makefile.PL \
35 INSTALLDIRS=vendor
36%{__make}
37
465d8c26
JB
38%{?with_tests:%{__make} test}
39
52986d2a 40%install
41rm -rf $RPM_BUILD_ROOT
42
465d8c26
JB
43%{__make} install \
44 DESTDIR=$RPM_BUILD_ROOT
52986d2a 45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%files
50%defattr(644,root,root,755)
51%doc README
465d8c26 52%dir %{perl_vendorlib}/Net/CIDR
52986d2a 53%{perl_vendorlib}/Net/CIDR/Lite.pm
cb41c1a6 54%{_mandir}/man3/Net::CIDR::Lite.3pm*
This page took 0.10437 seconds and 4 git commands to generate.