# # spec file for package perl-Log-Dispatch-Perl (Version 0.03) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: perl-Log-Dispatch-Perl Summary: Use core Perl functions for logging Version: 0.03 Release: 1 License: CHECK(GPL+ or Artistic) Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Log-Dispatch-Perl/ Source: http://www.cpan.org/authors/id/E/EL/ELIZABETH/Log-Dispatch-Perl-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl %if 0%{?suse_version} < 1120 BuildRequires: perl-macros %endif BuildRequires: perl(Log::Dispatch) >= 1.16 %{perl_requires} Requires: perl(Log::Dispatch) >= 1.16 BuildArch: noarch %description The "Log::Dispatch::Perl" module offers a logging alternative using standard Perl core functions. It allows you to fall back to the common Perl alternatives for logging, such as "warn" and "cluck". It also adds the possibility for a logging action to halt the current environment, such as with "die" and "croak". %prep %setup -q -n Log-Dispatch-Perl-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install make pure_install DESTDIR="%{buildroot}" find %{buildroot} -type f -name .packlist -print0 | xargs -0 --no-run-if-empty rm -f find %{buildroot} -depth -type d -print0 | xargs -0 --no-run-if-empty rmdir 2>/dev/null || true %perl_gen_filelist %clean %{__rm} -rf $RPM_BUILD_ROOT %files -f %{name}.files %defattr(-,root,root,-) %doc CHANGELOG README TODO VERSION %changelog