[packages/perl-Log-Fu] - new

qboosh qboosh at pld-linux.org
Sun Jul 2 13:29:02 CEST 2017


commit 6aa773cdda29544a809ca5e8725b729d6a3d1255
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 2 13:30:28 2017 +0200

    - new

 perl-Log-Fu.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
---
diff --git a/perl-Log-Fu.spec b/perl-Log-Fu.spec
new file mode 100644
index 0000000..5846ed2
--- /dev/null
+++ b/perl-Log-Fu.spec
@@ -0,0 +1,74 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Log
+%define		pnam	Fu
+%include	/usr/lib/rpm/macros.perl
+Summary:	Log::Fu - Simplified and developer-friendly screen logging
+Summary(pl.UTF-8):	Log::Fu - uproszczone i przyjazne dla programistów logowanie na ekranie
+Name:		perl-Log-Fu
+Version:	0.31
+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:	28354f432e52e5d9b4553259da920068
+URL:		http://search.cpan.org/dist/Log-Fu/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Constant-Generate >= 0.04
+BuildRequires:	perl-Dir-Self
+BuildRequires:	perl-Test-Simple
+%endif
+Requires:	perl-Constant-Generate >= 0.04
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a simple interface for console logging. It provides a few
+functions, log_info, log_debug, log_warn, log_crit, and log_err. They
+all take strings as arguments, and can take as many arguments as you
+so desire (so any concatenation is done for you).
+
+A message is printed to standard error (or to $target if specified),
+prefixed with the filename, line number, and originating subroutine of
+the message.
+
+%description -l pl.UTF-8
+Ten moduł to prosty interfejs do logowania na konsoli. Udostępnia
+kilka funkcji: log_info, log_debug, log_warn, log_crit i log_err.
+Wszystkie jako argumenty przyjmują łańcuchy w dowolnej liczbie
+(łączenie ich jest wykonywane za programistę).
+
+Komunikat jest wypisywany na standardowe wyjście diagnostyczne (lub
+$target, jeśli został podany) i jest poprzedzany nazwą pliku, numerem
+linii i procedurą, z której pochodzi komunikat.
+
+%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 README
+%{perl_vendorlib}/Log/Fu.pm
+%{perl_vendorlib}/Log/Fu
+%{_mandir}/man3/Log::Fu.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Log-Fu.git/commitdiff/6aa773cdda29544a809ca5e8725b729d6a3d1255



More information about the pld-cvs-commit mailing list