]> git.pld-linux.org Git - packages/perl-Regexp-Common.git/blob - perl-Regexp-Common.spec
- updated dependencies, package licensing information
[packages/perl-Regexp-Common.git] / perl-Regexp-Common.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Regexp
6 %define         pnam    Common
7 Summary:        Regexp::Common Perl module - commonly requested regular expressions
8 Summary(pl.UTF-8):      Moduł Perla Regexp::Common - często używane wyrażenia regularne
9 Name:           perl-Regexp-Common
10 Version:        2017060201
11 Release:        1
12 License:        Artistic or Artistic v2.0 or BSD or MIT
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Regexp/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  b1bb40759b84154990f36a160160fb94
16 URL:            https://metacpan.org/release/Regexp-Common
17 BuildRequires:  perl-devel >= 1:5.10.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRequires:  rpmbuild(macros) >= 1.745
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 # not recognized for unknown reason
24 %define         _noautoreq_perl Regexp::Common::URI
25
26 %description
27 This package contains Regexp::Common module that stores or generates
28 commonly needed regular expressions. Patterns currently provided
29 include:
30  * balanced parentheses and brackets
31  * delimited text (with escapes)
32  * integers and floating-point numbers in any base (up to 36)
33  * comments in C, C++, Perl, and shell
34  * offensive language
35  * lists of any pattern
36  * IPv4 addresses
37  * URIs
38
39 %description -l pl.UTF-8
40 Ten pakiet zawiera moduł Regexp::Common, który zawiera lub generuje
41 często potrzebne wyrażenia regularne. Aktualnie zawiera wzorce dla:
42  * zrównoważonych nawiasów
43  * ograniczonego tekstu (z cytowaniem)
44  * liczb całkowitych i zmiennoprzecinkowych o dowolnej podstawie (do 36)
45  * komentarzy w C, C++, Perlu i shellu
46  * słów obraźliwych (w języku angielskim)
47  * list o dowolnym wzorcu
48  * adresów IPv4.
49  * URI
50
51 %prep
52 %setup -q -n %{pdir}-%{pnam}-%{version}
53
54 %build
55 %{__perl} Makefile.PL \
56         INSTALLDIRS=vendor
57 %{__make}
58
59 %{?with_tests:%{__make} test}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 %{__make} install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc COPYRIGHT.BSD COPYRIGHT.MIT Changes LICENSE README TODO
73 %{perl_vendorlib}/Regexp/Common.pm
74 %{perl_vendorlib}/Regexp/Common
75 %{_mandir}/man3/Regexp::Common*.3pm*
This page took 0.082819 seconds and 4 git commands to generate.