%include /usr/lib/rpm/macros.perl %define pdir Apache %define pnam LogFormat-Compiler %bcond_without tests Summary: Apache::LogFormat::Compiler - Compile a log format string to perl-code Name: perl-Apache-LogFormat-Compiler Version: 0.13 Release: 1 License: Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: fd04ee3f4c2164b7f7909d85f11e467a BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 3.0.3-26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Compile a log format string to perl-code. For faster generation of access_log lines. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Build.PL \ destdir=$RPM_BUILD_ROOT \ installdirs=vendor ./Build %{?with_tests:./Build test} %install rm -rf $RPM_BUILD_ROOT ./Build install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %dir %{perl_vendorlib}/%{pdir}/LogFormat %{perl_vendorlib}/%{pdir}/LogFormat/*.pm %{_mandir}/man3/*.3*