3 %bcond_without tests # do not perform "make test"
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
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: http://search.cpan.org/dist/Regexp-Common/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: rpmbuild(macros) >= 1.663
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 # not recognized for unknown reason
24 %define _noautoreq_perl Regexp::Common::URI
27 This package contains Regexp::Common module that stores or generates
28 commonly needed regular expressions. Patterns currently provided
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
35 * lists of any pattern
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
52 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL \
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %{perl_vendorlib}/Regexp/Common.pm
74 %{perl_vendorlib}/Regexp/Common
75 %{_mandir}/man3/Regexp::Common*.3pm*