]> git.pld-linux.org Git - packages/perl-Net-CIDR.git/blob - perl-Net-CIDR.spec
af3ab4f9d2b4bdc01a9066388cd5c3023fd1e472
[packages/perl-Net-CIDR.git] / perl-Net-CIDR.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    Net
7 %define pnam    CIDR
8 Summary:        Net::CIDR - manipulate IPv4/IPv6 netblocks in CIDR notation
9 Summary(pl.UTF-8):      Net::CIDR - przetwarzanie bloków sieci IPv4/IPv6 w notacji CIDR
10 Name:           perl-Net-CIDR
11 Version:        0.19
12 Release:        1
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:  08bf7e5d5eb07bef562e2f38423eb62c
17 URL:            http://search.cpan.org/dist/Net-CIDR/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 The Net::CIDR package contains functions that manipulate lists of IP
25 netblocks expressed in CIDR notation. The Net::CIDR functions handle
26 both IPv4 and IPv6 addresses.
27
28 %description -l pl.UTF-8
29 Pakiet Net::CIDR zawiera funkcje przetwarzające listy bloków sieci IP
30 zapisanych w notacji CIDR. Funkcje Net::CIDR obsługują adresy IPv4 i
31 IPv6.
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make}
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc ChangeLog README
55 %{perl_vendorlib}/Net/*.pm
56 %{_mandir}/man3/*
This page took 0.044856 seconds and 2 git commands to generate.