]>
Commit | Line | Data |
---|---|---|
b71f18e4 | 1 | # |
2 | # Conditional build: | |
2858898a | 3 | %bcond_without tests # do not perform "make test" |
697f16ae | 4 | # |
5f9634f7 | 5 | %define pdir Regexp |
6 | %define pnam Common | |
c8fd9fe8 | 7 | Summary: Regexp::Common Perl module - commonly requested regular expressions |
d2187621 | 8 | Summary(pl.UTF-8): Moduł Perla Regexp::Common - często używane wyrażenia regularne |
485fc0de | 9 | Name: perl-Regexp-Common |
c0a372d7 | 10 | Version: 2017060201 |
3e04a664 | 11 | Release: 1 |
70053e4e | 12 | License: Artistic or Artistic v2.0 or BSD or MIT |
485fc0de | 13 | Group: Development/Languages/Perl |
362bbe3f | 14 | Source0: http://www.cpan.org/modules/by-module/Regexp/%{pdir}-%{pnam}-%{version}.tar.gz |
c0a372d7 | 15 | # Source0-md5: b1bb40759b84154990f36a160160fb94 |
70053e4e JB |
16 | URL: https://metacpan.org/release/Regexp-Common |
17 | BuildRequires: perl-devel >= 1:5.10.0 | |
8bbb801e | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
70053e4e | 19 | BuildRequires: rpmbuild(macros) >= 1.745 |
485fc0de JB |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
c8fd9fe8 | 23 | # not recognized for unknown reason |
7bd44adc | 24 | %define _noautoreq_perl Regexp::Common::URI |
c8fd9fe8 | 25 | |
485fc0de JB |
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 | |
8543390d | 34 | * offensive language |
485fc0de JB |
35 | * lists of any pattern |
36 | * IPv4 addresses | |
8543390d | 37 | * URIs |
38 | ||
9c09bc8f JR |
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 | |
8543390d | 43 | * ograniczonego tekstu (z cytowaniem) |
9c09bc8f | 44 | * liczb całkowitych i zmiennoprzecinkowych o dowolnej podstawie (do 36) |
8543390d | 45 | * komentarzy w C, C++, Perlu i shellu |
9c09bc8f | 46 | * słów obraźliwych (w języku angielskim) |
8543390d | 47 | * list o dowolnym wzorcu |
9c09bc8f | 48 | * adresów IPv4. |
8543390d | 49 | * URI |
2fdad918 | 50 | |
485fc0de JB |
51 | %prep |
52 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
822eff34 | 53 | |
485fc0de | 54 | %build |
8bbb801e | 55 | %{__perl} Makefile.PL \ |
2fdad918 | 56 | INSTALLDIRS=vendor |
485fc0de | 57 | %{__make} |
697f16ae | 58 | |
2858898a | 59 | %{?with_tests:%{__make} test} |
485fc0de JB |
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) | |
70053e4e | 72 | %doc COPYRIGHT.BSD COPYRIGHT.MIT Changes LICENSE README TODO |
b52f6006 | 73 | %{perl_vendorlib}/Regexp/Common.pm |
822eff34 | 74 | %{perl_vendorlib}/Regexp/Common |
b52f6006 | 75 | %{_mandir}/man3/Regexp::Common*.3pm* |