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