packages: perl-Log-Any/perl-Log-Any.spec (NEW) - added
aredridel
aredridel at pld-linux.org
Wed May 11 03:57:44 CEST 2011
Author: aredridel Date: Wed May 11 01:57:44 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- added
---- Files affected:
packages/perl-Log-Any:
perl-Log-Any.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-Log-Any/perl-Log-Any.spec
diff -u /dev/null packages/perl-Log-Any/perl-Log-Any.spec:1.1
--- /dev/null Wed May 11 03:57:44 2011
+++ packages/perl-Log-Any/perl-Log-Any.spec Wed May 11 03:57:39 2011
@@ -0,0 +1,80 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Log
+%define pnam Any
+%include /usr/lib/rpm/macros.perl
+Summary: Log::Any -- Bringing loggers and listeners together
+#Summary(pl.UTF-8):
+Name: perl-Log-Any
+Version: 0.12
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Log/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: eaab5035d69af58eab72e19140c5f246
+# generic URL, check or change before uncommenting
+#URL: http://search.cpan.org/dist/Log-Any/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Log::Any allows CPAN modules to safely and efficiently log messages, while
+letting the application choose (or decline to choose) a logging mechanism such
+as Log::Dispatch or Log::Log4perl.
+
+Log::Any has a very tiny footprint and no dependencies beyond Perl 5.6,
+which makes it appropriate for even small CPAN modules to use. It defaults to
+'null' logging activity, so a module can safely log without worrying about
+whether the application has chosen (or will ever choose) a logging mechanism.
+
+The application, in turn, may choose one or more logging mechanisms via
+Log::Any::Adapter.
+
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes INSTALL README
+%{perl_vendorlib}/Log/*.pm
+%{perl_vendorlib}/Log/Any
+%{_mandir}/man3/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/05/11 01:57:39 aredridel
+- added
+
================================================================
More information about the pld-cvs-commit
mailing list