3 %bcond_without tests # build without tests
6 %define pnam LogFormat-Compiler
7 %include /usr/lib/rpm/macros.perl
8 Summary: Apache::LogFormat::Compiler - Compile a log format string to perl-code
9 Name: perl-Apache-LogFormat-Compiler
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: fd04ee3f4c2164b7f7909d85f11e467a
16 URL: http://search.cpan.org/dist/Apache-LogFormat-Compiler/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 3.0.3-26
20 BuildRequires: perl-HTTP-Message
21 BuildRequires: perl-Try-Tiny
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Compile a log format string to Perl-code. For faster generation of
30 %setup -q -n %{pdir}-%{pnam}-%{version}
34 destdir=$RPM_BUILD_ROOT \
38 %{?with_tests:./Build test}
41 rm -rf $RPM_BUILD_ROOT
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %dir %{perl_vendorlib}/%{pdir}/LogFormat
50 %{perl_vendorlib}/%{pdir}/LogFormat/*.pm