]> git.pld-linux.org Git - SPECS.git/blob - perl-Apache-LogFormat-Compiler.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / perl-Apache-LogFormat-Compiler.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # build without tests
4
5 %define         pdir    Apache
6 %define         pnam    LogFormat-Compiler
7 Summary:        Apache::LogFormat::Compiler - Compile a log format string to perl-code
8 Name:           perl-Apache-LogFormat-Compiler
9 Version:        0.35
10 Release:        2
11 License:        Artistic
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5:  cbb0bf041ade8a39f65eadbdf8a346c1
15 URL:            http://search.cpan.org/dist/Apache-LogFormat-Compiler/
16 BuildRequires:  perl-Module-Build-Tiny
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 3.0.3-26
19 %if %{with tests}
20 BuildRequires:  perl-HTTP-Message
21 BuildRequires:  perl-Test-MockTime
22 BuildRequires:  perl-POSIX-strftime-Compiler
23 BuildRequires:  perl-Try-Tiny
24 %endif
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Compile a log format string to Perl-code. For faster generation of
29 access_log lines.
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Build.PL \
36                 --destdir=$RPM_BUILD_ROOT \
37                 --installdirs=vendor
38 ./Build
39
40 %{?with_tests:./Build test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 ./Build install
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %dir %{perl_vendorlib}/%{pdir}/LogFormat
53 %{perl_vendorlib}/%{pdir}/LogFormat/*.pm
54 %{_mandir}/man3/*.3*
This page took 0.509682 seconds and 3 git commands to generate.