]>
Commit | Line | Data |
---|---|---|
b71f18e4 | 1 | # |
2 | # Conditional build: | |
2858898a | 3 | %bcond_without tests # do not perform "make test" |
697f16ae | 4 | # |
485fc0de | 5 | %include /usr/lib/rpm/macros.perl |
5f9634f7 | 6 | %define pdir Regexp |
7 | %define pnam Common | |
c8fd9fe8 | 8 | Summary: Regexp::Common Perl module - commonly requested regular expressions |
9c09bc8f | 9 | Summary(pl.UTF-8): Moduł Perla Regexp::Common - często używane wyrażenia regularne |
485fc0de | 10 | Name: perl-Regexp-Common |
dc4c92c0 | 11 | Version: 2.120 |
12 | Release: 1 | |
485fc0de JB |
13 | License: Artistic |
14 | Group: Development/Languages/Perl | |
44cd78df | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
dc4c92c0 | 16 | # Source0-md5: a14f2a3c3f2718a567ec26f57a2bae13 |
f5feca79 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
8bbb801e | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
485fc0de JB |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
c8fd9fe8 | 22 | # not recognized for unknown reason |
23 | %define _noautoreq 'perl(Regexp::Common::URI)' | |
24 | ||
485fc0de JB |
25 | %description |
26 | This package contains Regexp::Common module that stores or generates | |
27 | commonly needed regular expressions. Patterns currently provided | |
28 | include: | |
29 | * balanced parentheses and brackets | |
30 | * delimited text (with escapes) | |
31 | * integers and floating-point numbers in any base (up to 36) | |
32 | * comments in C, C++, Perl, and shell | |
8543390d | 33 | * offensive language |
485fc0de JB |
34 | * lists of any pattern |
35 | * IPv4 addresses | |
8543390d | 36 | * URIs |
37 | ||
9c09bc8f JR |
38 | %description -l pl.UTF-8 |
39 | Ten pakiet zawiera moduł Regexp::Common, który zawiera lub generuje | |
40 | często potrzebne wyrażenia regularne. Aktualnie zawiera wzorce dla: | |
41 | * zrównoważonych nawiasów | |
8543390d | 42 | * ograniczonego tekstu (z cytowaniem) |
9c09bc8f | 43 | * liczb całkowitych i zmiennoprzecinkowych o dowolnej podstawie (do 36) |
8543390d | 44 | * komentarzy w C, C++, Perlu i shellu |
9c09bc8f | 45 | * słów obraźliwych (w języku angielskim) |
8543390d | 46 | * list o dowolnym wzorcu |
9c09bc8f | 47 | * adresów IPv4. |
8543390d | 48 | * URI |
2fdad918 | 49 | |
485fc0de JB |
50 | %prep |
51 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
822eff34 | 52 | |
697f16ae | 53 | %{__perl} -pi -e 's/^(use 5.004)(73;)(.*)$/$1_$2$3/' lib/Regexp/Common.pm |
485fc0de JB |
54 | |
55 | %build | |
8bbb801e | 56 | %{__perl} Makefile.PL \ |
2fdad918 | 57 | INSTALLDIRS=vendor |
485fc0de | 58 | %{__make} |
697f16ae | 59 | |
2858898a | 60 | %{?with_tests:%{__make} test} |
485fc0de JB |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
d1d7f6f3 | 73 | %doc README TODO |
822eff34 JB |
74 | %{perl_vendorlib}/Regexp/*.pm |
75 | %{perl_vendorlib}/Regexp/Common | |
485fc0de | 76 | %{_mandir}/man3/* |