]>
Commit | Line | Data |
---|---|---|
bb4347ab JB |
1 | # |
2 | # Conditional build: | |
6cba3fdb | 3 | %bcond_without tests # do not perform "make test" |
69ae0425 | 4 | |
90efa61a | 5 | %define pdir Regexp |
6 | %define pnam Log | |
69ae0425 | 7 | %include /usr/lib/rpm/macros.perl |
bb4347ab | 8 | Summary: Regexp::Log - base class for log files regexp builders |
c90b565a | 9 | Summary(pl.UTF-8): Regexp::Log - klasa bazowa do tworzenia wyrażeń regularnych dla plików logów |
bb4347ab | 10 | Name: perl-Regexp-Log |
e607d932 | 11 | Version: 0.04 |
bb4347ab | 12 | Release: 1 |
16129763 | 13 | # same as perl |
bb4347ab JB |
14 | License: GPL v1+ or Artistic |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
e607d932 | 17 | # Source0-md5: 0047fed2a6b0a1182f2b7d886cfa846c |
69ae0425 | 18 | URL: http://search.cpan.org/dist/Regexp-Log/ |
30fd1b08 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
bb4347ab | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
69ae0425 ER |
21 | %if %{with tests} |
22 | BuildRequires: perl-Test-Simple | |
23 | %endif | |
bb4347ab JB |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Regexp::Log is a base class for a variety of modules that generate | |
29 | regular expressions for performing the usual data munging tasks on log | |
30 | files that cannot be simply split(). | |
31 | ||
32 | The goal of this module family is to compute regular expressions based | |
33 | on the configuration string of the log. | |
34 | ||
df559fed JR |
35 | %description -l pl.UTF-8 |
36 | Regexp::Log to klasa bazowa dla różnych modułów generujących wyrażenia | |
37 | regularne do obrabiania danych z plików logów, których nie wystarczy | |
38 | tylko potraktować funkcją split(). | |
bb4347ab | 39 | |
df559fed JR |
40 | Celem rodziny modułów jest wyliczanie wyrażeń regularnych oparte na |
41 | łańcuchu konfiguracyjnym dla loga. | |
bb4347ab JB |
42 | |
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | # one test seems broken | |
47 | perl -pi -e 's/"a a /"a /' t/20debug.t | |
48 | ||
49 | %build | |
50 | %{__perl} Makefile.PL \ | |
51 | INSTALLDIRS=vendor | |
bb4347ab JB |
52 | %{__make} |
53 | ||
6cba3fdb | 54 | %{?with_tests:%{__make} test} |
bb4347ab JB |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc Changes README | |
ad0d338c | 68 | %{perl_vendorlib}/%{pdir}/%{pnam}.pm |
bb4347ab | 69 | %{_mandir}/man3/* |