]> git.pld-linux.org Git - SPECS.git/blob - perl-Regexp-Match-Any.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / perl-Regexp-Match-Any.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Regexp
6 %define         pnam    Match-Any
7 Summary:        Regexp::Match::Any Perl module - match many regexes against a variable
8 Summary(pl.UTF-8):      Moduł Perla Regexp::Match::Any - dopasowanie wielu wyrażeń regularnych do zmiennej
9 Name:           perl-Regexp-Match-Any
10 Version:        0.03
11 Release:        4
12 License:        Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}_%{version}.tar.gz
15 # Source0-md5:  f9baccc05916ac0a0c1cf1853579311a
16 URL:            http://search.cpan.org/dist/Regexp-Match-Any/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This module allows you to pass the match_any() function a reference to
24 an array of regexes which will then return a full regex for the the
25 variable to be matched against. Note: this module may be very handy
26 for use with Mail::Audit.
27
28 %description -l pl.UTF-8
29 Ten poduł pozwala na przekazanie funkcji match_any() odwołania do
30 tablicy wyrażeń regularnych, na podstawie których funkcja zwraca pełne
31 wyrażenie regularne dla zmiennej, która miała być dopasowana. Ten
32 moduł może być przydatny szczególnie do używania z Mail::Audit.
33
34 %prep
35 %setup -q -n %{pnam}_%{version}
36
37 %build
38 %{__perl} Makefile.PL \
39         INSTALLDIRS=vendor
40 %{__make}
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Readme
56 %{perl_vendorlib}/Regexp/Match
57 %{_mandir}/man3/*
This page took 0.138469 seconds and 3 git commands to generate.