]> git.pld-linux.org Git - packages/perl-Regexp-IPv6.git/blob - perl-Regexp-IPv6.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Regexp-IPv6.git] / perl-Regexp-IPv6.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Regexp
6 %define         pnam    IPv6
7 Summary:        Regexp::IPv6 - Regular expression for IPv6 addresses
8 #Summary(pl.UTF-8):     
9 Name:           perl-Regexp-IPv6
10 Version:        0.03
11 Release:        1
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Regexp/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  892abe3f43eb0cc76283767f99a335e6
16 URL:            http://search.cpan.org/dist/Regexp-IPv6/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 %endif
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This module exports the $IPv6_re regular expression that matches any
26 valid IPv6 address as described in "RFC 2373 - 2.2 Text Representation
27 of Addresses" but ::. Any string not compliant with such RFC will
28 be rejected.
29
30 To match full strings use /^$IPv6_re$/.
31
32
33
34 # %description -l pl.UTF-8
35 # TODO
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} pure_install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes README
59 %{perl_vendorlib}/Regexp/*.pm
60 %{_mandir}/man3/*
This page took 0.134812 seconds and 4 git commands to generate.