%include /usr/lib/rpm/macros.perl %define pdir Log %define pnam Log4perl Summary: Log::Log4perl module adds logging capabilities Summary(pl): Modu³ Log::Log4perl dostarcza obs³ugê logowania Name: perl-%{pdir}-%{pnam} Version: 0.29 Release: 0.1 License: GPL/Artistic Group: Development/Languages/Perl Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: perl >= 5.6 BuildRequires: rpm-perlprov >= 3.0.3-26 BuildRequires: perl-Log-Dispatch BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _mandir %{_prefix}/share/man %description Log::Log4perl lets you remote-control and fine-tune the logging behaviour of your system from the outside. It implements the widely popular (Java-based) Log4j logging package in pure Perl. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL < /dev/null \ INSTALLDIRS=vendor %{__make} %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{perl_vendorlib}/%{pdir}/*.pm %{perl_vendorlib}/%{pdir}/%{pnam} %{_mandir}/man3/*